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 bypath, 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 399 of file FastTimerService.h.

Constructor & Destructor Documentation

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

Definition at line 707 of file FastTimerService.cc.

707  :
708  event_(),
709  paths_(process.paths_.size()),
710  endpaths_(process.endPaths_.size())
711 {
712 }
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  bypath,
bool  byls 
)

Definition at line 725 of file FastTimerService.cc.

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

734 {
735  const std::string basedir = booker.pwd();
736  event_.book(booker,
737  "process " + process.name_, "process " + process.name_,
738  event_ranges,
739  lumisections,
740  byls);
741  if (bypath) {
742  booker.setCurrentFolder(basedir + "/process " + process.name_ + " paths");
743  for (unsigned int id: boost::irange(0ul, paths_.size()))
744  {
745  paths_[id].book(booker,"path ",
746  job, process.paths_[id],
747  path_ranges,
748  lumisections,
749  byls);
750  }
751  for (unsigned int id: boost::irange(0ul, endpaths_.size()))
752  {
753  endpaths_[id].book(booker,"endpath ",
754  job, process.endPaths_[id],
755  path_ranges,
756  lumisections,
757  byls);
758  }
759  booker.setCurrentFolder(basedir);
760  }
761 }
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 764 of file FastTimerService.cc.

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

765 {
766  // fill process event plots
767  event_.fill(process.total, ls);
768 
769  // fill all paths plots
770  for (unsigned int id: boost::irange(0ul, paths_.size()))
771  paths_[id].fill(description.paths_[id], data, process.paths[id], ls);
772 
773  // fill all endpaths plots
774  for (unsigned int id: boost::irange(0ul, endpaths_.size()))
775  endpaths_[id].fill(description.endPaths_[id], data, process.endpaths[id], ls);
776 }
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 715 of file FastTimerService.cc.

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

716 {
717  event_.reset();
718  for (auto & path: paths_)
719  path.reset();
720  for (auto & path: endpaths_)
721  path.reset();
722 }
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 410 of file FastTimerService.h.

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

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