# | Line 682 | Line 682 | void PVEffAnalyzer::MakeEff(TH1D* numer, | |
---|---|---|
682 | ||
683 | for (int i = 1; i<eff->GetNbinsX()+1; i++) { | |
684 | if(numer->GetBinContent(i) == 0 || denom->GetBinContent(i) == 0 ) continue; | |
685 | < | float error = eff->GetBinContent(i)*sqrt(pow(numer->GetBinError(i)/numer->GetBinContent(i),2) |
686 | < | +pow(denom->GetBinError(i)/denom->GetBinContent(i),2)); |
685 | > | float error = sqrt(eff->GetBinContent(i)*(1-eff->GetBinContent(i))/denom->GetBinContent(i)); // Binominal-Error |
686 | eff->SetBinError(i, error); | |
687 | } | |
688 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |