#include <MicroGMTLUT.h>
Public Member Functions | |
int | checkedInput (unsigned in, unsigned maxWidth) const |
void | initialize () |
int | load (const std::string &inFileName) |
virtual int | lookupPacked (int input) const |
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 () | |
Protected Attributes | |
bool | m_initialized |
std::vector< MicroGMTConfiguration::input_t > | m_inputs |
unsigned | m_outWidth |
unsigned | m_totalInWidth |
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 } |
Definition at line 14 of file MicroGMTLUT.h.
|
inline |
l1t::MicroGMTLUT::MicroGMTLUT | ( | l1t::LUT * | lut | ) |
|
inlinevirtual |
Definition at line 18 of file MicroGMTLUT.h.
References checkedInput(), recoMuon::in, initialize(), input, load(), lookupPacked(), convertSQLitetoXML_cfg::output, save(), and AlCaHLTBitMon_QueryRunRegistry::string.
int l1t::MicroGMTLUT::checkedInput | ( | unsigned | in, |
unsigned | maxWidth | ||
) | const |
Definition at line 62 of file MicroGMTLUT.cc.
Referenced by l1t::MicroGMTRelativeIsolationCheckLUT::lookup(), l1t::MicroGMTAbsoluteIsolationCheckLUT::lookup(), l1t::MicroGMTExtrapolationLUT::lookup(), l1t::MicroGMTRankPtQualLUT::lookup(), l1t::MicroGMTMatchQualSimpleLUT::lookup(), l1t::MicroGMTMatchQualFineLUT::lookup(), and ~MicroGMTLUT().
void l1t::MicroGMTLUT::initialize | ( | void | ) |
Definition at line 47 of file MicroGMTLUT.cc.
References l1t::LUT::empty(), recoMuon::in, lookupPacked(), m_initialized, m_outWidth, m_totalInWidth, MillePedeFileConverter_cfg::out, and l1t::LUT::read().
Referenced by l1t::MicroGMTMatchQualFineLUT::MicroGMTMatchQualFineLUT(), l1t::MicroGMTMatchQualSimpleLUT::MicroGMTMatchQualSimpleLUT(), l1t::MicroGMTRankPtQualLUT::MicroGMTRankPtQualLUT(), and ~MicroGMTLUT().
int l1t::MicroGMTLUT::load | ( | const std::string & | inFileName | ) |
Definition at line 21 of file MicroGMTLUT.cc.
References Exception, m_initialized, and l1t::LUT::read().
Referenced by l1t::MicroGMTAbsoluteIsolationCheckLUT::MicroGMTAbsoluteIsolationCheckLUT(), l1t::MicroGMTCaloIndexSelectionLUT::MicroGMTCaloIndexSelectionLUT(), l1t::MicroGMTExtrapolationLUT::MicroGMTExtrapolationLUT(), l1t::MicroGMTMatchQualFineLUT::MicroGMTMatchQualFineLUT(), l1t::MicroGMTMatchQualSimpleLUT::MicroGMTMatchQualSimpleLUT(), l1t::MicroGMTRankPtQualLUT::MicroGMTRankPtQualLUT(), l1t::MicroGMTRelativeIsolationCheckLUT::MicroGMTRelativeIsolationCheckLUT(), and ~MicroGMTLUT().
|
virtual |
Reimplemented in l1t::MicroGMTMatchQualFineLUT, l1t::MicroGMTMatchQualSimpleLUT, and l1t::MicroGMTRankPtQualLUT.
Definition at line 37 of file MicroGMTLUT.cc.
References l1t::LUT::data(), Exception, and m_initialized.
Referenced by initialize(), l1t::MicroGMTRelativeIsolationCheckLUT::lookup(), l1t::MicroGMTCaloIndexSelectionLUT::lookup(), l1t::MicroGMTAbsoluteIsolationCheckLUT::lookup(), l1t::MicroGMTExtrapolationLUT::lookup(), ~MicroGMTLUT(), l1t::MicroGMTMatchQualFineLUT::~MicroGMTMatchQualFineLUT(), and l1t::MicroGMTMatchQualSimpleLUT::~MicroGMTMatchQualSimpleLUT().
void l1t::MicroGMTLUT::save | ( | std::ofstream & | output | ) |
Definition at line 15 of file MicroGMTLUT.cc.
References l1t::LUT::write().
Referenced by L1TMicroGMTLUTDumper::dumpLut(), and ~MicroGMTLUT().
|
protected |
Definition at line 37 of file MicroGMTLUT.h.
Referenced by initialize(), load(), l1t::MicroGMTExtrapolationLUT::lookup(), l1t::MicroGMTRankPtQualLUT::lookup(), l1t::MicroGMTMatchQualSimpleLUT::lookup(), l1t::MicroGMTMatchQualFineLUT::lookup(), l1t::MicroGMTRankPtQualLUT::lookupPacked(), lookupPacked(), l1t::MicroGMTMatchQualSimpleLUT::lookupPacked(), l1t::MicroGMTMatchQualFineLUT::lookupPacked(), l1t::MicroGMTAbsoluteIsolationCheckLUT::MicroGMTAbsoluteIsolationCheckLUT(), l1t::MicroGMTCaloIndexSelectionLUT::MicroGMTCaloIndexSelectionLUT(), l1t::MicroGMTExtrapolationLUT::MicroGMTExtrapolationLUT(), l1t::MicroGMTMatchQualFineLUT::MicroGMTMatchQualFineLUT(), l1t::MicroGMTMatchQualSimpleLUT::MicroGMTMatchQualSimpleLUT(), l1t::MicroGMTRankPtQualLUT::MicroGMTRankPtQualLUT(), and l1t::MicroGMTRelativeIsolationCheckLUT::MicroGMTRelativeIsolationCheckLUT().
|
protected |
Definition at line 36 of file MicroGMTLUT.h.
Referenced by l1t::MicroGMTAbsoluteIsolationCheckLUT::MicroGMTAbsoluteIsolationCheckLUT(), l1t::MicroGMTCaloIndexSelectionLUT::MicroGMTCaloIndexSelectionLUT(), l1t::MicroGMTExtrapolationLUT::MicroGMTExtrapolationLUT(), l1t::MicroGMTMatchQualFineLUT::MicroGMTMatchQualFineLUT(), l1t::MicroGMTMatchQualSimpleLUT::MicroGMTMatchQualSimpleLUT(), l1t::MicroGMTRankPtQualLUT::MicroGMTRankPtQualLUT(), and l1t::MicroGMTRelativeIsolationCheckLUT::MicroGMTRelativeIsolationCheckLUT().
|
protected |
Definition at line 35 of file MicroGMTLUT.h.
Referenced by initialize(), l1t::MicroGMTAbsoluteIsolationCheckLUT::MicroGMTAbsoluteIsolationCheckLUT(), l1t::MicroGMTCaloIndexSelectionLUT::MicroGMTCaloIndexSelectionLUT(), l1t::MicroGMTExtrapolationLUT::MicroGMTExtrapolationLUT(), l1t::MicroGMTMatchQualFineLUT::MicroGMTMatchQualFineLUT(), l1t::MicroGMTMatchQualSimpleLUT::MicroGMTMatchQualSimpleLUT(), l1t::MicroGMTRankPtQualLUT::MicroGMTRankPtQualLUT(), and l1t::MicroGMTRelativeIsolationCheckLUT::MicroGMTRelativeIsolationCheckLUT().
|
protected |
Definition at line 34 of file MicroGMTLUT.h.
Referenced by initialize(), l1t::MicroGMTAbsoluteIsolationCheckLUT::MicroGMTAbsoluteIsolationCheckLUT(), l1t::MicroGMTCaloIndexSelectionLUT::MicroGMTCaloIndexSelectionLUT(), l1t::MicroGMTExtrapolationLUT::MicroGMTExtrapolationLUT(), l1t::MicroGMTMatchQualFineLUT::MicroGMTMatchQualFineLUT(), l1t::MicroGMTMatchQualSimpleLUT::MicroGMTMatchQualSimpleLUT(), l1t::MicroGMTRankPtQualLUT::MicroGMTRankPtQualLUT(), and l1t::MicroGMTRelativeIsolationCheckLUT::MicroGMTRelativeIsolationCheckLUT().