#include <L1Trigger/GlobalMuonTrigger/src/L1MuGMTLFSortRankEtaPhiLUT.h>
Public Types | |
enum | { DT, BRPC, CSC, FRPC } |
Public Member Functions | |
L1MuGMTLFSortRankEtaPhiLUT () | |
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 eta, unsigned phi) const |
specific lookup function for entire output field | |
unsigned | SpecificLookup_rank_etaphi (int idx, unsigned eta, unsigned phi) const |
specific lookup function for rank_etaphi | |
virtual | ~L1MuGMTLFSortRankEtaPhiLUT () |
destructor | |
Private Member Functions | |
void | InitParameters () |
Initialize scales, configuration parameters, alignment constants, ... | |
unsigned | TheLookupFunction (int idx, unsigned eta, unsigned phi) 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 L1MuGMTLFSortRankEtaPhiLUT.h.
anonymous enum |
L1MuGMTLFSortRankEtaPhiLUT::L1MuGMTLFSortRankEtaPhiLUT | ( | ) | [inline] |
constuctor using function-lookup
Definition at line 48 of file L1MuGMTLFSortRankEtaPhiLUT.h.
References InitParameters().
00048 : L1MuGMTLUT("LFSortRankEtaPhi", 00049 "DT BRPC CSC FRPC", 00050 "eta(6) phi(8)", 00051 "rank_etaphi(2)", 11, false) { 00052 InitParameters(); 00053 } ;
virtual L1MuGMTLFSortRankEtaPhiLUT::~L1MuGMTLFSortRankEtaPhiLUT | ( | ) | [inline, virtual] |
void L1MuGMTLFSortRankEtaPhiLUT::InitParameters | ( | ) | [private] |
Initialize scales, configuration parameters, alignment constants, ...
Definition at line 34 of file L1MuGMTLFSortRankEtaPhiLUT.cc.
Referenced by L1MuGMTLFSortRankEtaPhiLUT().
virtual unsigned L1MuGMTLFSortRankEtaPhiLUT::LookupFunctionPacked | ( | int | idx, | |
unsigned | address | |||
) | const [inline, virtual] |
access to lookup function with packed input and output
Reimplemented from L1MuGMTLUT.
Definition at line 78 of file L1MuGMTLFSortRankEtaPhiLUT.h.
References addr, L1MuGMTLUT::m_Inputs, TheLookupFunction(), and L1MuGMTLUT::u2vec().
00078 { 00079 std::vector<unsigned> addr = u2vec(address, m_Inputs); 00080 return TheLookupFunction(idx ,addr[0] ,addr[1]); 00081 00082 };
unsigned L1MuGMTLFSortRankEtaPhiLUT::SpecificLookup | ( | int | idx, | |
unsigned | eta, | |||
unsigned | phi | |||
) | const [inline] |
specific lookup function for entire output field
Definition at line 67 of file L1MuGMTLFSortRankEtaPhiLUT.h.
References addr, and L1MuGMTLUT::LookupPacked().
00067 { 00068 std::vector<unsigned> addr(2); 00069 addr[0] = eta; 00070 addr[1] = phi; 00071 return LookupPacked(idx, addr); 00072 };
unsigned L1MuGMTLFSortRankEtaPhiLUT::SpecificLookup_rank_etaphi | ( | int | idx, | |
unsigned | eta, | |||
unsigned | phi | |||
) | const [inline] |
specific lookup function for rank_etaphi
Definition at line 59 of file L1MuGMTLFSortRankEtaPhiLUT.h.
References addr, and L1MuGMTLUT::Lookup().
Referenced by L1MuGMTSortRankUnit::isDisabled(), and L1MuGMTSortRankUnit::sort_rank().
00059 { 00060 std::vector<unsigned> addr(2); 00061 addr[0] = eta; 00062 addr[1] = phi; 00063 return Lookup(idx, addr) [0]; 00064 };
unsigned L1MuGMTLFSortRankEtaPhiLUT::TheLookupFunction | ( | int | idx, | |
unsigned | eta, | |||
unsigned | phi | |||
) | const [private] |
The lookup function - here the functionality of the LUT is implemented.
Definition at line 61 of file L1MuGMTLFSortRankEtaPhiLUT.cc.
Referenced by LookupFunctionPacked().
00061 { 00062 // idx is DT, BRPC, CSC, FRPC 00063 // INPUTS: eta(6) phi(8) 00064 // OUTPUTS: rank_etaphi(2) 00065 00066 // by default return code 10 (binary) 00067 unsigned int rank_etaphi = 2; 00068 return rank_etaphi; 00069 }