Skip to content

Commit

Permalink
fix normalization for empty plots
Browse files Browse the repository at this point in the history
  • Loading branch information
mtosi committed Aug 22, 2016
1 parent 83de453 commit 3c6fcc0
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 3c6fcc0

Please sign in to comment.