Skip to content

Commit

Permalink
Merge pull request #15531 from mtosi/fixV0Monitoring
Browse files Browse the repository at this point in the history
V0 monitoring: fix normalization for empty plots
  • Loading branch information
davidlange6 committed Aug 23, 2016
2 parents cf55ff8 + 86e174e commit 7aa3d49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DQM/TrackingMonitorClient/src/DQMScaleToClient.cc
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ void DQMScaleToClient::dqmEndJob(DQMStore::IBooker& ibooker_, DQMStore::IGetter&
scaled_ = ibooker_.book1D(hname,(TH1F*)inputme->getTH1()->Clone(hname.c_str()));

// handle mes
double integral = scaled_->getTH1()->Integral();
double integral = (scaled_->getTH1()->Integral() > 0. ? scaled_->getTH1()->Integral() : 1.);
scaled_->getTH1()->Scale(outputmepset_.factor/integral);
}

Expand Down

0 comments on commit 7aa3d49

Please sign in to comment.