CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_2_9_HLT1_bphpatch4/src/L1Trigger/GlobalMuonTrigger/src/L1MuGMTLFDisableHotLUT.h

Go to the documentation of this file.
00001 //-------------------------------------------------
00002 //
00010 //   $Date: 2007/04/02 15:45:38 $
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_L1MuGMTLFDisableHotLUT_h
00021 #define L1TriggerGlobalMuonTrigger_L1MuGMTLFDisableHotLUT_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 //              ---------------------
00039 //              -- Class Interface --
00040 //              ---------------------
00041 
00042 
00043 class L1MuGMTLFDisableHotLUT : public L1MuGMTLUT {
00044   
00045  public:
00046   enum {DT, CSC};
00047 
00049   L1MuGMTLFDisableHotLUT() : L1MuGMTLUT("LFDisableHot", 
00050                                        "DT CSC",
00051                                        "eta(6) phi(8)",
00052                                        "disable_hot(1)", 10, false) {
00053     InitParameters();
00054   } ;
00055 
00057   virtual ~L1MuGMTLFDisableHotLUT() {};
00058 
00060   unsigned SpecificLookup_disable_hot (int idx, unsigned eta, unsigned phi) const {
00061     std::vector<unsigned> addr(2);
00062     addr[0] = eta;
00063     addr[1] = phi;
00064     return Lookup(idx, addr) [0];
00065   };
00066 
00068   unsigned SpecificLookup (int idx, unsigned eta, unsigned phi) const {
00069     std::vector<unsigned> addr(2);
00070     addr[0] = eta;
00071     addr[1] = phi;
00072     return LookupPacked(idx, addr);
00073   };
00074 
00075 
00076 
00078 
00079   virtual unsigned LookupFunctionPacked (int idx, unsigned address) const {
00080     std::vector<unsigned> addr = u2vec(address, m_Inputs);
00081     return TheLookupFunction(idx ,addr[0] ,addr[1]);
00082 
00083   };
00084 
00085  private:
00087   void InitParameters();
00088 
00090   unsigned TheLookupFunction (int idx, unsigned eta, unsigned phi) const;
00091 
00092 };
00093 #endif
00094 
00095 
00096 
00097 
00098 
00099 
00100 
00101 
00102 
00103 
00104 
00105 
00106 
00107 
00108 
00109 
00110 
00111 
00112