Hi experts!
I wanna draw several histogram in one canvas.
void CsI_Energy()
{
TChain * tree = new TChain("ntp");
char filename[300];
for (int i=1; i<=459; i++){
TString datadir = "/data/COSINE/WORK/islee/NaI037/data/MRGD/";
sprintf(filename,"mrgd6_M000950.root.%.3d",i);
tree->Add(datadir+filename);
}
TH1F *E = new TH1F("E","",100,0,5000);
tree->Draw("BCsI0.Energy>>E");
TFile o("CsI_0.root","RECREATE");
}
This is the code i was see only one plot of BCsI0.Energy.
But I wanna see 12 plot in one canvas.( BCsI0~11.Energy)
So How can i do this?
Please read tips for efficient and successful posting and posting code
ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided