Hi rooter,
At root command line,from the CollectionTree, I want to list the variables.eg, m_px, m_py… for example, by using TTree->Print(), the list of branch can come out.
In this case,how to print the list in m_genParticles ?
Best regards.
cheny
TTree::GetListOfBranches TTree::GetListOfLeaves TBranch::GetListOfLeaves
[quote=“Wile E. Coyote”]TTree::GetListOfBranches TTree::GetListOfLeaves TBranch::GetListOfLeaves[/quote] Dear Wile E. Coyote
Thank you for replying. I try that using t1->GetListOfBranches()->Print() , but it just print the top level variable, not print m_px…
the result of screenshot in attachment. Sorry, In my case, could you tell more detail?
Best Regards