#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 |
Definition at line 11 of file L1TRateHelper.h.
L1TRateHelper::TRateStruct::TRateStruct | ( | ) | [inline] |
Definition at line 12 of file L1TRateHelper.h.
: m_orbitLow(-1), m_orbitHigh(-1), m_events(0) {};
void L1TRateHelper::TRateStruct::add | ( | int | orbit | ) | [inline] |
Definition at line 13 of file L1TRateHelper.h.
References m_events, m_orbitHigh, and m_orbitLow.
{ if (orbit < m_orbitLow || m_orbitLow==-1) m_orbitLow=orbit; if (orbit > m_orbitHigh || m_orbitHigh==-1) m_orbitHigh=orbit; ++m_events; };
int L1TRateHelper::TRateStruct::getTime | ( | void | ) | [inline] |
Definition at line 18 of file L1TRateHelper.h.
References m_orbitHigh, m_orbitLow, and m_timeBin.
{ return (m_orbitHigh+m_orbitLow)/2/m_timeBin; }
static int L1TRateHelper::TRateStruct::getTimeForOrbit | ( | const int & | orbit | ) | [inline, static] |
Definition at line 19 of file L1TRateHelper.h.
References m_timeBin.
Referenced by operator()().
{return orbit/m_timeBin; };
bool L1TRateHelper::TRateStruct::operator() | ( | const int & | o1, |
const int & | o2 | ||
) | const [inline] |
Definition at line 25 of file L1TRateHelper.h.
References getTimeForOrbit().
{ return getTimeForOrbit(o1) < getTimeForOrbit(o2); };
Definition at line 23 of file L1TRateHelper.h.
Referenced by add().
Definition at line 22 of file L1TRateHelper.h.
Definition at line 21 of file L1TRateHelper.h.
const int L1TRateHelper::TRateStruct::m_timeBin = 11224 [static] |
Definition at line 20 of file L1TRateHelper.h.
Referenced by getTime(), and getTimeForOrbit().