CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 //------------------------------------
37 // Collaborating Class Declarations --
38 //------------------------------------
39 
40 
41 // ---------------------
42 // -- Class Interface --
43 // ---------------------
44 
45 
47 
48  public:
49 
51  L1MuGMTPhiLUT();
52 
54  virtual ~L1MuGMTPhiLUT();
55 
56  //FIXME: two versions
57 
59  static float dphi(int isys, int isISO, int icharge, int ieta, float pt) ;
60 
62  static float dphi(int isys, int isISO, int icharge, float eta, float pt){
63  return dphi(isys, isISO, icharge, etabin( (float)fabs(eta), isys), pt);
64  };
65 
66  private:
67  static int etabin (float eta, int isys);
68 
69  private:
70  static const int NSYS=4;
71  static const int DT=0;
72  static const int CSC=1;
73  static const int bRPC=2;
74  static const int fRPC=3;
75 
76  // 3-bit eta, in hardware 4th bit is reserved for
77  // positive / negative endcap asymmetries
78  static const unsigned int NETA=8;
79 
80  // 2 reference planes 0: calo, 1: vertex
81  static const unsigned int NRP=2;
82 
83  static float etabins[NSYS][NETA+1];
84  static float fitparams_phi[NRP][NSYS][NETA][2][3];
85 };
86 
87 #endif
static const unsigned int NRP
Definition: L1MuGMTPhiLUT.h:81
static const int bRPC
Definition: L1MuGMTPhiLUT.h:73
static const int CSC
Definition: L1MuGMTPhiLUT.h:72
static const int NSYS
Definition: L1MuGMTPhiLUT.h:70
T eta() const
static const unsigned int NETA
Definition: L1MuGMTPhiLUT.h:78
static const int fRPC
Definition: L1MuGMTPhiLUT.h:74
static int etabin(float eta, int isys)
virtual ~L1MuGMTPhiLUT()
destructor
static const int DT
Definition: L1MuGMTPhiLUT.h:71
L1MuGMTPhiLUT()
constructor
static float dphi(int isys, int isISO, int icharge, float eta, float pt)
look up delta-phi
Definition: L1MuGMTPhiLUT.h:62
static float etabins[NSYS][NETA+1]
Definition: L1MuGMTPhiLUT.h:83
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:84