File indexing completed on 2024-09-07 04:36:48
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018 #ifndef L1TriggerGlobalMuonTrigger_L1MuGMTLFPhiProLUT_h
0019 #define L1TriggerGlobalMuonTrigger_L1MuGMTLFPhiProLUT_h
0020
0021
0022
0023
0024
0025
0026
0027
0028 #include "L1Trigger/GlobalMuonTrigger/src/L1MuGMTLUT.h"
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038 class L1MuGMTLFPhiProLUT : public L1MuGMTLUT {
0039 public:
0040 enum { DT, BRPC, CSC, FRPC };
0041
0042
0043 L1MuGMTLFPhiProLUT() : L1MuGMTLUT("LFPhiPro", "DT BRPC CSC FRPC", "eta(4) pt(5) charge(1)", "dphi(9)", 10, false) {
0044 InitParameters();
0045 };
0046
0047
0048 ~L1MuGMTLFPhiProLUT() override {}
0049
0050
0051 unsigned SpecificLookup_dphi(int idx, unsigned eta, unsigned pt, unsigned charge) const {
0052 std::vector<unsigned> addr(3);
0053 addr[0] = eta;
0054 addr[1] = pt;
0055 addr[2] = charge;
0056 return Lookup(idx, addr)[0];
0057 };
0058
0059
0060 unsigned SpecificLookup(int idx, unsigned eta, unsigned pt, unsigned charge) const {
0061 std::vector<unsigned> addr(3);
0062 addr[0] = eta;
0063 addr[1] = pt;
0064 addr[2] = charge;
0065 return LookupPacked(idx, addr);
0066 };
0067
0068
0069
0070 unsigned LookupFunctionPacked(int idx, unsigned address) const override {
0071 std::vector<unsigned> addr = u2vec(address, m_Inputs);
0072 return TheLookupFunction(idx, addr[0], addr[1], addr[2]);
0073 };
0074
0075 private:
0076
0077 void InitParameters();
0078
0079
0080 unsigned TheLookupFunction(int idx, unsigned eta, unsigned pt, unsigned charge) const;
0081
0082
0083 };
0084 #endif