CMS 3D CMS Logo

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

Public Member Functions

void book (DQMStore::IBooker &, ProcessCallGraph const &, ProcessCallGraph::ProcessType const &, PlotRanges const &event_ranges, PlotRanges const &path_ranges, unsigned int lumisections, bool byls)
 
void fill (ProcessCallGraph::ProcessType const &, ResourcesPerJob const &, ResourcesPerProcess const &, unsigned int ls)
 
 PlotsPerProcess (ProcessCallGraph::ProcessType const &)
 
void reset ()
 

Private Attributes

std::vector< PlotsPerPathendpaths_
 
PlotsPerElement event_
 
std::vector< PlotsPerPathpaths_
 

Detailed Description

Definition at line 372 of file FastTimerService.h.

Constructor & Destructor Documentation

FastTimerService::PlotsPerProcess::PlotsPerProcess ( ProcessCallGraph::ProcessType const &  process)

Definition at line 599 of file FastTimerService.cc.

599  :
600  event_(),
601  paths_(process.paths_.size()),
602  endpaths_(process.endPaths_.size())
603 {
604 }
std::vector< PlotsPerPath > endpaths_
std::vector< PlotsPerPath > paths_

Member Function Documentation

void FastTimerService::PlotsPerProcess::book ( DQMStore::IBooker booker,
ProcessCallGraph const &  job,
ProcessCallGraph::ProcessType const &  process,
PlotRanges const &  event_ranges,
PlotRanges const &  path_ranges,
unsigned int  lumisections,
bool  byls 
)

Definition at line 617 of file FastTimerService.cc.

References FastTimerService::PlotsPerElement::book(), ProcessCallGraph::ProcessType::endPaths_, endpaths_, event_, hcalTTPDigis_cfi::id, ProcessCallGraph::ProcessType::name_, ProcessCallGraph::ProcessType::paths_, paths_, DQMStore::IBooker::pwd(), DQMStore::IBooker::setCurrentFolder(), and AlCaHLTBitMon_QueryRunRegistry::string.

625 {
626  const std::string basedir = booker.pwd();
627  event_.book(booker,
628  "process " + process.name_, "process " + process.name_,
629  event_ranges,
630  lumisections,
631  byls);
632  booker.setCurrentFolder(basedir + "/process " + process.name_ + " paths");
633  for (unsigned int id: boost::irange(0ul, paths_.size()))
634  {
635  paths_[id].book(booker,
636  job, process.paths_[id],
637  path_ranges,
638  lumisections,
639  byls);
640  }
641  for (unsigned int id: boost::irange(0ul, endpaths_.size()))
642  {
643  endpaths_[id].book(booker,
644  job, process.endPaths_[id],
645  path_ranges,
646  lumisections,
647  byls);
648  }
649  booker.setCurrentFolder(basedir);
650 }
const std::string & pwd(void)
Definition: DQMStore.cc:285
std::vector< PlotsPerPath > endpaths_
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:277
std::vector< PlotsPerPath > paths_
void book(DQMStore::IBooker &, std::string const &name, std::string const &title, PlotRanges const &ranges, unsigned int lumisections, bool byls)
void FastTimerService::PlotsPerProcess::fill ( ProcessCallGraph::ProcessType const &  description,
ResourcesPerJob const &  data,
ResourcesPerProcess const &  process,
unsigned int  ls 
)

Definition at line 653 of file FastTimerService.cc.

References FastTimerService::ResourcesPerProcess::endpaths, ProcessCallGraph::ProcessType::endPaths_, endpaths_, event_, FastTimerService::PlotsPerElement::fill(), hcalTTPDigis_cfi::id, FastTimerService::ResourcesPerProcess::paths, ProcessCallGraph::ProcessType::paths_, paths_, and FastTimerService::ResourcesPerProcess::total.

654 {
655  // fill process event plots
656  event_.fill(process.total, ls);
657 
658  // fill all paths plots
659  for (unsigned int id: boost::irange(0ul, paths_.size()))
660  paths_[id].fill(description.paths_[id], data, process.paths[id], ls);
661 
662  // fill all endpaths plots
663  for (unsigned int id: boost::irange(0ul, endpaths_.size()))
664  endpaths_[id].fill(description.endPaths_[id], data, process.endpaths[id], ls);
665 }
void fill(Resources const &, unsigned int lumisection)
std::vector< PlotsPerPath > endpaths_
def ls(path, rec=False)
Definition: eostools.py:348
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
std::vector< PlotsPerPath > paths_
void FastTimerService::PlotsPerProcess::reset ( void  )

Definition at line 607 of file FastTimerService.cc.

References endpaths_, event_, callgraph::path, paths_, and FastTimerService::PlotsPerElement::reset().

608 {
609  event_.reset();
610  for (auto & path: paths_)
611  path.reset();
612  for (auto & path: endpaths_)
613  path.reset();
614 }
std::vector< PlotsPerPath > endpaths_
std::vector< PlotsPerPath > paths_

Member Data Documentation

std::vector<PlotsPerPath> FastTimerService::PlotsPerProcess::endpaths_
private
PlotsPerElement FastTimerService::PlotsPerProcess::event_
private

Definition at line 383 of file FastTimerService.h.

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

std::vector<PlotsPerPath> FastTimerService::PlotsPerProcess::paths_
private