Skip to content

Commit

Permalink
fix uncertainty for simpleratio in DQMGenericClient
Browse files Browse the repository at this point in the history
  • Loading branch information
physicist87 committed Jul 3, 2017
1 parent aaa57c0 commit e6a6fe0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion DQMServices/ClientConfig/plugins/DQMGenericClient.cc
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,11 @@ void DQMGenericClient::generic_eff (TH1* denom, TH1* numer, MonitorElement* effi

float errVal = 0;
if (type == EfficType::simpleratio) {
errVal = denomVal ? 1.f/denomVal*effVal*(1+effVal) : 0;
// errVal = denomVal ? 1.f/denomVal*effVal*(1+effVal) : 0;
float numerErr = numer->GetBinError(globalBinNum);
float denomErr = denom->GetBinError(globalBinNum);
float denomsq = denomVal*denomVal;
errVal = denomVal ? sqrt( pow( 1.f/denomVal*numerErr,2.0) + pow(numerVal/denomsq*denomErr,2) ): 0;
} else {
errVal = (denomVal && (effVal <=1)) ? sqrt(effVal*(1-effVal)/denomVal) : 0;
}
Expand Down

0 comments on commit e6a6fe0

Please sign in to comment.