CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
FastTimerService::PlotsPerJob Class Reference

Public Member Functions

void book (dqm::reco::DQMStore::IBooker &, ProcessCallGraph const &, std::vector< GroupOfModules > const &, PlotRanges const &event_ranges, PlotRanges const &path_ranges, PlotRanges const &module_ranges, unsigned int lumisections, bool bymodule, bool bypath, bool byls, bool transitions)
 
void fill (ProcessCallGraph const &, ResourcesPerJob const &, unsigned int ls)
 
void fill_lumi (AtomicResources const &, unsigned int lumisection)
 
void fill_run (AtomicResources const &)
 
 PlotsPerJob (ProcessCallGraph const &job, std::vector< GroupOfModules > const &groups)
 

Private Attributes

PlotsPerElement event_
 
PlotsPerElement event_ex_
 
std::vector< PlotsPerElementhighlight_
 
PlotsPerElement lumi_
 
std::vector< PlotsPerElementmodules_
 
PlotsPerElement overhead_
 
std::vector< PlotsPerProcessprocesses_
 
PlotsPerElement run_
 

Detailed Description

Definition at line 412 of file FastTimerService.h.

Constructor & Destructor Documentation

◆ PlotsPerJob()

FastTimerService::PlotsPerJob::PlotsPerJob ( ProcessCallGraph const &  job,
std::vector< GroupOfModules > const &  groups 
)

Definition at line 687 of file FastTimerService.cc.

References LaserDQM_cfg::process, ProcessCallGraph::processes(), and processes_.

688  : event_(), event_ex_(), overhead_(), highlight_(groups.size()), modules_(job.size()), processes_() {
689  processes_.reserve(job.processes().size());
690  for (auto const& process : job.processes())
691  processes_.emplace_back(process);
692 }
std::vector< PlotsPerElement > highlight_
std::vector< PlotsPerElement > modules_
std::vector< PlotsPerProcess > processes_

Member Function Documentation

◆ book()

void FastTimerService::PlotsPerJob::book ( dqm::reco::DQMStore::IBooker booker,
ProcessCallGraph const &  job,
std::vector< GroupOfModules > const &  groups,
PlotRanges const &  event_ranges,
PlotRanges const &  path_ranges,
PlotRanges const &  module_ranges,
unsigned int  lumisections,
bool  bymodule,
bool  bypath,
bool  byls,
bool  transitions 
)

Definition at line 694 of file FastTimerService.cc.

References makeHippyCampaign::basedir, FastTimerService::fixForDQM(), watchdog::group, edm::ModuleDescription::id(), l1ctLayer2EG_cff::id, label, ProcessCallGraph::module(), edm::ModuleDescription::moduleLabel(), FastTimerService::overhead_, LaserDQM_cfg::process, ProcessCallGraph::processDescription(), ProcessCallGraph::processes(), dqm::implementation::NavigatorBase::pwd(), dqm::implementation::NavigatorBase::setCurrentFolder(), ProcessCallGraph::source(), and AlCaHLTBitMon_QueryRunRegistry::string.

704  {
705  const std::string basedir = booker.pwd();
706 
707  // event summary plots
708  event_.book(booker, "event", "Event", event_ranges, lumisections, byls);
709 
710  event_ex_.book(booker, "explicit", "Event (explicit)", event_ranges, lumisections, byls);
711 
712  overhead_.book(booker, "overhead", "Overhead", event_ranges, lumisections, byls);
713 
714  modules_[job.source().id()].book(booker, "source", "Source", module_ranges, lumisections, byls);
715 
716  if (transitions) {
717  lumi_.book(booker, "lumi", "LumiSection transitions", event_ranges, lumisections, byls);
718 
719  run_.book(booker, "run", "Run transtions", event_ranges, lumisections, false);
720  }
721 
722  // plot the time spent in few given groups of modules
723  for (unsigned int group : boost::irange(0ul, groups.size())) {
724  auto const& label = groups[group].label;
725  highlight_[group].book(booker, "highlight " + label, "Highlight " + label, event_ranges, lumisections, byls);
726  }
727 
728  // plots per subprocess (event, modules, paths and endpaths)
729  for (unsigned int pid : boost::irange(0ul, job.processes().size())) {
730  auto const& process = job.processDescription(pid);
731  processes_[pid].book(booker, job, process, event_ranges, path_ranges, lumisections, bypath, byls);
732 
733  if (bymodule) {
734  booker.setCurrentFolder(basedir + "/process " + process.name_ + " modules");
735  for (unsigned int id : process.modules_) {
736  std::string const& module_label = job.module(id).moduleLabel();
737  std::string safe_label = module_label;
738  fixForDQM(safe_label);
739  modules_[id].book(booker, safe_label, module_label, module_ranges, lumisections, byls);
740  }
741  booker.setCurrentFolder(basedir);
742  }
743  }
744 }
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:36
virtual std::string pwd()
Definition: DQMStore.cc:20
std::vector< PlotsPerElement > highlight_
char const * label
std::vector< PlotsPerElement > modules_
void book(dqm::reco::DQMStore::IBooker &, std::string const &name, std::string const &title, PlotRanges const &ranges, unsigned int lumisections, bool byls)
std::vector< PlotsPerProcess > processes_
static void fixForDQM(std::string &label)

