#include <MicroGMTRankPtQualLUT.h>
Public Member Functions | |
int | hashInput (int pt, int qual) const |
int | lookup (int pt, int qual) const |
virtual int | lookupPacked (int in) const |
MicroGMTRankPtQualLUT () | |
MicroGMTRankPtQualLUT (const std::string &, const unsigned, const unsigned) | |
MicroGMTRankPtQualLUT (l1t::LUT *) | |
void | unHashInput (int input, int &pt, int &qual) const |
virtual | ~MicroGMTRankPtQualLUT () |
Public Member Functions inherited from l1t::MicroGMTLUT | |
int | checkedInput (unsigned in, unsigned maxWidth) const |
void | initialize () |
int | load (const std::string &inFileName) |
MicroGMTLUT () | |
MicroGMTLUT (l1t::LUT *lut) | |
void | save (std::ofstream &output) |
virtual | ~MicroGMTLUT () |
Public Member Functions inherited from l1t::LUT | |
int | data (unsigned int address) const |
bool | empty () const |
LUT () | |
LUT (std::istream &stream) | |
unsigned int | maxSize () const |
unsigned int | nrBitsAddress () const |
unsigned int | nrBitsData () const |
int | read (std::istream &stream) |
void | write (std::ostream &stream) const |
~LUT () | |
Private Attributes | |
unsigned | m_ptFactor |
int | m_ptInWidth |
int | m_ptMask |
unsigned | m_qualFactor |
int | m_qualInWidth |
int | m_qualMask |
Additional Inherited Members | |
Public Types inherited from l1t::LUT | |
enum | ReadCodes { SUCCESS =0, NO_ENTRIES =1, DUP_ENTRIES =2, MISS_ENTRIES =3, MAX_ADDRESS_OUTOFRANGE =4, NO_HEADER =5 } |
Protected Attributes inherited from l1t::MicroGMTLUT | |
bool | m_initialized |
std::vector< MicroGMTConfiguration::input_t > | m_inputs |
unsigned | m_outWidth |
unsigned | m_totalInWidth |
Definition at line 12 of file MicroGMTRankPtQualLUT.h.
|
inline |
Definition at line 14 of file MicroGMTRankPtQualLUT.h.
References AlCaHLTBitMon_QueryRunRegistry::string.
|
explicit |
Definition at line 3 of file MicroGMTRankPtQualLUT.cc.
References l1t::MicroGMTLUT::initialize(), l1t::MicroGMTLUT::load(), l1t::MicroGMTLUT::m_inputs, l1t::MicroGMTLUT::m_outWidth, m_ptInWidth, m_ptMask, m_qualInWidth, m_qualMask, l1t::MicroGMTLUT::m_totalInWidth, l1t::MicroGMTConfiguration::PT, l1t::MicroGMTConfiguration::QUALITY, and AlCaHLTBitMon_QueryRunRegistry::string.
|
explicit |
Definition at line 21 of file MicroGMTRankPtQualLUT.cc.
References l1t::MicroGMTLUT::m_initialized, l1t::MicroGMTLUT::m_inputs, l1t::MicroGMTLUT::m_outWidth, m_ptInWidth, m_ptMask, m_qualInWidth, m_qualMask, l1t::MicroGMTLUT::m_totalInWidth, l1t::MicroGMTConfiguration::PT, and l1t::MicroGMTConfiguration::QUALITY.
|
inlinevirtual |
Definition at line 17 of file MicroGMTRankPtQualLUT.h.
References hashInput(), recoMuon::in, input, lookup(), lookupPacked(), EnergyCorrector::pt, and unHashInput().
int l1t::MicroGMTRankPtQualLUT::hashInput | ( | int | pt, |
int | qual | ||
) | const |
Definition at line 63 of file MicroGMTRankPtQualLUT.cc.
References m_ptInWidth, EnergyCorrector::pt, and mps_fire::result.
Referenced by lookup(), and ~MicroGMTRankPtQualLUT().
int l1t::MicroGMTRankPtQualLUT::lookup | ( | int | pt, |
int | qual | ||
) | const |
Definition at line 36 of file MicroGMTRankPtQualLUT.cc.
References l1t::MicroGMTLUT::checkedInput(), l1t::LUT::data(), hashInput(), l1t::MicroGMTLUT::m_initialized, m_ptFactor, m_ptInWidth, m_qualFactor, m_qualInWidth, and mps_fire::result.
Referenced by lookupPacked(), and ~MicroGMTRankPtQualLUT().
|
virtual |
Reimplemented from l1t::MicroGMTLUT.
Definition at line 50 of file MicroGMTRankPtQualLUT.cc.
References l1t::LUT::data(), lookup(), l1t::MicroGMTLUT::m_initialized, EnergyCorrector::pt, and unHashInput().
Referenced by ~MicroGMTRankPtQualLUT().
void l1t::MicroGMTRankPtQualLUT::unHashInput | ( | int | input, |
int & | pt, | ||
int & | qual | ||
) | const |
Definition at line 73 of file MicroGMTRankPtQualLUT.cc.
References m_ptInWidth, m_ptMask, and m_qualMask.
Referenced by lookupPacked(), and ~MicroGMTRankPtQualLUT().
|
private |
Definition at line 31 of file MicroGMTRankPtQualLUT.h.
Referenced by lookup().
|
private |
Definition at line 27 of file MicroGMTRankPtQualLUT.h.
Referenced by hashInput(), lookup(), MicroGMTRankPtQualLUT(), and unHashInput().
|
private |
Definition at line 25 of file MicroGMTRankPtQualLUT.h.
Referenced by MicroGMTRankPtQualLUT(), and unHashInput().
|
private |
Definition at line 32 of file MicroGMTRankPtQualLUT.h.
Referenced by lookup().
|
private |
Definition at line 28 of file MicroGMTRankPtQualLUT.h.
Referenced by lookup(), and MicroGMTRankPtQualLUT().
|
private |
Definition at line 26 of file MicroGMTRankPtQualLUT.h.
Referenced by MicroGMTRankPtQualLUT(), and unHashInput().