CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Stage1TauIsolationLUT.h
Go to the documentation of this file.
1 // Stage1TauIsolationLUT.h
2 // Author: Leonard Apanasevich
3 //
4 
5 #ifndef STAGE1TAUISOLATIONLUT_H
6 #define STAGE1TAUISOLATIONLUT_H
7 
8 #define NBITS_JET_ET_LUT 8
9 #define NBITS_TAU_ET_LUT 8
10 #define NBITS_DATA 1 // number of bits in the payload
11 #define LUT_VERSION 1 // bump up the version number is any of the above is changed or if the relative tau iso algo is changed
12 
13 #include <iostream>
14 #include <math.h>
16 
17 namespace l1t {
18 
20  public:
21  static const unsigned int nbitsJet; // number of bits used to store JET ET in LUT
22  static const unsigned int nbitsTau; // number of bits used to store TAU ET in LUT
23  static const unsigned int nbits_data; // number of bits in the payload
24  static const unsigned int lut_version;
25 
27  virtual ~Stage1TauIsolationLUT();
28 
29  unsigned lutAddress(unsigned int, unsigned int) const;
30  int lutPayload(unsigned int) const;
31  private:
32 
34  //double tauMaxJetIsolationA;
35  //double tauMaxJetIsolationB;
36  //int tauMinPtJetIsolationB;
37 
38  };
39 
40 }
41 #endif
static const unsigned int nbits_data
Stage1TauIsolationLUT(CaloParamsHelper *params)
static const unsigned int nbitsTau
static const unsigned int nbitsJet
unsigned lutAddress(unsigned int, unsigned int) const
static const unsigned int lut_version
int lutPayload(unsigned int) const
CaloParamsHelper *const params_