ROOT Version: Not Provided Platform: Not Provided Compiler: Not Provided
Hi Everyone !
I have one root file and there I have six different trees. Each tree contains each and individual particle’s four momentum. I want to add all six TLorentz Vectors to get one particle’s mass. Can you please give me a skeleton code of it ?
Thank you very much for your reply. Now I have one tree in a root file. There I want calculate mass from the four vector so I use the similar command attached below. But the plot is coming out to be empty. Can you please check it.
TFile* f2= new TFile("/home/souvik/root_work/lfv1.root");
TTree* t2=(TTree*)f2->Get(“dklfv”);
float pd3[4];
t2->SetBranchAddress(“D0_P4”, &pd3);