CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
RateBuffer Class Reference

#include <L1TBPTX.h>

Public Member Functions

void fill (int ls, bool isAlgo, int bit, double rate)
 
double getLSAlgoRate (int ls, int bit, double rate)
 
double getLSRate (int ls, bool isAlgo, int bit, double rate)
 
double getLSTechRate (int ls, int bit, double rate)
 

Private Attributes

std::map< std::pair< int, int >, double > m_lsAlgoRate
 
std::map< std::pair< int, int >, double > m_lsTechRate
 

Detailed Description

Definition at line 45 of file L1TBPTX.h.

Member Function Documentation

void RateBuffer::fill ( int  ls,
bool  isAlgo,
int  bit,
double  rate 
)
inline

Definition at line 47 of file L1TBPTX.h.

References eostools::ls(), m_lsAlgoRate, and m_lsTechRate.

47  {
48  if (isAlgo) {
49  m_lsAlgoRate[std::pair<int, int>(ls, bit)] = rate;
50  } else {
51  m_lsTechRate[std::pair<int, int>(ls, bit)] = rate;
52  }
53  }
std::map< std::pair< int, int >, double > m_lsAlgoRate
Definition: L1TBPTX.h:65
def ls(path, rec=False)
Definition: eostools.py:349
double rate(double x)
Definition: Constants.cc:3
std::map< std::pair< int, int >, double > m_lsTechRate
Definition: L1TBPTX.h:66
double RateBuffer::getLSAlgoRate ( int  ls,
int  bit,
double  rate 
)
inline

Definition at line 61 of file L1TBPTX.h.

References eostools::ls(), and m_lsAlgoRate.

61 { return m_lsAlgoRate[std::pair<int, int>(ls, bit)]; }
std::map< std::pair< int, int >, double > m_lsAlgoRate
Definition: L1TBPTX.h:65
def ls(path, rec=False)
Definition: eostools.py:349
double RateBuffer::getLSRate ( int  ls,
bool  isAlgo,
int  bit,
double  rate 
)
inline

Definition at line 54 of file L1TBPTX.h.

References eostools::ls(), m_lsAlgoRate, and m_lsTechRate.

54  {
55  if (isAlgo) {
56  return m_lsAlgoRate[std::pair<int, int>(ls, bit)];
57  } else {
58  return m_lsTechRate[std::pair<int, int>(ls, bit)];
59  }
60  }
std::map< std::pair< int, int >, double > m_lsAlgoRate
Definition: L1TBPTX.h:65
def ls(path, rec=False)
Definition: eostools.py:349
std::map< std::pair< int, int >, double > m_lsTechRate
Definition: L1TBPTX.h:66
double RateBuffer::getLSTechRate ( int  ls,
int  bit,
double  rate 
)
inline

Definition at line 62 of file L1TBPTX.h.

References eostools::ls(), and m_lsTechRate.

62 { return m_lsTechRate[std::pair<int, int>(ls, bit)]; }
def ls(path, rec=False)
Definition: eostools.py:349
std::map< std::pair< int, int >, double > m_lsTechRate
Definition: L1TBPTX.h:66

Member Data Documentation

std::map<std::pair<int, int>, double> RateBuffer::m_lsAlgoRate
private

Definition at line 65 of file L1TBPTX.h.

Referenced by fill(), getLSAlgoRate(), and getLSRate().

std::map<std::pair<int, int>, double> RateBuffer::m_lsTechRate
private

Definition at line 66 of file L1TBPTX.h.

Referenced by fill(), getLSRate(), and getLSTechRate().