Skip to content

Commit

Permalink
FastTimerService: explicitly set empty labels
Browse files Browse the repository at this point in the history
  • Loading branch information
fwyzard committed Jan 15, 2015
1 parent ac4fa71 commit bbd1988
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions HLTrigger/Timer/src/FastTimerService.cc
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,7 @@ void FastTimerService::preStreamBeginRun(edm::StreamContext const & sc)
stream.dqm_paths[pid].exclusive_time ->GetXaxis()->SetBinLabel(i + size_p + 1, label.c_str());
stream.dqm_paths[pid].interpaths ->GetXaxis()->SetBinLabel(i + size_p + 1, label.c_str());
}
stream.dqm_paths[pid].interpaths ->GetXaxis()->SetBinLabel(size+1, "");
}

// plots vs. instantaneous luminosity
Expand Down Expand Up @@ -474,9 +475,9 @@ void FastTimerService::preStreamBeginRun(edm::StreamContext const & sc)
if (m_enable_dqm_bypath_counters) {
pathinfo.dqm_module_counter = booker.book1D(pathname + "_module_counter", pathname + " module counter", modules.size() + 1, -0.5, modules.size() + 0.5)->getTH1F();
// find module labels
for (uint32_t i = 0; i < modules.size(); ++i) {
for (uint32_t i = 0; i < modules.size(); ++i)
pathinfo.dqm_module_counter->GetXaxis()->SetBinLabel( i+1, labels[i] );
}
pathinfo.dqm_module_counter->GetXaxis()->SetBinLabel( modules.size() + 1, "" );
}
// book detailed timing histograms
if (m_enable_dqm_bypath_details) {
Expand Down

0 comments on commit bbd1988

Please sign in to comment.