CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_9_patch3/src/L1Trigger/GlobalMuonTrigger/src/L1MuGMTMIAUEtaConvLUT.h

Go to the documentation of this file.
00001 //-------------------------------------------------
00002 //
00010 //   $Date: 2007/04/02 15:45:39 $
00011 //   $Revision: 1.3 $
00012 //
00013 //   Author :
00014 //   H. Sakulin            HEPHY Vienna
00015 //
00016 //   Migrated to CMSSW:
00017 //   I. Mikulec
00018 //
00019 //--------------------------------------------------
00020 #ifndef L1TriggerGlobalMuonTrigger_L1MuGMTMIAUEtaConvLUT_h
00021 #define L1TriggerGlobalMuonTrigger_L1MuGMTMIAUEtaConvLUT_h
00022 
00023 //---------------
00024 // C++ Headers --
00025 //---------------
00026 
00027 
00028 //----------------------
00029 // Base Class Headers --
00030 //----------------------
00031 #include "L1Trigger/GlobalMuonTrigger/src/L1MuGMTLUT.h"
00032 
00033 //------------------------------------
00034 // Collaborating Class Declarations --
00035 //------------------------------------
00036 
00037 //              ---------------------
00038 //              -- Class Interface --
00039 //              ---------------------
00040 
00041 
00042 class L1MuGMTMIAUEtaConvLUT : public L1MuGMTLUT {
00043   
00044  public:
00045   enum {MIP_DT, MIP_BRPC, ISO_DT, ISO_BRPC, MIP_CSC, MIP_FRPC, ISO_CSC, ISO_FRPC};
00046 
00048   L1MuGMTMIAUEtaConvLUT() : L1MuGMTLUT("MIAUEtaConv", 
00049                                        "MIP_DT MIP_BRPC ISO_DT ISO_BRPC MIP_CSC MIP_FRPC ISO_CSC ISO_FRPC",
00050                                        "eta_in(6)",
00051                                        "eta_out(4)", 6, true) {
00052     InitParameters();
00053   } ;
00054 
00056   virtual ~L1MuGMTMIAUEtaConvLUT() {};
00057 
00059   unsigned SpecificLookup_eta_out (int idx, unsigned eta_in) const {
00060     std::vector<unsigned> addr(1);
00061     addr[0] = eta_in;
00062     return Lookup(idx, addr) [0];
00063   };
00064 
00066   unsigned SpecificLookup (int idx, unsigned eta_in) const {
00067     std::vector<unsigned> addr(1);
00068     addr[0] = eta_in;
00069     return LookupPacked(idx, addr);
00070   };
00071 
00072 
00073 
00075 
00076   virtual unsigned LookupFunctionPacked (int idx, unsigned address) const {
00077     std::vector<unsigned> addr = u2vec(address, m_Inputs);
00078     return TheLookupFunction(idx ,addr[0]);
00079 
00080   };
00081 
00082  private:
00084   void InitParameters();
00085 
00087   unsigned TheLookupFunction (int idx, unsigned eta_in) const;
00088 
00090 };
00091 #endif
00092 
00093 
00094 
00095 
00096 
00097 
00098 
00099 
00100 
00101 
00102 
00103 
00104 
00105 
00106 
00107 
00108 
00109 
00110