CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes
L1TRateHelper::TRateStruct Struct Reference

#include <L1TRateHelper.h>

Public Member Functions

void add (int orbit)
 
int getTime ()
 
bool operator() (const int &o1, const int &o2) const
 
 TRateStruct ()
 

Static Public Member Functions

static int getTimeForOrbit (const int &orbit)
 

Public Attributes

int m_events
 
int m_orbitHigh
 
int m_orbitLow
 

Static Public Attributes

static const int m_timeBin = 11224
 

Detailed Description

Definition at line 11 of file L1TRateHelper.h.

Constructor & Destructor Documentation

L1TRateHelper::TRateStruct::TRateStruct ( )
inline

Member Function Documentation

void L1TRateHelper::TRateStruct::add ( int  orbit)
inline

Definition at line 13 of file L1TRateHelper.h.

References m_events, m_orbitHigh, and m_orbitLow.

13  {
14  if (orbit < m_orbitLow || m_orbitLow==-1) m_orbitLow=orbit;
15  if (orbit > m_orbitHigh || m_orbitHigh==-1) m_orbitHigh=orbit;
16  ++m_events;
17  };
int L1TRateHelper::TRateStruct::getTime ( void  )
inline

Definition at line 18 of file L1TRateHelper.h.

References m_orbitHigh, m_orbitLow, and m_timeBin.

static int L1TRateHelper::TRateStruct::getTimeForOrbit ( const int &  orbit)
inlinestatic

Definition at line 19 of file L1TRateHelper.h.

References m_timeBin.

Referenced by operator()().

19 {return orbit/m_timeBin; };
static const int m_timeBin
Definition: L1TRateHelper.h:20
bool L1TRateHelper::TRateStruct::operator() ( const int &  o1,
const int &  o2 
) const
inline

Definition at line 25 of file L1TRateHelper.h.

References getTimeForOrbit().

25  {
26  return getTimeForOrbit(o1) < getTimeForOrbit(o2);
27  };
static int getTimeForOrbit(const int &orbit)
Definition: L1TRateHelper.h:19

Member Data Documentation

int L1TRateHelper::TRateStruct::m_events

Definition at line 23 of file L1TRateHelper.h.

Referenced by add().

int L1TRateHelper::TRateStruct::m_orbitHigh

Definition at line 22 of file L1TRateHelper.h.

Referenced by add(), and getTime().

int L1TRateHelper::TRateStruct::m_orbitLow

Definition at line 21 of file L1TRateHelper.h.

Referenced by add(), and getTime().

const int L1TRateHelper::TRateStruct::m_timeBin = 11224
static

Definition at line 20 of file L1TRateHelper.h.

Referenced by getTime(), and getTimeForOrbit().