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 // $Date: 2007/03/23 18:51:35 $
14 // $Revision: 1.2 $
15 //
16 // Author :
17 // H. Sakulin CERN EP
18 //
19 // Migrated to CMSSW:
20 // I. Mikulec
21 //
22 //--------------------------------------------------
23 #ifndef L1TriggerGlobalMuonTrigger_L1MuGMTPhiLUT_h
24 #define L1TriggerGlobalMuonTrigger_L1MuGMTPhiLUT_h
25 
26 //---------------
27 // C++ Headers --
28 //---------------
29 
30 #include <vector>
31 #include <cmath>
32 
33 //----------------------
34 // Base Class Headers --
35 //----------------------
36 
37 
38 //------------------------------------
39 // Collaborating Class Declarations --
40 //------------------------------------
41 
42 
43 // ---------------------
44 // -- Class Interface --
45 // ---------------------
46 
47 
49 
50  public:
51 
53  L1MuGMTPhiLUT();
54 
56  virtual ~L1MuGMTPhiLUT();
57 
58  //FIXME: two versions
59 
61  static float dphi(int isys, int isISO, int icharge, int ieta, float pt) ;
62 
64  static float dphi(int isys, int isISO, int icharge, float eta, float pt){
65  return dphi(isys, isISO, icharge, etabin( (float)fabs(eta), isys), pt);
66  };
67 
68  private:
69  static int etabin (float eta, int isys);
70 
71  private:
72  static const int NSYS=4;
73  static const int DT=0;
74  static const int CSC=1;
75  static const int bRPC=2;
76  static const int fRPC=3;
77 
78  // 3-bit eta, in hardware 4th bit is reserved for
79  // positive / negative endcap asymmetries
80  static const unsigned int NETA=8;
81 
82  // 2 reference planes 0: calo, 1: vertex
83  static const unsigned int NRP=2;
84 
85  static float etabins[NSYS][NETA+1];
86  static float fitparams_phi[NRP][NSYS][NETA][2][3];
87 };
88 
89 #endif
static const unsigned int NRP
Definition: L1MuGMTPhiLUT.h:83
static const int bRPC
Definition: L1MuGMTPhiLUT.h:75
static const int CSC
Definition: L1MuGMTPhiLUT.h:74
static const int NSYS
Definition: L1MuGMTPhiLUT.h:72
T eta() const
static const unsigned int NETA
Definition: L1MuGMTPhiLUT.h:80
static const int fRPC
Definition: L1MuGMTPhiLUT.h:76
static int etabin(float eta, int isys)
virtual ~L1MuGMTPhiLUT()
destructor
static const int DT
Definition: L1MuGMTPhiLUT.h:73
L1MuGMTPhiLUT()
constructor
static float dphi(int isys, int isISO, int icharge, float eta, float pt)
look up delta-phi
Definition: L1MuGMTPhiLUT.h:64
static float etabins[NSYS][NETA+1]
Definition: L1MuGMTPhiLUT.h:85
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:86