ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/L1RpcTriggerAnalysis/interface/Utilities.h
Revision: 1.1
Committed: Mon Nov 28 18:31:04 2011 UTC (13 years, 5 months ago) by konec
Content type: text/plain
Branch: MAIN
CVS Tags: Artur_11_07_2013_B, Artur_11_07_2013_A, Artur_11_07_2013, Artur_28_06_2013, Mikolaj_cmssw533, Mikolaj_cmssw52x, HEAD
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 konec 1.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