Hello, ROOT Team
Now I am trying to read the variable like this.
ch = &chain;
cout <<"entries: " << entries << endl;
However I receive
Error in <TChain::SetBranchAddress>: unknown branch -> m_px
I mean, I can receive the result “entries” but I can not receive the “px” value.
does the tree have a branch called “m_px”?
Please refer to the image. Could you help me?
the branch is then m_genParticles.m_px.
Did you consider using TTreeReader for analysing your chain?
Thank you for your reply.
However it is not working, I received same error:
Error in <TChain::SetBranchAddress>: unknown branch -> m_genParticles.m_px
Do you have any idea?
Before proceeding, why not moving to TTreeReader?
I did not notice that this is hanging from McEventCollection_p5_GEN_EVENT.
Please go for “McEventCollection_p5_GEN_EVENT.m_genParticles.m_px”.
Were you able to solve this as I am having the same error?
Welcome to the forum!
Could I suggest you open a new thread about the issue you are currently facing? A lot changed in ROOT (for good!) in the last 7y: we’ll be able to support your use case much better!