Hi,
I stacked 16 histograms into one canvas.But the amplitudes between each individual histograms are a lot different,like one histogram have the max entries of 1000 and another one have the max entries of 450*10^5. how can i make the whole canvas looks reasonable and be able compare between those histograms obviousely. Someone told me i can normalize histogram but how can i do that? the code i wrote are underneath. thanks
void retrive_multismallAE()
{
TCanvas *c1 = new TCanvas(“c1”,“CTA Image”,0,0,900,900);
std::stringstream fname;
THStack hs = new THStack(“hs”,“multismallAE”);
for(int n=1;n<17;n++)
{
std::stringstream fname;
fname<<“bank”<<n<<".root";
cout<<fname.str()<<endl;
TFile f = new TFile(fname.str().c_str());
multiSmall->SetLineColor(n);
// multiSmall->setFillColor(kGreen);
multiSmall->SetMarkerStyle(21);
multiSmall->SetMarkerColor(n);
hs->Add(multiSmall);
}
hs->Draw(“nostack,APL”);
}