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

Constructor & Destructor Documentation

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

Definition at line 636 of file FastTimerService.cc.

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

637  : event_(), event_ex_(), overhead_(), highlight_(groups.size()), modules_(job.size()), processes_() {
638  processes_.reserve(job.processes().size());
639  for (auto const& process : job.processes())
640  processes_.emplace_back(process);
641 }
std::vector< PlotsPerElement > highlight_
std::vector< PlotsPerElement > modules_
std::vector< PlotsPerProcess > processes_

Member Function Documentation

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 643 of file FastTimerService.cc.

References makeHippyCampaign::basedir, FastTimerService::PlotsPerElement::book(), event_, event_ex_, watchdog::group, highlight_, triggerObjects_cff::id, edm::ModuleDescription::id(), label, lumi_, ProcessCallGraph::module(), customisers::module_name, edm::ModuleDescription::moduleLabel(), modules_, overhead_, LaserDQM_cfg::process, ProcessCallGraph::processDescription(), ProcessCallGraph::processes(), processes_, dqm::dqmstoreimpl::DQMStore::IBooker::pwd(), run_, dqm::dqmstoreimpl::DQMStore::IBooker::setCurrentFolder(), ProcessCallGraph::source(), and AlCaHLTBitMon_QueryRunRegistry::string.

653  {
654  const std::string basedir = booker.pwd();
655 
656  // event summary plots
657  event_.book(booker, "event", "Event", event_ranges, lumisections, byls);
658 
659  event_ex_.book(booker, "explicit", "Event (explicit)", event_ranges, lumisections, byls);
660 
661  overhead_.book(booker, "overhead", "Overhead", event_ranges, lumisections, byls);
662 
663  modules_[job.source().id()].book(booker, "source", "Source", module_ranges, lumisections, byls);
664 
665  if (transitions) {
666  lumi_.book(booker, "lumi", "LumiSection transitions", event_ranges, lumisections, byls);
667 
668  run_.book(booker, "run", "Run transtions", event_ranges, lumisections, false);
669  }
670 
671  // plot the time spent in few given groups of modules
672  for (unsigned int group : boost::irange(0ul, groups.size())) {
673  auto const& label = groups[group].label;
674  highlight_[group].book(booker, "highlight " + label, "Highlight " + label, event_ranges, lumisections, byls);
675  }
676 
677  // plots per subprocess (event, modules, paths and endpaths)
678  for (unsigned int pid : boost::irange(0ul, job.processes().size())) {
679  auto const& process = job.processDescription(pid);
680  processes_[pid].book(booker, job, process, event_ranges, path_ranges, lumisections, bypath, byls);
681 
682  if (bymodule) {
683  booker.setCurrentFolder(basedir + "/process " + process.name_ + " modules");
684  for (unsigned int id : process.modules_) {
685  auto const& module_name = job.module(id).moduleLabel();
686  modules_[id].book(booker, module_name, module_name, module_ranges, lumisections, byls);
687  }
688  booker.setCurrentFolder(basedir);
689  }
690  }
691 }
void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:418
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_
void FastTimerService::PlotsPerJob::fill ( ProcessCallGraph const &  job,
ResourcesPerJob const &  data,
unsigned int  ls 
)

Definition at line 693 of file FastTimerService.cc.

References data, FastTimerService::ResourcesPerJob::event, event_, event_ex_, FastTimerService::PlotsPerElement::fill(), watchdog::group, FastTimerService::ResourcesPerJob::highlight, highlight_, triggerObjects_cff::id, eostools::ls(), FastTimerService::ResourcesPerJob::modules, modules_, FastTimerService::ResourcesPerJob::overhead, overhead_, ProcessCallGraph::processDescription(), FastTimerService::ResourcesPerJob::processes, processes_, and FastTimerService::ResourcesPerJob::total.

693  {
694  // fill total event plots
695  event_.fill(data.total, ls);
696  event_ex_.fill(data.event, ls);
697  overhead_.fill(data.overhead, ls);
698 
699  // fill highltight plots
700  for (unsigned int group : boost::irange(0ul, highlight_.size()))
701  highlight_[group].fill_fraction(data.total, data.highlight[group], ls);
702 
703  // fill modules plots
704  for (unsigned int id : boost::irange(0ul, modules_.size()))
705  modules_[id].fill(data.modules[id].total, ls);
706 
707  for (unsigned int pid : boost::irange(0ul, processes_.size()))
708  processes_[pid].fill(job.processDescription(pid), data, data.processes[pid], ls);
709 }
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
void FastTimerService::PlotsPerJob::fill_lumi ( AtomicResources const &  data,
unsigned int  lumisection 
)

Definition at line 716 of file FastTimerService.cc.

References FastTimerService::PlotsPerElement::fill(), and lumi_.

716  {
717  // fill lumisection transition plots
718  lumi_.fill(data, ls);
719 }
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
void FastTimerService::PlotsPerJob::fill_run ( AtomicResources const &  data)

Definition at line 711 of file FastTimerService.cc.

References FastTimerService::PlotsPerElement::fill(), and run_.

711  {
712  // fill run transition plots
713  run_.fill(data, 0);
714 }
void fill(Resources const &, unsigned int lumisection)
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79

Member Data Documentation

PlotsPerElement FastTimerService::PlotsPerJob::event_
private

Definition at line 412 of file FastTimerService.h.

Referenced by book(), and fill().

PlotsPerElement FastTimerService::PlotsPerJob::event_ex_
private

Definition at line 413 of file FastTimerService.h.

Referenced by book(), and fill().

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

Definition at line 419 of file FastTimerService.h.

Referenced by book(), and fill().

PlotsPerElement FastTimerService::PlotsPerJob::lumi_
private

Definition at line 416 of file FastTimerService.h.

Referenced by book(), and fill_lumi().

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

Definition at line 421 of file FastTimerService.h.

Referenced by book(), and fill().

PlotsPerElement FastTimerService::PlotsPerJob::overhead_
private

Definition at line 414 of file FastTimerService.h.

Referenced by book(), and fill().

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

Definition at line 423 of file FastTimerService.h.

Referenced by book(), fill(), and PlotsPerJob().

PlotsPerElement FastTimerService::PlotsPerJob::run_
private

Definition at line 417 of file FastTimerService.h.

Referenced by book(), and fill_run().