CMS 3D CMS Logo

Public Member Functions | Private Attributes

edm::EventTime Class Reference

#include <ModuleTiming.h>

List of all members.

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 28 of file ModuleTiming.h.


Constructor & Destructor Documentation

edm::EventTime::EventTime ( ) [inline]

Definition at line 35 of file ModuleTiming.h.

References reset().

{reset();}
edm::EventTime::~EventTime ( ) [inline]

Definition at line 36 of file ModuleTiming.h.

{}

Member Function Documentation

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

Definition at line 58 of file ModuleTiming.h.

References moduleSet, edm::ModuleTime::time(), and tot_time_.

    {
      moduleSet.push_back(m); 
      tot_time_ += m.time();
    }
const ModuleTime& edm::EventTime::moduleTime ( unsigned  i) [inline]

Definition at line 41 of file ModuleTiming.h.

References moduleSet.

      {
        return moduleSet.at(i);
      }
std::string edm::EventTime::name ( unsigned  i) const [inline]

Definition at line 48 of file ModuleTiming.h.

References moduleSet.

    {
      return moduleSet.at(i).name();
    }
void edm::EventTime::reset ( void  ) [inline]

Definition at line 65 of file ModuleTiming.h.

References moduleSet, and tot_time_.

Referenced by EventTime().

    {moduleSet.clear(); tot_time_ = 0;}
unsigned edm::EventTime::size ( void  ) const [inline]

Definition at line 39 of file ModuleTiming.h.

References moduleSet.

{return moduleSet.size();} 
double edm::EventTime::time ( unsigned  i) const [inline]

Definition at line 53 of file ModuleTiming.h.

References moduleSet.

    {
      return moduleSet.at(i).time();
    }
double edm::EventTime::tot_time ( ) const [inline]

Definition at line 46 of file ModuleTiming.h.

References tot_time_.

{return tot_time_;}

Member Data Documentation

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

Definition at line 31 of file ModuleTiming.h.

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

double edm::EventTime::tot_time_ [private]

Definition at line 32 of file ModuleTiming.h.

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