Trying to add the binomial uncertainty in my histogram.
for(ULong64_t i = 0; i < NumBins; i++)
{
Threshold = i;
Int_t count = 0;
for(ULong64_t e = 0; e < nEntries; e++)
{
currentAna->GetEntry(e);
if( abs(Curr) < Threshold ) continue;
{
count++;
}
}
beyondThreshold->SetBinContent(i+1, count*100/nEntries);
cout << Threshold << "\t \t" << count << endl;
}
TCanvas* c2 = new TCanvas("c2");
c2->SetLogy();
beyondThreshold -> SetMarkerStyle(1);
beyondThreshold->Draw();
beyondThreshold->SetTitle("Percentage");
// beyondThreshold->GetYaxis()->SetRangeUser(0, 0.5);
// beyondThreshold->GetXaxis()->SetRangeUser(0, 5);
c2->Update();