#include <L1MuGMTLFMergeRankCombineLUT.h>
Public Types | |
enum | { DT, BRPC, CSC, FRPC } |
Public Member Functions | |
L1MuGMTLFMergeRankCombineLUT () | |
constuctor using function-lookup | |
virtual unsigned | LookupFunctionPacked (int idx, unsigned address) const |
access to lookup function with packed input and output | |
unsigned | SpecificLookup (int idx, unsigned rank_etaq, unsigned rank_ptq, unsigned rank_etaphi) const |
specific lookup function for entire output field | |
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 | |
Private Member Functions | |
void | InitParameters () |
Initialize scales, configuration parameters, alignment constants, ... | |
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. |
LFMergeRankCombine look-up table
this class was automatically generated by L1MuGMTLUT::MakeSubClass()
Definition at line 42 of file L1MuGMTLFMergeRankCombineLUT.h.
anonymous enum |
L1MuGMTLFMergeRankCombineLUT::L1MuGMTLFMergeRankCombineLUT | ( | ) | [inline] |
constuctor using function-lookup
Definition at line 48 of file L1MuGMTLFMergeRankCombineLUT.h.
References InitParameters().
: L1MuGMTLUT("LFMergeRankCombine", "DT BRPC CSC FRPC", "rank_etaq(7) rank_ptq(2) rank_etaphi(1)", "merge_rank(8)", 9, false) { InitParameters(); } ;
virtual L1MuGMTLFMergeRankCombineLUT::~L1MuGMTLFMergeRankCombineLUT | ( | ) | [inline, virtual] |
void L1MuGMTLFMergeRankCombineLUT::InitParameters | ( | ) | [private] |
Initialize scales, configuration parameters, alignment constants, ...
Definition at line 34 of file L1MuGMTLFMergeRankCombineLUT.cc.
Referenced by L1MuGMTLFMergeRankCombineLUT().
{ }
virtual unsigned L1MuGMTLFMergeRankCombineLUT::LookupFunctionPacked | ( | int | idx, |
unsigned | address | ||
) | const [inline, virtual] |
access to lookup function with packed input and output
Reimplemented from L1MuGMTLUT.
Definition at line 80 of file L1MuGMTLFMergeRankCombineLUT.h.
References L1MuGMTLUT::m_Inputs, TheLookupFunction(), and L1MuGMTLUT::u2vec().
{ std::vector<unsigned> addr = u2vec(address, m_Inputs); return TheLookupFunction(idx ,addr[0] ,addr[1] ,addr[2]); };
unsigned L1MuGMTLFMergeRankCombineLUT::SpecificLookup | ( | int | idx, |
unsigned | rank_etaq, | ||
unsigned | rank_ptq, | ||
unsigned | rank_etaphi | ||
) | const [inline] |
specific lookup function for entire output field
Definition at line 68 of file L1MuGMTLFMergeRankCombineLUT.h.
References L1MuGMTLUT::LookupPacked().
{ std::vector<unsigned> addr(3); addr[0] = rank_etaq; addr[1] = rank_ptq; addr[2] = rank_etaphi; return LookupPacked(idx, addr); };
unsigned L1MuGMTLFMergeRankCombineLUT::SpecificLookup_merge_rank | ( | int | idx, |
unsigned | rank_etaq, | ||
unsigned | rank_ptq, | ||
unsigned | rank_etaphi | ||
) | const [inline] |
specific lookup function for merge_rank
Definition at line 59 of file L1MuGMTLFMergeRankCombineLUT.h.
References L1MuGMTLUT::Lookup().
Referenced by L1MuGMTMerger::merge_rank().
unsigned L1MuGMTLFMergeRankCombineLUT::TheLookupFunction | ( | int | idx, |
unsigned | rank_etaq, | ||
unsigned | rank_ptq, | ||
unsigned | rank_etaphi | ||
) | const [private] |
The lookup function - here the functionality of the LUT is implemented.
Definition at line 41 of file L1MuGMTLFMergeRankCombineLUT.cc.
Referenced by LookupFunctionPacked().
{ // idx is DT, BRPC, CSC, FRPC // INPUTS: rank_etaq(7) rank_ptq(2) rank_etaphi(1) // OUTPUTS: merge_rank(8) return rank_etaq + 128*rank_etaphi; }