TLorentzVector in nested branch

Hello !

I have a question about the TLorentzVector.
I am trying to read a branch from a nested branch structure in a ROOT TTree.
For to read a “Double_t”, I can by adding :
Double_t z_vertex ;
tree->SetBranchAddress(“vertex.z”, &z_vertex);
I do a loop with tree->GetEntry(i) and I obtanied values. But, I can not do it with a TLorentzVector.
TLorentzVector *dimuon = NULL ;
tree->SetBranchAddress(“reference_frame.lab.dimuon”, dimuon);
I do : dimuon->M() but I obtained no values…

Can you help me ? Thank you very much !

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