![]() |
![]() |
#include <L1Trigger/GlobalMuonTrigger/src/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. |
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().
00048 : L1MuGMTLUT("LFMergeRankCombine", 00049 "DT BRPC CSC FRPC", 00050 "rank_etaq(7) rank_ptq(2) rank_etaphi(1)", 00051 "merge_rank(8)", 9, false) { 00052 InitParameters(); 00053 } ;
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 addr, L1MuGMTLUT::m_Inputs, TheLookupFunction(), and L1MuGMTLUT::u2vec().
00080 { 00081 std::vector<unsigned> addr = u2vec(address, m_Inputs); 00082 return TheLookupFunction(idx ,addr[0] ,addr[1] ,addr[2]); 00083 00084 };
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 addr, and L1MuGMTLUT::LookupPacked().
00068 { 00069 std::vector<unsigned> addr(3); 00070 addr[0] = rank_etaq; 00071 addr[1] = rank_ptq; 00072 addr[2] = rank_etaphi; 00073 return LookupPacked(idx, addr); 00074 };
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 addr, and L1MuGMTLUT::Lookup().
Referenced by L1MuGMTMerger::merge_rank().
00059 { 00060 std::vector<unsigned> addr(3); 00061 addr[0] = rank_etaq; 00062 addr[1] = rank_ptq; 00063 addr[2] = rank_etaphi; 00064 return Lookup(idx, addr) [0]; 00065 };
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().
00041 { 00042 // idx is DT, BRPC, CSC, FRPC 00043 // INPUTS: rank_etaq(7) rank_ptq(2) rank_etaphi(1) 00044 // OUTPUTS: merge_rank(8) 00045 00046 return rank_etaq + 128*rank_etaphi; 00047 }