CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
L1MuGMTPhiLUT.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
3 // Class: L1MuGMTPhiLUT
12 //
13 //
14 // Author :
15 // H. Sakulin CERN EP
16 //
17 // Migrated to CMSSW:
18 // I. Mikulec
19 //
20 //--------------------------------------------------
21 #ifndef L1TriggerGlobalMuonTrigger_L1MuGMTPhiLUT_h
22 #define L1TriggerGlobalMuonTrigger_L1MuGMTPhiLUT_h
23 
24 //---------------
25 // C++ Headers --
26 //---------------
27 
28 #include <vector>
29 #include <cmath>
30 
31 //----------------------
32 // Base Class Headers --
33 //----------------------
34 
35 //------------------------------------
36 // Collaborating Class Declarations --
37 //------------------------------------
38 
39 // ---------------------
40 // -- Class Interface --
41 // ---------------------
42 
44 public:
46  L1MuGMTPhiLUT();
47 
49  virtual ~L1MuGMTPhiLUT();
50 
51  //FIXME: two versions
52 
54  static float dphi(int isys, int isISO, int icharge, int ieta, float pt);
55 
57  static float dphi(int isys, int isISO, int icharge, float eta, float pt) {
58  return dphi(isys, isISO, icharge, etabin((float)fabs(eta), isys), pt);
59  };
60 
61 private:
62  static int etabin(float eta, int isys);
63 
64 private:
65  static const int NSYS = 4;
66  static const int DT = 0;
67  static const int CSC = 1;
68  static const int bRPC = 2;
69  static const int fRPC = 3;
70 
71  // 3-bit eta, in hardware 4th bit is reserved for
72  // positive / negative endcap asymmetries
73  static const unsigned int NETA = 8;
74 
75  // 2 reference planes 0: calo, 1: vertex
76  static const unsigned int NRP = 2;
77 
78  static float etabins[NSYS][NETA + 1];
79  static float fitparams_phi[NRP][NSYS][NETA][2][3];
80 };
81 
82 #endif
static const unsigned int NRP
Definition: L1MuGMTPhiLUT.h:76
static const int bRPC
Definition: L1MuGMTPhiLUT.h:68
static const int CSC
Definition: L1MuGMTPhiLUT.h:67
static const int NSYS
Definition: L1MuGMTPhiLUT.h:65
static const unsigned int NETA
Definition: L1MuGMTPhiLUT.h:73
static const int fRPC
Definition: L1MuGMTPhiLUT.h:69
static int etabin(float eta, int isys)
virtual ~L1MuGMTPhiLUT()
destructor
static const int DT
Definition: L1MuGMTPhiLUT.h:66
L1MuGMTPhiLUT()
constructor
static float dphi(int isys, int isISO, int icharge, float eta, float pt)
look up delta-phi
Definition: L1MuGMTPhiLUT.h:57
static float etabins[NSYS][NETA+1]
Definition: L1MuGMTPhiLUT.h:78
static float dphi(int isys, int isISO, int icharge, int ieta, float pt)
look up delta-phi with integer eta
static float fitparams_phi[NRP][NSYS][NETA][2][3]
Definition: L1MuGMTPhiLUT.h:79