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 44 of file L1TBPTX.h.

Member Function Documentation

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

Definition at line 48 of file L1TBPTX.h.

References python.rootplot.utilities::ls(), m_lsAlgoRate, and m_lsTechRate.

48  {
49  if(isAlgo){m_lsAlgoRate[std::pair<int,int>(ls,bit)]=rate;}
50  else {m_lsTechRate[std::pair<int,int>(ls,bit)]=rate;}
51  }
std::map< std::pair< int, int >, double > m_lsAlgoRate
Definition: L1TBPTX.h:65
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 56 of file L1TBPTX.h.

References python.rootplot.utilities::ls(), and m_lsAlgoRate.

56  {
57  return m_lsAlgoRate[std::pair<int,int>(ls,bit)];
58  }
std::map< std::pair< int, int >, double > m_lsAlgoRate
Definition: L1TBPTX.h:65
double RateBuffer::getLSRate ( int  ls,
bool  isAlgo,
int  bit,
double  rate 
)
inline

Definition at line 52 of file L1TBPTX.h.

References python.rootplot.utilities::ls(), m_lsAlgoRate, and m_lsTechRate.

52  {
53  if(isAlgo){return m_lsAlgoRate[std::pair<int,int>(ls,bit)];}
54  else {return m_lsTechRate[std::pair<int,int>(ls,bit)];}
55  }
std::map< std::pair< int, int >, double > m_lsAlgoRate
Definition: L1TBPTX.h:65
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 59 of file L1TBPTX.h.

References python.rootplot.utilities::ls(), and m_lsTechRate.

59  {
60  return m_lsTechRate[std::pair<int,int>(ls,bit)];
61  }
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().