◆ fill()

void FastTimerService::PlotsPerJob::fill ( ProcessCallGraph const &  job,
ResourcesPerJob const &  data,
unsigned int  ls 
)

Definition at line 746 of file FastTimerService.cc.

References data, watchdog::group, l1ctLayer2EG_cff::id, eostools::ls(), FastTimerService::overhead_, and ProcessCallGraph::processDescription().

746  {
747  // fill total event plots
748  event_.fill(data.total, ls);
749  event_ex_.fill(data.event, ls);
750  overhead_.fill(data.overhead, ls);
751 
752  // fill highltight plots
753  for (unsigned int group : boost::irange(0ul, highlight_.size()))
754  highlight_[group].fill_fraction(data.total, data.highlight[group], ls);
755 
756  // fill modules plots
757  for (unsigned int id : boost::irange(0ul, modules_.size()))
758  modules_[id].fill(data.modules[id].total, ls);
759 
760  for (unsigned int pid : boost::irange(0ul, processes_.size()))
761  processes_[pid].fill(job.processDescription(pid), data, data.processes[pid], ls);
762 }
void fill(Resources const &, unsigned int lumisection)
std::vector< PlotsPerElement > highlight_
std::vector< PlotsPerElement > modules_
def ls(path, rec=False)
Definition: eostools.py:349
std::vector< PlotsPerProcess > processes_
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79

◆ fill_lumi()

void FastTimerService::PlotsPerJob::fill_lumi ( AtomicResources const &  data,
unsigned int  lumisection 
)

Definition at line 769 of file FastTimerService.cc.

References data, and eostools::ls().

769  {
770  // fill lumisection transition plots
771  lumi_.fill(data, ls);
772 }
void fill(Resources const &, unsigned int lumisection)
def ls(path, rec=False)
Definition: eostools.py:349
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79

◆ fill_run()

void FastTimerService::PlotsPerJob::fill_run ( AtomicResources const &  data)

Definition at line 764 of file FastTimerService.cc.

References data.

764  {
765  // fill run transition plots
766  run_.fill(data, 0);
767 }
void fill(Resources const &, unsigned int lumisection)
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79

Member Data Documentation

◆ event_

PlotsPerElement FastTimerService::PlotsPerJob::event_
private

Definition at line 432 of file FastTimerService.h.

◆ event_ex_

PlotsPerElement FastTimerService::PlotsPerJob::event_ex_
private

Definition at line 433 of file FastTimerService.h.

◆ highlight_

std::vector<PlotsPerElement> FastTimerService::PlotsPerJob::highlight_
private

Definition at line 439 of file FastTimerService.h.

◆ lumi_

PlotsPerElement FastTimerService::PlotsPerJob::lumi_
private

Definition at line 436 of file FastTimerService.h.

◆ modules_

std::vector<PlotsPerElement> FastTimerService::PlotsPerJob::modules_
private

Definition at line 441 of file FastTimerService.h.

◆ overhead_

PlotsPerElement FastTimerService::PlotsPerJob::overhead_
private

Definition at line 434 of file FastTimerService.h.

◆ processes_

std::vector<PlotsPerProcess> FastTimerService::PlotsPerJob::processes_
private

Definition at line 443 of file FastTimerService.h.

Referenced by PlotsPerJob().

◆ run_

PlotsPerElement FastTimerService::PlotsPerJob::run_
private

Definition at line 437 of file FastTimerService.h.