hello experts,
this code is written for for measuring CLs(confidene limit) and it difined a loop for calculating CLs vs r_steps. I’m going to find r_value in an exact CLs that it become <0.05! i know i should use “find first bin above” command, but i don’t know how? i’ll be thankful if you can help me.
Limit.C (1.96 KB)
Int_t first = cls->FindFirstBinAbove(0.05);
std::cout << first << " "
<< cls->GetBinLowEdge(first) << " "
<< cls->GetBinWidth(first) << " "
<< cls->GetBinCenter(first) << " "
<< cls->GetBinContent(first) << " " << std::endl;
Int_t last = cls->FindLastBinAbove(0.05);
std::cout << last << " "
<< cls->GetBinLowEdge(last) << " "
<< cls->GetBinWidth(last) << " "
<< cls->GetBinCenter(last) << " "
<< cls->GetBinContent(last) << " " << std::endl;
I’m really thankful my problem solved