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

◆ fill()

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

Definition at line 47 of file L1TBPTX.h.

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  }

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

◆ getLSAlgoRate()

double RateBuffer::getLSAlgoRate ( int  ls,
int  bit,
double  rate 
)
inline

Definition at line 61 of file L1TBPTX.h.

61 { return m_lsAlgoRate[std::pair<int, int>(ls, bit)]; }

References eostools::ls(), and m_lsAlgoRate.

◆ getLSRate()

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

Definition at line 54 of file L1TBPTX.h.

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  }

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

◆ getLSTechRate()

double RateBuffer::getLSTechRate ( int  ls,
int  bit,
double  rate 
)
inline

Definition at line 62 of file L1TBPTX.h.

62 { return m_lsTechRate[std::pair<int, int>(ls, bit)]; }

References eostools::ls(), and m_lsTechRate.

Member Data Documentation

◆ m_lsAlgoRate

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().

◆ m_lsTechRate

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().

eostools.ls
def ls(path, rec=False)
Definition: eostools.py:349
RateBuffer::m_lsTechRate
std::map< std::pair< int, int >, double > m_lsTechRate
Definition: L1TBPTX.h:66
RPCpg::rate
double rate(double x)
Definition: Constants.cc:3
RateBuffer::m_lsAlgoRate
std::map< std::pair< int, int >, double > m_lsAlgoRate
Definition: L1TBPTX.h:65