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 411 of file FastTimerService.h.

Constructor & Destructor Documentation

◆ PlotsPerJob()

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

Definition at line 685 of file FastTimerService.cc.

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

686  : event_(), event_ex_(), overhead_(), highlight_(groups.size()), modules_(job.size()), processes_() {
687  processes_.reserve(job.processes().size());
688  for (auto const& process : job.processes())
689  processes_.emplace_back(process);
690 }
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 692 of file FastTimerService.cc.

References makeHippyCampaign::basedir, watchdog::group, triggerObjects_cff::id, edm::ModuleDescription::id(), label, ProcessCallGraph::module(), customisers::module_name, 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.

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

◆ fill()

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

Definition at line 742 of file FastTimerService.cc.

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

742  {
743  // fill total event plots
744  event_.fill(data.total, ls);
745  event_ex_.fill(data.event, ls);
746  overhead_.fill(data.overhead, ls);
747 
748  // fill highltight plots
749  for (unsigned int group : boost::irange(0ul, highlight_.size()))
750  highlight_[group].fill_fraction(data.total, data.highlight[group], ls);
751 
752  // fill modules plots
753  for (unsigned int id : boost::irange(0ul, modules_.size()))
754  modules_[id].fill(data.modules[id].total, ls);
755 
756  for (unsigned int pid : boost::irange(0ul, processes_.size()))
757  processes_[pid].fill(job.processDescription(pid), data, data.processes[pid], ls);
758 }
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 765 of file FastTimerService.cc.

References data, and eostools::ls().

765  {
766  // fill lumisection transition plots
767  lumi_.fill(data, ls);
768 }
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 760 of file FastTimerService.cc.

References data.

760  {
761  // fill run transition plots
762  run_.fill(data, 0);
763 }
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 431 of file FastTimerService.h.

◆ event_ex_

PlotsPerElement FastTimerService::PlotsPerJob::event_ex_
private

Definition at line 432 of file FastTimerService.h.

◆ highlight_

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

Definition at line 438 of file FastTimerService.h.

◆ lumi_

PlotsPerElement FastTimerService::PlotsPerJob::lumi_
private

Definition at line 435 of file FastTimerService.h.

◆ modules_

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

Definition at line 440 of file FastTimerService.h.

◆ overhead_

PlotsPerElement FastTimerService::PlotsPerJob::overhead_
private

Definition at line 433 of file FastTimerService.h.

◆ processes_

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

Definition at line 442 of file FastTimerService.h.

Referenced by PlotsPerJob().

◆ run_

PlotsPerElement FastTimerService::PlotsPerJob::run_
private

Definition at line 436 of file FastTimerService.h.