ROOT Version: 6.18 Platform: Not Provided Compiler: C++
Hi
I am trying to convert my root file to ascii but when I do that I get a straight line i.e. my program produces an ascii file that is a straight line, however, my root file is an exponential decay. Please let me how I can fix this to get an ascii with an exponential decayascii1.C (559 Bytes) decay_600ns.root (12.0 KB)
root [0] auto f = new TFile("decay_600ns.root");
root [1] auto C = (TCanvas*) f->Get("Time_distr");
root [2] auto h = (TH1D*)C->GetListOfPrimitives()->FindObject("cube_2_zx_py");
root [3] h->Print()
TH1.Print Name = cube_2_zx_py, Entries= 3353172, Total sum= 3.27269e+06
root [4]