I have a TH2D histogram, How can I find location of the X axis(or y axis) in which its content is 1/10 of the maximum of the TH2D histogram? Its distributions in x and y axises are symmetric. the maximuon value can be found through
Double_t max=h2->GetMaximum();. But how to find the location of a specific bin content?
You need to loop over the bins
double val=0; for(int i=1;i<=h->GetNbinsX();i++) for(int j=1;j<=h->GetNbinsY();j++) val =h->GetBinContent(i,j)
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.