Is there a direct way to get the bin with the highest frequency and subsequent value of that particular bin frequency in ROOT? Thanks.
You can get the maximum value (frequency) and the corresponding bin number with
cout << h->GetMaximum(); cout << h->GetMaximumBin();
See the doc on GetMaximum() and GetMaximumBin() just below it.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.