Dear ROOT Experts,
I have several different trees root files having the same name for branches and leaves. I created them using structures and variables filling them are 1D vectors. Now, I am trying to plot same leaves from different root files on the same canvas so I could compare the results. However, when I tried to draw only a single leaf from a tree using compiled code by;
TFile f1 ("/media/aya/LinuxSpace/Pheno_Work_2/final_analysis/output_demo_Hhhbb4M_BMP1.root");
TTree *T1;
f1.GetObject("output_demo_Hhhbb4M_BMP1", T1);
TCanvas *c1 = new TCanvas("c1","c1",600,600);
T1->Draw("muon1_pt");
Also, tried:
T1->Draw("Four_Muons.muon1_pt");
I get the following error:
Error in <TTreeFormula::Compile>: Bad numerical expression : "muon1_pt"
Info in <TSelectorDraw::AbortProcess>: Variable compilation failed: {muon1_pt,}
I am doubt that I am not doing it the right way. So, how could I properly draw leaves from various root files on one canvas or even draw only one from a specific root file?
I have added these two png to illustrate the shape of tree .
Thanks a lot,
Aya