CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
edm::EventTime Class Reference

#include <ModuleTiming.h>

Public Member Functions

void addModuleTime (const ModuleTime &m)
 
 EventTime ()
 
const ModuleTimemoduleTime (unsigned i)
 
std::string name (unsigned i) const
 
void reset ()
 
unsigned size () const
 
double time (unsigned i) const
 
double tot_time () const
 
 ~EventTime ()
 

Private Attributes

std::vector< ModuleTimemoduleSet
 
double tot_time_
 

Detailed Description

Definition at line 26 of file ModuleTiming.h.

Constructor & Destructor Documentation

◆ EventTime()

edm::EventTime::EventTime ( )
inline

Definition at line 32 of file ModuleTiming.h.

References reset().

32 { reset(); }

◆ ~EventTime()

edm::EventTime::~EventTime ( )
inline

Definition at line 33 of file ModuleTiming.h.

33 {}

Member Function Documentation

◆ addModuleTime()

void edm::EventTime::addModuleTime ( const ModuleTime m)
inline

Definition at line 46 of file ModuleTiming.h.

References visualization-live-secondInstance_cfg::m, moduleSet, and tot_time_.

46  {
47  moduleSet.push_back(m);
48  tot_time_ += m.time();
49  }
double tot_time_
Definition: ModuleTiming.h:29
std::vector< ModuleTime > moduleSet
Definition: ModuleTiming.h:28

◆ moduleTime()

const ModuleTime& edm::EventTime::moduleTime ( unsigned  i)
inline

Definition at line 38 of file ModuleTiming.h.

References mps_fire::i, and moduleSet.

38 { return moduleSet.at(i); }
std::vector< ModuleTime > moduleSet
Definition: ModuleTiming.h:28

◆ name()

std::string edm::EventTime::name ( unsigned  i) const
inline

Definition at line 42 of file ModuleTiming.h.

References mps_fire::i, and moduleSet.

Referenced by config.CFG::__str__(), validation.Sample::digest(), and VIDSelectorBase.VIDSelectorBase::initialize().

42 { return moduleSet.at(i).name(); }
std::vector< ModuleTime > moduleSet
Definition: ModuleTiming.h:28

◆ reset()

void edm::EventTime::reset ( void  )
inline

Definition at line 52 of file ModuleTiming.h.

References moduleSet, and tot_time_.

Referenced by EventTime().

52  {
53  moduleSet.clear();
54  tot_time_ = 0;
55  }
double tot_time_
Definition: ModuleTiming.h:29
std::vector< ModuleTime > moduleSet
Definition: ModuleTiming.h:28

◆ size()

unsigned edm::EventTime::size ( void  ) const
inline

Definition at line 36 of file ModuleTiming.h.

References moduleSet.

Referenced by ntupleDataFormat._Collection::__iter__(), and ntupleDataFormat._Collection::__len__().

36 { return moduleSet.size(); }
std::vector< ModuleTime > moduleSet
Definition: ModuleTiming.h:28

◆ time()

double edm::EventTime::time ( unsigned  i) const
inline

Definition at line 44 of file ModuleTiming.h.

References mps_fire::i, and moduleSet.

44 { return moduleSet.at(i).time(); }
std::vector< ModuleTime > moduleSet
Definition: ModuleTiming.h:28

◆ tot_time()

double edm::EventTime::tot_time ( ) const
inline

Definition at line 40 of file ModuleTiming.h.

References tot_time_.

40 { return tot_time_; }
double tot_time_
Definition: ModuleTiming.h:29

Member Data Documentation

◆ moduleSet

std::vector<ModuleTime> edm::EventTime::moduleSet
private

Definition at line 28 of file ModuleTiming.h.

Referenced by addModuleTime(), moduleTime(), name(), reset(), size(), and time().

◆ tot_time_

double edm::EventTime::tot_time_
private

Definition at line 29 of file ModuleTiming.h.

Referenced by addModuleTime(), reset(), and tot_time().