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 &, PlotRanges const &event_ranges, PlotRanges const &path_ranges, PlotRanges const &module_ranges, 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 389 of file FastTimerService.h.

Constructor & Destructor Documentation

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

Definition at line 667 of file FastTimerService.cc.

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

667  :
668  event_(),
669  highlight_(groups.size()),
670  modules_(job.size()),
671  processes_()
672 {
673  processes_.reserve(job.processes().size());
674  for (auto const& process: job.processes())
675  processes_.emplace_back(process);
676 }
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,
PlotRanges const &  event_ranges,
PlotRanges const &  path_ranges,
PlotRanges const &  module_ranges,
unsigned int  lumisections,
bool  bymodule,
bool  byls 
)

Definition at line 691 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.

701 {
702  const std::string basedir = booker.pwd();
703 
704  // event summary plots
705  event_.book(booker,
706  "event", "Event",
707  event_ranges,
708  lumisections,
709  byls);
710 
711  modules_[job.source().id()].book(booker,
712  "source", "Source",
713  module_ranges,
714  lumisections,
715  byls);
716 
717  // plot the time spent in few given groups of modules
718  for (unsigned int group: boost::irange(0ul, groups.size())) {
719  auto const & label = groups[group].label;
720  highlight_[group].book(booker,
721  "highlight " + label, "Highlight " + label,
722  event_ranges,
723  lumisections,
724  byls);
725  }
726 
727  // plots per subprocess (event, modules, paths and endpaths)
728  for (unsigned int pid: boost::irange(0ul, job.processes().size())) {
729  auto const& process = job.processDescription(pid);
730  processes_[pid].book(booker,
731  job, process,
732  event_ranges,
733  path_ranges,
734  lumisections,
735  byls);
736 
737  if (bymodule) {
738  booker.setCurrentFolder(basedir + "/process " + process.name_ + " modules");
739  for (unsigned int id: process.modules_)
740  {
741  auto const& module_name = job.module(id).moduleLabel();
742  modules_[id].book(booker,
744  module_ranges,
745  lumisections,
746  byls);
747  }
748  booker.setCurrentFolder(basedir);
749  }
750  }
751 }
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 book(DQMStore::IBooker &, std::string const &name, std::string const &title, PlotRanges const &ranges, unsigned int lumisections, bool byls)
void FastTimerService::PlotsPerJob::fill ( ProcessCallGraph const &  job,
ResourcesPerJob const &  data,
unsigned int  ls 
)

Definition at line 754 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.

755 {
756  // fill total event plots
757  event_.fill(data.total, ls);
758 
759  // fill highltight plots
760  for (unsigned int group: boost::irange(0ul, highlight_.size()))
761  highlight_[group].fill_fraction(data.total, data.highlight[group], ls);
762 
763  // fill modules plots
764  for (unsigned int id: boost::irange(0ul, modules_.size()))
765  modules_[id].fill(data.modules[id].total, ls);
766 
767  for (unsigned int pid: boost::irange(0ul, processes_.size()))
768  processes_[pid].fill(job.processDescription(pid), data, data.processes[pid], ls);
769 }
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 679 of file FastTimerService.cc.

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

680 {
681  event_.reset();
682  for (auto & module: highlight_)
683  module.reset();
684  for (auto & module: modules_)
685  module.reset();
686  for (auto & process: processes_)
687  process.reset();
688 }
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 401 of file FastTimerService.h.

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

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

Definition at line 403 of file FastTimerService.h.

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

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

Definition at line 405 of file FastTimerService.h.

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

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

Definition at line 407 of file FastTimerService.h.

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