Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 //-------------------------------------------------
0002 //
0003 //   Class: L1MuGMTLFMergeRankCombineLUT
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/L1MuGMTLFMergeRankCombineLUT.h"
0019 
0020 //---------------
0021 // C++ Headers --
0022 //---------------
0023 
0024 //-------------------------------
0025 // Collaborating Class Headers --
0026 //-------------------------------
0027 
0028 //-------------------
0029 // InitParameters  --
0030 //-------------------
0031 
0032 void L1MuGMTLFMergeRankCombineLUT::InitParameters() {}
0033 
0034 //------------------------
0035 // The Lookup Function  --
0036 //------------------------
0037 
0038 unsigned L1MuGMTLFMergeRankCombineLUT::TheLookupFunction(int idx,
0039                                                          unsigned rank_etaq,
0040                                                          unsigned rank_ptq,
0041                                                          unsigned rank_etaphi) const {
0042   // idx is DT, BRPC, CSC, FRPC
0043   // INPUTS:  rank_etaq(7) rank_ptq(2) rank_etaphi(1)
0044   // OUTPUTS: merge_rank(8)
0045 
0046   return rank_etaq + 128 * rank_etaphi;
0047 }