20 #ifndef L1TriggerGlobalMuonTrigger_L1MuGMTLFMergeRankCombineLUT_h
21 #define L1TriggerGlobalMuonTrigger_L1MuGMTLFMergeRankCombineLUT_h
50 "rank_etaq(7) rank_ptq(2) rank_etaphi(1)",
51 "merge_rank(8)", 9,
false) {
60 std::vector<unsigned> addr(3);
63 addr[2] = rank_etaphi;
64 return Lookup(idx, addr) [0];
68 unsigned SpecificLookup (
int idx,
unsigned rank_etaq,
unsigned rank_ptq,
unsigned rank_etaphi)
const {
69 std::vector<unsigned> addr(3);
72 addr[2] = rank_etaphi;
91 unsigned TheLookupFunction (
int idx,
unsigned rank_etaq,
unsigned rank_ptq,
unsigned rank_etaphi)
const;
std::vector< unsigned > Lookup(int idx, const std::vector< unsigned > &address) const
additional lookup function (std::vector -> vector)
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.
unsigned SpecificLookup_merge_rank(int idx, unsigned rank_etaq, unsigned rank_ptq, unsigned rank_etaphi) const
specific lookup function for merge_rank
virtual ~L1MuGMTLFMergeRankCombineLUT()
destructor
std::vector< port > m_Inputs
L1MuGMTLFMergeRankCombineLUT()
constuctor using function-lookup
tuple idx
DEBUGGING if hasattr(process,"trackMonIterativeTracking2012"): print "trackMonIterativeTracking2012 D...
unsigned SpecificLookup(int idx, unsigned rank_etaq, unsigned rank_ptq, unsigned rank_etaphi) const
specific lookup function for entire output field
std::vector< unsigned > u2vec(unsigned value, const std::vector< port > &widths) const
generate composite address or value from compact unsigned
virtual unsigned LookupFunctionPacked(int idx, unsigned address) const
access to lookup function with packed input and output
unsigned LookupPacked(int idx, unsigned) const
void InitParameters()
Initialize scales, configuration parameters, alignment constants, ...