I want to make a Tree of my .root file, Kindly help me to store the histograms in terms of Tree.
The file which I want to convert in the form of Tree is output_Veto.root so that it will look like a sample file that is May26_2.root (/afs/cern.ch/user/n/nmajeed/public)
I am creating output_Veto.root using a macro new_macro.cc
In simple I want to convert output_veto.root file exactly as May26_2.root file
In output_veto.root file I have different parameters i.e vetoMu_pt, VetoMu_eta, VetoMu_phi. The same parameters are in May26_2.root file but thay are stored in a Tree. I want output_veto.root to be exactly as May26_2.root file
I think this is not possible. The histogram is a form of data reduction in some sense the information about the original entries is not available anymore (by construction).
Then there is some other way of getting histograms. Like in tree we first define a tree and then get all branches as
TTree t = (TTree)f->Get(“demo/AnaTree”);