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 &, double event_range, double event_resolution, double path_range, double path_resolution, 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 353 of file FastTimerService.h.

Constructor & Destructor Documentation

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

Definition at line 463 of file FastTimerService.cc.

463  :
464  event_(),
465  paths_(process.paths_.size()),
466  endpaths_(process.endPaths_.size())
467 {
468 }
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,
double  event_range,
double  event_resolution,
double  path_range,
double  path_resolution,
unsigned int  lumisections,
bool  byls 
)

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

491 {
492  const std::string basedir = booker.pwd();
493  event_.book(booker,
494  "process " + process.name_, "process " + process.name_,
495  event_range,
496  event_resolution,
497  lumisections,
498  byls);
499  booker.setCurrentFolder(basedir + "/process " + process.name_ + " paths");
500  for (unsigned int id: boost::irange(0ul, paths_.size()))
501  {
502  paths_[id].book(booker,
503  job, process.paths_[id],
504  path_range,
505  path_resolution,
506  lumisections,
507  byls);
508  }
509  for (unsigned int id: boost::irange(0ul, endpaths_.size()))
510  {
511  endpaths_[id].book(booker,
512  job, process.endPaths_[id],
513  path_range,
514  path_resolution,
515  lumisections,
516  byls);
517  }
518  booker.setCurrentFolder(basedir);
519 }
void book(DQMStore::IBooker &, std::string const &name, std::string const &title, double range, double resolution, unsigned int lumisections, bool byls)
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 FastTimerService::PlotsPerProcess::fill ( ProcessCallGraph::ProcessType const &  description,
ResourcesPerJob const &  data,
ResourcesPerProcess const &  process,
unsigned int  ls 
)

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

523 {
524  // fill process event plots
525  event_.fill(process.total, ls);
526 
527  // fill all paths plots
528  for (unsigned int id: boost::irange(0ul, paths_.size()))
529  paths_[id].fill(description.paths_[id], data, process.paths[id], ls);
530 
531  // fill all endpaths plots
532  for (unsigned int id: boost::irange(0ul, endpaths_.size()))
533  endpaths_[id].fill(description.endPaths_[id], data, process.endpaths[id], ls);
534 }
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 471 of file FastTimerService.cc.

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

472 {
473  event_.reset();
474  for (auto & path: paths_)
475  path.reset();
476  for (auto & path: endpaths_)
477  path.reset();
478 }
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 364 of file FastTimerService.h.

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

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