18 #ifndef L1TriggerGlobalMuonTrigger_L1MuGMTLFSortRankCombineLUT_h 19 #define L1TriggerGlobalMuonTrigger_L1MuGMTLFSortRankCombineLUT_h 48 "rank_etaq(2) rank_ptq(7) rank_etaphi(2)",
49 "sort_rank(8)", 10,
false) {
58 std::vector<unsigned> addr(3);
61 addr[2] = rank_etaphi;
62 return Lookup(idx, addr) [0];
66 unsigned SpecificLookup (
int idx,
unsigned rank_etaq,
unsigned rank_ptq,
unsigned rank_etaphi)
const {
67 std::vector<unsigned> addr(3);
70 addr[2] = rank_etaphi;
89 unsigned TheLookupFunction (
int idx,
unsigned rank_etaq,
unsigned rank_ptq,
unsigned rank_etaphi)
const;
~L1MuGMTLFSortRankCombineLUT() override
destructor
std::vector< unsigned > Lookup(int idx, const std::vector< unsigned > &address) const
additional lookup function (std::vector -> vector)
unsigned SpecificLookup(int idx, unsigned rank_etaq, unsigned rank_ptq, unsigned rank_etaphi) const
specific lookup function for entire output field
std::vector< port > m_Inputs
unsigned TheLookupFunction(int idx, unsigned rank_etaq, unsigned rank_ptq, unsigned rank_etaphi) const
The lookup function - here the functionality of the LUT is implemented.
L1MuGMTLFSortRankCombineLUT()
constuctor using function-lookup
unsigned LookupFunctionPacked(int idx, unsigned address) const override
access to lookup function with packed input and output
unsigned SpecificLookup_sort_rank(int idx, unsigned rank_etaq, unsigned rank_ptq, unsigned rank_etaphi) const
specific lookup function for sort_rank
std::vector< unsigned > u2vec(unsigned value, const std::vector< port > &widths) const
generate composite address or value from compact unsigned
unsigned LookupPacked(int idx, unsigned) const
void InitParameters()
Initialize scales, configuration parameters, alignment constants, ...