CMS 3D CMS Logo

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

Public Member Functions

void book (DQMStore::IBooker &, ProcessCallGraph const &, std::vector< GroupOfModules > const &, double event_range, double event_resolution, double path_range, double path_resolution, double module_range, double module_resolution, unsigned int lumisections, bool bymodule, bool byls)
 
void fill (ProcessCallGraph const &, ResourcesPerJob const &, unsigned int ls)
 
 PlotsPerJob (ProcessCallGraph const &job, std::vector< GroupOfModules > const &groups)
 
void reset ()
 

Private Attributes

PlotsPerElement event_
 
std::vector< PlotsPerElementhighlight_
 
std::vector< PlotsPerElementmodules_
 
std::vector< PlotsPerProcessprocesses_
 

Detailed Description

Definition at line 370 of file FastTimerService.h.

Constructor & Destructor Documentation

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

Definition at line 536 of file FastTimerService.cc.

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

536  :
537  event_(),
538  highlight_(groups.size()),
539  modules_(job.size()),
540  processes_()
541 {
542  processes_.reserve(job.processes().size());
543  for (auto const& process: job.processes())
544  processes_.emplace_back(process);
545 }
std::vector< PlotsPerElement > highlight_
std::vector< PlotsPerElement > modules_
std::vector< PlotsPerProcess > processes_

Member Function Documentation

void FastTimerService::PlotsPerJob::book ( DQMStore::IBooker booker,
ProcessCallGraph const &  job,
std::vector< GroupOfModules > const &  groups,
double  event_range,
double  event_resolution,
double  path_range,
double  path_resolution,
double  module_range,
double  module_resolution,
unsigned int  lumisections,
bool  bymodule,
bool  byls 
)

Definition at line 560 of file FastTimerService.cc.

References FastTimerService::PlotsPerElement::book(), event_, edmIntegrityCheck::group, highlight_, hcalTTPDigis_cfi::id, edm::ModuleDescription::id(), diffTwoXMLs::label, ProcessCallGraph::module(), customisers::module_name, edm::ModuleDescription::moduleLabel(), modules_, sysUtil::pid, LaserDQM_cfg::process, ProcessCallGraph::processDescription(), ProcessCallGraph::processes(), processes_, DQMStore::IBooker::pwd(), DQMStore::IBooker::setCurrentFolder(), ProcessCallGraph::source(), and AlCaHLTBitMon_QueryRunRegistry::string.

573 {
574  const std::string basedir = booker.pwd();
575 
576  // event summary plots
577  event_.book(booker,
578  "event", "Event",
579  event_range,
580  event_resolution,
581  lumisections,
582  byls);
583 
584  modules_[job.source().id()].book(booker,
585  "source", "Source",
586  module_range,
587  module_resolution,
588  lumisections,
589  byls);
590 
591  // plot the time spent in few given groups of modules
592  for (unsigned int group: boost::irange(0ul, groups.size())) {
593  auto const & label = groups[group].label;
594  highlight_[group].book(booker,
595  "highlight " + label, "Highlight " + label,
596  event_range,
597  event_resolution,
598  lumisections,
599  byls);
600  }
601 
602  // plots per subprocess (event, modules, paths and endpaths)
603  for (unsigned int pid: boost::irange(0ul, job.processes().size())) {
604  auto const& process = job.processDescription(pid);
605  processes_[pid].book(booker,
606  job, process,
607  event_range,
608  event_resolution,
609  path_range,
610  path_resolution,
611  lumisections,
612  byls);
613 
614  if (bymodule) {
615  booker.setCurrentFolder(basedir + "/process " + process.name_ + " modules");
616  for (unsigned int id: process.modules_)
617  {
618  auto const& module_name = job.module(id).moduleLabel();
619  modules_[id].book(booker,
621  module_range,
622  module_resolution,
623  lumisections,
624  byls);
625  }
626  booker.setCurrentFolder(basedir);
627  }
628  }
629 }
void book(DQMStore::IBooker &, std::string const &name, std::string const &title, double range, double resolution, unsigned int lumisections, bool byls)
const std::string & pwd(void)
Definition: DQMStore.cc:285
std::vector< PlotsPerElement > highlight_
std::vector< PlotsPerElement > modules_
std::vector< PlotsPerProcess > processes_
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:277
void FastTimerService::PlotsPerJob::fill ( ProcessCallGraph const &  job,
ResourcesPerJob const &  data,
unsigned int  ls 
)

Definition at line 632 of file FastTimerService.cc.

References data, event_, FastTimerService::PlotsPerElement::fill(), edmIntegrityCheck::group, FastTimerService::ResourcesPerJob::highlight, highlight_, hcalTTPDigis_cfi::id, eostools::ls(), FastTimerService::ResourcesPerJob::modules, modules_, sysUtil::pid, ProcessCallGraph::processDescription(), FastTimerService::ResourcesPerJob::processes, processes_, and FastTimerService::ResourcesPerJob::total.

633 {
634  // fill total event plots
635  event_.fill(data.total, ls);
636 
637  // fill highltight plots
638  for (unsigned int group: boost::irange(0ul, highlight_.size()))
639  highlight_[group].fill_fraction(data.total, data.highlight[group], ls);
640 
641  // fill modules plots
642  for (unsigned int id: boost::irange(0ul, modules_.size()))
643  modules_[id].fill(data.modules[id].total, ls);
644 
645  for (unsigned int pid: boost::irange(0ul, processes_.size()))
646  processes_[pid].fill(job.processDescription(pid), data, data.processes[pid], ls);
647 }
void fill(Resources const &, unsigned int lumisection)
std::vector< PlotsPerElement > highlight_
std::vector< PlotsPerElement > modules_
def ls(path, rec=False)
Definition: eostools.py:348
std::vector< PlotsPerProcess > processes_
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
void FastTimerService::PlotsPerJob::reset ( void  )

Definition at line 548 of file FastTimerService.cc.

References event_, highlight_, modules_, LaserDQM_cfg::process, processes_, and FastTimerService::PlotsPerElement::reset().

549 {
550  event_.reset();
551  for (auto & module: highlight_)
552  module.reset();
553  for (auto & module: modules_)
554  module.reset();
555  for (auto & process: processes_)
556  process.reset();
557 }
std::vector< PlotsPerElement > highlight_
std::vector< PlotsPerElement > modules_
std::vector< PlotsPerProcess > processes_
Definition: vlib.h:208

Member Data Documentation

PlotsPerElement FastTimerService::PlotsPerJob::event_
private

Definition at line 382 of file FastTimerService.h.

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

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

Definition at line 384 of file FastTimerService.h.

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

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

Definition at line 386 of file FastTimerService.h.

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

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

Definition at line 388 of file FastTimerService.h.

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