1 |
#ifndef L1RpcTriggerAnalysis_Utilities_H
|
2 |
#define L1RpcTriggerAnalysis_Utilities_H
|
3 |
|
4 |
// variable-size PT bins corresponding to L1 trigger scale.
|
5 |
// Lower bound of bin ipt corresponds to L1Pt(ipt),
|
6 |
// with exception of ipt=0 and 1 (which should be NAN and 0. instead of 0. and 0.1 respectively)
|
7 |
class L1PtScale {
|
8 |
public:
|
9 |
static unsigned int ptCode(float ptValue);
|
10 |
static float ptValue(unsigned int ptCode);
|
11 |
static const unsigned int nPtBins = 32;
|
12 |
static double ptBins[nPtBins + 1];
|
13 |
};
|
14 |
|
15 |
// variable-size ETA bins corresponding to PAC trigger granularity
|
16 |
class L1RpcEtaScale {
|
17 |
public:
|
18 |
static int etaCode(float etaValue); // tower for given eta, +-17 for over/undeflows
|
19 |
static float etaValue(int etaCode); // central eta value of a tower, +-2.4 for over/underrflows
|
20 |
static const unsigned int nEtaBins=33;
|
21 |
static double etaBins[nEtaBins+1];
|
22 |
};
|
23 |
|
24 |
|
25 |
#endif
|