You can also do:
for(int nbfile=0; nbfile<nfile; nbfile++){
for(int nbdir=0; nbdir<ndir; nbdir++){
hmupt[nbfile][nbdir]->SetLineColor(2+nbfile);
if (nbfile == 0 && nbdir == 0)
hmupt[nbfile][nbdir]->Draw("hist");
else
hmupt[nbfile][nbdir]->Draw("hist same");
}
}
couet
June 29, 2017, 3:23pm
25
I would suggest that you check individually that your histograms are properly filled (doing individual plots one by one) . Remember you have an empty TTree…
calbet
June 29, 2017, 3:36pm
26
Dear Couet,
ok, I’ll do that. Thank you for your help.
Regards
system
Closed
July 13, 2017, 3:36pm
27
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.