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

Constructor & Destructor Documentation

◆ PlotsPerJob()

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

Definition at line 676 of file FastTimerService.cc.

677  : event_(), event_ex_(), overhead_(), highlight_(groups.size()), modules_(job.size()), processes_() {
678  processes_.reserve(job.processes().size());
679  for (auto const& process : job.processes())
680  processes_.emplace_back(process);
681 }

References LaserDQM_cfg::process, ProcessCallGraph::processes(), and 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 683 of file FastTimerService.cc.

693  {
694  const std::string basedir = booker.pwd();
695 
696  // event summary plots
697  event_.book(booker, "event", "Event", event_ranges, lumisections, byls);
698 
699  event_ex_.book(booker, "explicit", "Event (explicit)", event_ranges, lumisections, byls);
700 
701  overhead_.book(booker, "overhead", "Overhead", event_ranges, lumisections, byls);
702 
703  modules_[job.source().id()].book(booker, "source", "Source", module_ranges, lumisections, byls);
704 
705  if (transitions) {
706  lumi_.book(booker, "lumi", "LumiSection transitions", event_ranges, lumisections, byls);
707 
708  run_.book(booker, "run", "Run transtions", event_ranges, lumisections, false);
709  }
710 
711  // plot the time spent in few given groups of modules
712  for (unsigned int group : boost::irange(0ul, groups.size())) {
713  auto const& label = groups[group].label;
714  highlight_[group].book(booker, "highlight " + label, "Highlight " + label, event_ranges, lumisections, byls);
715  }
716 
717  // plots per subprocess (event, modules, paths and endpaths)
718  for (unsigned int pid : boost::irange(0ul, job.processes().size())) {
719  auto const& process = job.processDescription(pid);
720  processes_[pid].book(booker, job, process, event_ranges, path_ranges, lumisections, bypath, byls);
721 
722  if (bymodule) {
723  booker.setCurrentFolder(basedir + "/process " + process.name_ + " modules");
724  for (unsigned int id : process.modules_) {
725  auto const& module_name = job.module(id).moduleLabel();
726  modules_[id].book(booker, module_name, module_name, module_ranges, lumisections, byls);
727  }
728  booker.setCurrentFolder(basedir);
729  }
730  }
731 }

References makeHippyCampaign::basedir, event_(), 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.

◆ fill()

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

Definition at line 733 of file FastTimerService.cc.

733  {
734  // fill total event plots
735  event_.fill(data.total, ls);
736  event_ex_.fill(data.event, ls);
737  overhead_.fill(data.overhead, ls);
738 
739  // fill highltight plots
740  for (unsigned int group : boost::irange(0ul, highlight_.size()))
741  highlight_[group].fill_fraction(data.total, data.highlight[group], ls);
742 
743  // fill modules plots
744  for (unsigned int id : boost::irange(0ul, modules_.size()))
745  modules_[id].fill(data.modules[id].total, ls);
746 
747  for (unsigned int pid : boost::irange(0ul, processes_.size()))
748  processes_[pid].fill(job.processDescription(pid), data, data.processes[pid], ls);
749 }

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

◆ fill_lumi()

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

Definition at line 756 of file FastTimerService.cc.

756  {
757  // fill lumisection transition plots
758  lumi_.fill(data, ls);
759 }

References data, and eostools::ls().

◆ fill_run()

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

Definition at line 751 of file FastTimerService.cc.

751  {
752  // fill run transition plots
753  run_.fill(data, 0);
754 }

References data.

Member Data Documentation

◆ event_

PlotsPerElement FastTimerService::PlotsPerJob::event_
private

Definition at line 425 of file FastTimerService.h.

◆ event_ex_

PlotsPerElement FastTimerService::PlotsPerJob::event_ex_
private

Definition at line 426 of file FastTimerService.h.

◆ highlight_

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

Definition at line 432 of file FastTimerService.h.

◆ lumi_

PlotsPerElement FastTimerService::PlotsPerJob::lumi_
private

Definition at line 429 of file FastTimerService.h.

◆ modules_

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

Definition at line 434 of file FastTimerService.h.

◆ overhead_

PlotsPerElement FastTimerService::PlotsPerJob::overhead_
private

Definition at line 427 of file FastTimerService.h.

◆ processes_

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

Definition at line 436 of file FastTimerService.h.

Referenced by PlotsPerJob().

◆ run_

PlotsPerElement FastTimerService::PlotsPerJob::run_
private

Definition at line 430 of file FastTimerService.h.

eostools.ls
def ls(path, rec=False)
Definition: eostools.py:349
FastTimerService::PlotsPerJob::modules_
std::vector< PlotsPerElement > modules_
Definition: FastTimerService.h:434
dqm::implementation::NavigatorBase::setCurrentFolder
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:32
FastTimerService::PlotsPerJob::event_ex_
PlotsPerElement event_ex_
Definition: FastTimerService.h:426
FastTimerService::PlotsPerJob::lumi_
PlotsPerElement lumi_
Definition: FastTimerService.h:429
makeHippyCampaign.basedir
basedir
Definition: makeHippyCampaign.py:14
dqm::implementation::NavigatorBase::pwd
virtual std::string pwd()
Definition: DQMStore.cc:16
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
FastTimerService::PlotsPerJob::overhead_
PlotsPerElement overhead_
Definition: FastTimerService.h:427
FastTimerService::PlotsPerJob::processes_
std::vector< PlotsPerProcess > processes_
Definition: FastTimerService.h:436
LaserDQM_cfg.process
process
Definition: LaserDQM_cfg.py:3
FastTimerService::PlotsPerElement::book
void book(dqm::reco::DQMStore::IBooker &, std::string const &name, std::string const &title, PlotRanges const &ranges, unsigned int lumisections, bool byls)
Definition: FastTimerService.cc:374
FastTimerService::PlotsPerJob::event_
PlotsPerElement event_
Definition: FastTimerService.h:425
FastTimerService::PlotsPerJob::run_
PlotsPerElement run_
Definition: FastTimerService.h:430
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:31
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
FastTimerService::PlotsPerElement::fill
void fill(Resources const &, unsigned int lumisection)
Definition: FastTimerService.cc:459
customisers.module_name
module_name
Definition: customisers.py:40
FastTimerService::PlotsPerJob::highlight_
std::vector< PlotsPerElement > highlight_
Definition: FastTimerService.h:432
label
const char * label
Definition: PFTauDecayModeTools.cc:11
watchdog.group
group
Definition: watchdog.py:82