Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix max and remove assert to make the FTS client run without complaining in case of paths with zero modules #7242

Merged
merged 1 commit into from Jan 16, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions HLTrigger/Timer/plugins/FastTimerServiceClient.cc
Expand Up @@ -152,7 +152,7 @@ FastTimerServiceClient::fillPathSummaryPlots(DQMStore::IBooker & booker, DQMStor
TH1F * total = me_total ->getTH1F();
uint32_t bins = counter->GetXaxis()->GetNbins() - 1;
double min = counter->GetXaxis()->GetXmin();
double max = counter->GetXaxis()->GetXmax();
double max = counter->GetXaxis()->GetXmax() - 1;
booker.setCurrentFolder(current_path + "/Paths");

TH1F * average;
Expand All @@ -163,7 +163,7 @@ FastTimerServiceClient::fillPathSummaryPlots(DQMStore::IBooker & booker, DQMStor
me = getter.get( current_path + "/Paths/" + label + "_module_average" );
if (me) {
average = me->getTH1F();
assert( me->getTH1F()->GetXaxis()->GetNbins() == (int) bins );
//assert( me->getTH1F()->GetXaxis()->GetNbins() == (int) bins );
assert( me->getTH1F()->GetXaxis()->GetXmin() == min );
assert( me->getTH1F()->GetXaxis()->GetXmax() == max );
average->Reset();
Expand All @@ -179,7 +179,7 @@ FastTimerServiceClient::fillPathSummaryPlots(DQMStore::IBooker & booker, DQMStor
me = getter.get( current_path + "/Paths/" + label + "_module_running" );
if (me) {
running = me->getTH1F();
assert( me->getTH1F()->GetXaxis()->GetNbins() == (int) bins );
//assert( me->getTH1F()->GetXaxis()->GetNbins() == (int) bins );
assert( me->getTH1F()->GetXaxis()->GetXmin() == min );
assert( me->getTH1F()->GetXaxis()->GetXmax() == max );
running->Reset();
Expand All @@ -195,7 +195,7 @@ FastTimerServiceClient::fillPathSummaryPlots(DQMStore::IBooker & booker, DQMStor
me = getter.get( current_path + "/Paths/" + label + "_module_efficiency" );
if (me) {
efficiency = me->getTH1F();
assert( me->getTH1F()->GetXaxis()->GetNbins() == (int) bins );
//assert( me->getTH1F()->GetXaxis()->GetNbins() == (int) bins );
assert( me->getTH1F()->GetXaxis()->GetXmin() == min );
assert( me->getTH1F()->GetXaxis()->GetXmax() == max );
efficiency->Reset();
Expand Down