Skip to content

Commit 6744d7d

Browse files
committed
Merge pull request cms-sw#2579 from perrotta/adjustValidationMuonIsolation
Validation/MuonIsolation -- Remove double counting of ovflw bin in Validation/MuonIsolation
2 parents 8229cd0 + f3d8bd3 commit 6744d7d

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

Validation/MuonIsolation/src/MuIsoValidation.cc

+1-10
Original file line numberDiff line numberDiff line change
@@ -543,20 +543,11 @@ void MuIsoValidation::NormalizeHistos() {
543543
}
544544

545545
void MuIsoValidation::FillHistos() {
546-
547-
int overFlowBin;
548-
double overFlow = 0;
549-
546+
550547
//----------Fill 1D histograms---------------
551548
for(int var=0; var<NUM_VARS; var++){
552549
h_1D[var]->Fill(theData[var]);
553550
if (cdCompNeeded[var]) cd_plots[var]->Fill(theData[var]);//right now, this is a regular PDF (just like h_1D)
554-
if (theData[var] > param[var][2]) {
555-
// fill the overflow bin
556-
overFlowBin = (int) param[var][0] + 1;
557-
overFlow = GetTH1FromMonitorElement(h_1D[var])->GetBinContent(overFlowBin);
558-
GetTH1FromMonitorElement(h_1D[var])->SetBinContent(overFlowBin, overFlow + 1);
559-
}
560551
}//Finish 1D
561552

562553
//----------Fill 2D histograms---------------

0 commit comments

Comments
 (0)