TClonesArray unable to access member functions

Hi All,
I have a TBranchObject from a TTree, ‘Reco_QQ_4mom’, that I would like to loop through.I believe it is an array of TLorentzVector’s. If I use the ->GetClassName() function on the TBranch it returns TClonesArray, but if I try to use relevant TClonesArray functions on ‘Reco_QQ_4mom’ (such as ->At(i) ) to try loop through it, I get the error " error: no member named ‘First’ in ‘TBranch’ ". Is anyone able to inform me of what is going wrong or provide an alternative approach?


Sorry, I’m unable to see how this helps, are you able to provide some more details ?

If you don’t know how to deal with your tree, see how various flavours of automatically generated “analysis skeletons” deal with it.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.