test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 46 of file L1TBPTX.h.

Member Function Documentation

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

Definition at line 50 of file L1TBPTX.h.

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

50  {
51  if(isAlgo){m_lsAlgoRate[std::pair<int,int>(ls,bit)]=rate;}
52  else {m_lsTechRate[std::pair<int,int>(ls,bit)]=rate;}
53  }
std::map< std::pair< int, int >, double > m_lsAlgoRate
Definition: L1TBPTX.h:67
def ls
Definition: eostools.py:348
double rate(double x)
Definition: Constants.cc:3
std::map< std::pair< int, int >, double > m_lsTechRate
Definition: L1TBPTX.h:68
double RateBuffer::getLSAlgoRate ( int  ls,
int  bit,
double  rate 
)
inline

Definition at line 58 of file L1TBPTX.h.

References eostools::ls(), and m_lsAlgoRate.

58  {
59  return m_lsAlgoRate[std::pair<int,int>(ls,bit)];
60  }
std::map< std::pair< int, int >, double > m_lsAlgoRate
Definition: L1TBPTX.h:67
def ls
Definition: eostools.py:348
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){return m_lsAlgoRate[std::pair<int,int>(ls,bit)];}
56  else {return m_lsTechRate[std::pair<int,int>(ls,bit)];}
57  }
std::map< std::pair< int, int >, double > m_lsAlgoRate
Definition: L1TBPTX.h:67
def ls
Definition: eostools.py:348
std::map< std::pair< int, int >, double > m_lsTechRate
Definition: L1TBPTX.h:68
double RateBuffer::getLSTechRate ( int  ls,
int  bit,
double  rate 
)
inline

Definition at line 61 of file L1TBPTX.h.

References eostools::ls(), and m_lsTechRate.

61  {
62  return m_lsTechRate[std::pair<int,int>(ls,bit)];
63  }
def ls
Definition: eostools.py:348
std::map< std::pair< int, int >, double > m_lsTechRate
Definition: L1TBPTX.h:68

Member Data Documentation

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

Definition at line 67 of file L1TBPTX.h.

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

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

Definition at line 68 of file L1TBPTX.h.

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