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

Constructor & Destructor Documentation

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

Definition at line 601 of file FastTimerService.cc.

601  :
602  event_(),
603  paths_(process.paths_.size()),
604  endpaths_(process.endPaths_.size())
605 {
606 }
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 619 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.

628 {
629  const std::string basedir = booker.pwd();
630  event_.book(booker,
631  "process " + process.name_, "process " + process.name_,
632  event_ranges,
633  lumisections,
634  byls);
635  if (bypath) {
636  booker.setCurrentFolder(basedir + "/process " + process.name_ + " paths");
637  for (unsigned int id: boost::irange(0ul, paths_.size()))
638  {
639  paths_[id].book(booker,"path ",
640  job, process.paths_[id],
641  path_ranges,
642  lumisections,
643  byls);
644  }
645  for (unsigned int id: boost::irange(0ul, endpaths_.size()))
646  {
647  endpaths_[id].book(booker,"endpath ",
648  job, process.endPaths_[id],
649  path_ranges,
650  lumisections,
651  byls);
652  }
653  booker.setCurrentFolder(basedir);
654  }
655 }
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 658 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.

659 {
660  // fill process event plots
661  event_.fill(process.total, ls);
662 
663  // fill all paths plots
664  for (unsigned int id: boost::irange(0ul, paths_.size()))
665  paths_[id].fill(description.paths_[id], data, process.paths[id], ls);
666 
667  // fill all endpaths plots
668  for (unsigned int id: boost::irange(0ul, endpaths_.size()))
669  endpaths_[id].fill(description.endPaths_[id], data, process.endpaths[id], ls);
670 }
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 609 of file FastTimerService.cc.

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

610 {
611  event_.reset();
612  for (auto & path: paths_)
613  path.reset();
614  for (auto & path: endpaths_)
615  path.reset();
616 }
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 384 of file FastTimerService.h.

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

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