Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 //-------------------------------------------------
0002 //
0003 //   Class: L1MuGMTLFPtMixLUT
0004 //
0005 //
0006 //
0007 //   Author :
0008 //   H. Sakulin            HEPHY Vienna
0009 //
0010 //   Migrated to CMSSW:
0011 //   I. Mikulec
0012 //
0013 //--------------------------------------------------
0014 
0015 //-----------------------
0016 // This Class's Header --
0017 //-----------------------
0018 #include "L1Trigger/GlobalMuonTrigger/src/L1MuGMTLFPtMixLUT.h"
0019 
0020 //---------------
0021 // C++ Headers --
0022 //---------------
0023 
0024 //-------------------------------
0025 // Collaborating Class Headers --
0026 //-------------------------------
0027 
0028 //-------------------
0029 // InitParameters  --
0030 //-------------------
0031 
0032 void L1MuGMTLFPtMixLUT::InitParameters() {}
0033 
0034 //------------------------
0035 // The Lookup Function  --
0036 //------------------------
0037 
0038 unsigned L1MuGMTLFPtMixLUT::TheLookupFunction(int idx, unsigned pt_dtcsc, unsigned pt_rpc) const {
0039   // idx is DTRPC, CSCRPC
0040   // INPUTS:  pt_dtcsc(5) pt_rpc(5)
0041   // OUTPUTS: pt_mixed(5)
0042 
0043   // choosing maximum pt
0044 
0045   return pt_dtcsc < pt_rpc ? pt_rpc : pt_dtcsc;
0046 }