CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
HLTPerformanceInfo::Module Class Reference

#include <HLTPerformanceInfo.h>

Public Member Functions

void clear ()
 
double cputime () const
 
 Module ()
 
 Module (const char *n, const double dt, const double dtCPU, edm::HLTPathStatus stat=edm::hlt::Ready)
 
std::string name () const
 
bool operator== (const char *tname)
 
void setCPUTime (double t)
 
void setStatus (edm::HLTPathStatus status)
 
void setTime (double t)
 
edm::HLTPathStatus status () const
 
double time () const
 

Private Attributes

double dt_
 
double dtCPU_
 
std::string name_
 
edm::HLTPathStatus status_
 

Detailed Description

Definition at line 21 of file HLTPerformanceInfo.h.

Constructor & Destructor Documentation

◆ Module() [1/2]

HLTPerformanceInfo::Module::Module ( )
inline

Definition at line 30 of file HLTPerformanceInfo.h.

30 : name_("unknown") {}

◆ Module() [2/2]

HLTPerformanceInfo::Module::Module ( const char *  n,
const double  dt,
const double  dtCPU,
edm::HLTPathStatus  stat = edm::hlt::Ready 
)
inline

Member Function Documentation

◆ clear()

void HLTPerformanceInfo::Module::clear ( void  )
inline

Definition at line 39 of file HLTPerformanceInfo.h.

References dt_, dtCPU_, edm::HLTPathStatus::reset(), and status_.

39  {
40  dt_ = 0;
41  dtCPU_ = 0;
42  status_.reset(); // = edm::hlt::Ready;
43  }
void reset()
reset this path
Definition: HLTPathStatus.h:54

◆ cputime()

double HLTPerformanceInfo::Module::cputime ( ) const
inline

Definition at line 36 of file HLTPerformanceInfo.h.

References dtCPU_.

36 { return dtCPU_; }

◆ name()

std::string HLTPerformanceInfo::Module::name ( ) const
inline

◆ operator==()

bool HLTPerformanceInfo::Module::operator== ( const char *  tname)
inline

Definition at line 38 of file HLTPerformanceInfo.h.

References name(), AlCaHLTBitMon_QueryRunRegistry::string, and tname().

38 { return std::string(tname) == name(); }
std::string tname(const std::string &tableName, const std::string &schemaVersion)

◆ setCPUTime()

void HLTPerformanceInfo::Module::setCPUTime ( double  t)
inline

◆ setStatus()

void HLTPerformanceInfo::Module::setStatus ( edm::HLTPathStatus  status)
inline

Definition at line 46 of file HLTPerformanceInfo.h.

References status(), and status_.

46 { status_ = status; }
edm::HLTPathStatus status() const

◆ setTime()

void HLTPerformanceInfo::Module::setTime ( double  t)
inline

◆ status()

edm::HLTPathStatus HLTPerformanceInfo::Module::status ( ) const
inline

Definition at line 37 of file HLTPerformanceInfo.h.

References status_.

Referenced by setStatus().

37 { return status_; }

◆ time()

double HLTPerformanceInfo::Module::time ( ) const
inline

Definition at line 35 of file HLTPerformanceInfo.h.

References dt_.

35 { return dt_; }

Member Data Documentation

◆ dt_

double HLTPerformanceInfo::Module::dt_
private

Definition at line 24 of file HLTPerformanceInfo.h.

Referenced by clear(), setTime(), and time().

◆ dtCPU_

double HLTPerformanceInfo::Module::dtCPU_
private

Definition at line 25 of file HLTPerformanceInfo.h.

Referenced by clear(), cputime(), and setCPUTime().

◆ name_

std::string HLTPerformanceInfo::Module::name_
private

Definition at line 23 of file HLTPerformanceInfo.h.

Referenced by name().

◆ status_

edm::HLTPathStatus HLTPerformanceInfo::Module::status_
private

Definition at line 27 of file HLTPerformanceInfo.h.

Referenced by clear(), setStatus(), and status().