Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:19:56

0001 //-------------------------------------------------
0002 //
0003 //   Class: L1MuGMTEtaLUT
0004 /**
0005  *   Description: Look-up table for GMT Eta projection unit
0006  *
0007  *                Caluclates float delta-eta from charge, eta and pT 
0008  *
0009  *                Simple static implementation with parametrization for
0010  *                CMS121 geometry
0011 */
0012 //
0013 //
0014 //   Author :
0015 //   H. Sakulin            CERN EP
0016 //
0017 //   Migrated to CMSSW:
0018 //   I. Mikulec
0019 //
0020 //--------------------------------------------------
0021 #ifndef L1TriggerGlobalMuonTrigger_L1MuGMTEtaLUT_h
0022 #define L1TriggerGlobalMuonTrigger_L1MuGMTEtaLUT_h
0023 
0024 //---------------
0025 // C++ Headers --
0026 //---------------
0027 
0028 #include <vector>
0029 
0030 //----------------------
0031 // Base Class Headers --
0032 //----------------------
0033 
0034 //------------------------------------
0035 // Collaborating Class Declarations --
0036 //------------------------------------
0037 
0038 //              ---------------------
0039 //              -- Class Interface --
0040 //              ---------------------
0041 
0042 class L1MuGMTEtaLUT {
0043 public:
0044   /// constructor
0045   L1MuGMTEtaLUT();
0046 
0047   /// destructor
0048   virtual ~L1MuGMTEtaLUT();
0049 
0050   /// look up delta-eta
0051   static float eta(int isys, int isISO, int icharge, float eta, float pt);
0052 
0053 private:
0054   static int etabin(float eta, int isys);
0055 
0056 private:
0057   static const int NSYS = 4;
0058   static const int DT = 0;
0059   static const int CSC = 1;
0060   static const int bRPC = 2;
0061   static const int fRPC = 3;
0062 
0063   // 3-bit eta, in hardware 4th bit is reserved for
0064   // positive / negative endcap asymmetries
0065   static const unsigned int NETA = 8;
0066 
0067   // 2 reference planes 0: calo, 1: vertex
0068   static const unsigned int NRP = 2;
0069 
0070   static float etabins[NSYS][NETA + 1];
0071   static float fitparams_eta[NRP][NSYS][NETA][3];
0072 };
0073 
0074 #endif