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 idle_
 
PlotsPerElement lumi_
 
std::vector< PlotsPerElementmodules_
 
PlotsPerElement overhead_
 
std::vector< PlotsPerProcessprocesses_
 
PlotsPerElement run_
 

Detailed Description

Definition at line 413 of file FastTimerService.h.

Constructor & Destructor Documentation

◆ PlotsPerJob()

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

Definition at line 689 of file FastTimerService.cc.

690  : highlight_{groups.size()}, modules_{job.size()} {
691  processes_.reserve(job.processes().size());
692  for (auto const& process : job.processes())
693  processes_.emplace_back(process);
694 }
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 696 of file FastTimerService.cc.

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

706  {
707  const std::string basedir = booker.pwd();
708 
709  // event summary plots
710  event_.book(booker, "event", "Event", event_ranges, lumisections, byls);
711  event_ex_.book(booker, "explicit", "Event (explicit)", event_ranges, lumisections, byls);
712  overhead_.book(booker, "overhead", "Overhead", event_ranges, lumisections, byls);
713  idle_.book(booker, "idle", "Idle", event_ranges, lumisections, byls);
714 
715  modules_[job.source().id()].book(booker, "source", "Source", module_ranges, lumisections, byls);
716 
717  if (transitions) {
718  lumi_.book(booker, "lumi", "LumiSection transitions", event_ranges, lumisections, byls);
719 
720  run_.book(booker, "run", "Run transtions", event_ranges, lumisections, false);
721  }
722 
723  // plot the time spent in few given groups of modules
724  for (unsigned int group : boost::irange(0ul, groups.size())) {
725  auto const& label = groups[group].label;
726  highlight_[group].book(booker, "highlight " + label, "Highlight " + label, event_ranges, lumisections, byls);
727  }
728 
729  // plots per subprocess (event, modules, paths and endpaths)
730  for (unsigned int pid : boost::irange(0ul, job.processes().size())) {
731  auto const& process = job.processDescription(pid);
732  processes_[pid].book(booker, job, process, event_ranges, path_ranges, lumisections, bypath, byls);
733 
734  if (bymodule) {
735  booker.setCurrentFolder(basedir + "/process " + process.name_ + " modules");
736  for (unsigned int id : process.modules_) {
737  std::string const& module_label = job.module(id).moduleLabel();
738  std::string safe_label = module_label;
739  fixForDQM(safe_label);
740  modules_[id].book(booker, safe_label, module_label, module_ranges, lumisections, byls);
741  }
742  booker.setCurrentFolder(basedir);
743  }
744  }
745 }
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 747 of file FastTimerService.cc.

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

747  {
748  // fill total event plots
749  event_.fill(data.total, ls);
750  event_ex_.fill(data.event, ls);
751  overhead_.fill(data.overhead, ls);
752  idle_.fill(data.idle, ls);
753 
754  // fill highltight plots
755  for (unsigned int group : boost::irange(0ul, highlight_.size()))
756  highlight_[group].fill_fraction(data.total, data.highlight[group], ls);
757 
758  // fill modules plots
759  for (unsigned int id : boost::irange(0ul, modules_.size()))
760  modules_[id].fill(data.modules[id].total, ls);
761 
762  for (unsigned int pid : boost::irange(0ul, processes_.size()))
763  processes_[pid].fill(job.processDescription(pid), data, data.processes[pid], ls);
764 }
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:80

◆ fill_lumi()

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

Definition at line 771 of file FastTimerService.cc.

References data, and eostools::ls().

771  {
772  // fill lumisection transition plots
773  lumi_.fill(data, ls);
774 }
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:80

◆ fill_run()

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

Definition at line 766 of file FastTimerService.cc.

References data.

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

Member Data Documentation

◆ event_

PlotsPerElement FastTimerService::PlotsPerJob::event_
private

Definition at line 433 of file FastTimerService.h.

◆ event_ex_

PlotsPerElement FastTimerService::PlotsPerJob::event_ex_
private

Definition at line 434 of file FastTimerService.h.

◆ highlight_

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

Definition at line 441 of file FastTimerService.h.

◆ idle_

PlotsPerElement FastTimerService::PlotsPerJob::idle_
private

Definition at line 436 of file FastTimerService.h.

◆ lumi_

PlotsPerElement FastTimerService::PlotsPerJob::lumi_
private

Definition at line 438 of file FastTimerService.h.

◆ modules_

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

Definition at line 443 of file FastTimerService.h.

◆ overhead_

PlotsPerElement FastTimerService::PlotsPerJob::overhead_
private

Definition at line 435 of file FastTimerService.h.

◆ processes_

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

Definition at line 445 of file FastTimerService.h.

◆ run_

PlotsPerElement FastTimerService::PlotsPerJob::run_
private

Definition at line 439 of file FastTimerService.h.