#include <MicroGMTMatchQualLUT.h>
Public Member Functions | |
int | hashInput (int dEta, int dPhi) const |
int | lookup (int etaFine, int dEta, int dPhi) const override |
int | lookupPacked (int in) const override |
MicroGMTMatchQualSimpleLUT () | |
MicroGMTMatchQualSimpleLUT (const std::string &, const double maxDR, const double fEta, const double fPhi, cancel_t cancelType) | |
MicroGMTMatchQualSimpleLUT (l1t::LUT *lut, cancel_t cancelType) | |
void | unHashInput (int input, int &dEta, int &dPhi) const |
~MicroGMTMatchQualSimpleLUT () override | |
Public Member Functions inherited from l1t::MicroGMTMatchQualLUT | |
int | getDeltaEtaWidth () const |
int | getDeltaPhiWidth () const |
MicroGMTMatchQualLUT () | |
MicroGMTMatchQualLUT (l1t::LUT *lut) | |
~MicroGMTMatchQualLUT () override | |
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 () | |
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::MicroGMTMatchQualLUT | |
cancel_t | m_cancelType |
int | m_dEtaRedInWidth |
int | m_dEtaRedMask |
int | m_dPhiRedInWidth |
int | m_dPhiRedMask |
double | m_etaScale |
double | m_fEta |
double | m_fPhi |
double | m_maxDR |
double | m_phiScale |
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 44 of file MicroGMTMatchQualLUT.h.
|
inline |
Definition at line 46 of file MicroGMTMatchQualLUT.h.
References lumiPlot::lut, jets_cff::maxDR, and AlCaHLTBitMon_QueryRunRegistry::string.
|
explicit |
Definition at line 4 of file MicroGMTMatchQualSimpleLUT.cc.
References l1t::MicroGMTConfiguration::DELTA_ETA_RED, l1t::MicroGMTConfiguration::DELTA_PHI_RED, l1t::MicroGMTLUT::initialize(), l1t::MicroGMTLUT::load(), l1t::MicroGMTMatchQualLUT::m_cancelType, l1t::MicroGMTMatchQualLUT::m_dEtaRedInWidth, l1t::MicroGMTMatchQualLUT::m_dEtaRedMask, l1t::MicroGMTMatchQualLUT::m_dPhiRedInWidth, l1t::MicroGMTMatchQualLUT::m_dPhiRedMask, l1t::MicroGMTMatchQualLUT::m_etaScale, l1t::MicroGMTMatchQualLUT::m_fEta, l1t::MicroGMTMatchQualLUT::m_fPhi, l1t::MicroGMTLUT::m_inputs, l1t::MicroGMTMatchQualLUT::m_maxDR, l1t::MicroGMTLUT::m_outWidth, l1t::MicroGMTMatchQualLUT::m_phiScale, l1t::MicroGMTLUT::m_totalInWidth, jets_cff::maxDR, Pi, and AlCaHLTBitMon_QueryRunRegistry::string.
|
explicit |
Definition at line 32 of file MicroGMTMatchQualSimpleLUT.cc.
References l1t::MicroGMTConfiguration::DELTA_ETA_RED, l1t::MicroGMTConfiguration::DELTA_PHI_RED, l1t::MicroGMTMatchQualLUT::m_cancelType, l1t::MicroGMTMatchQualLUT::m_dEtaRedInWidth, l1t::MicroGMTMatchQualLUT::m_dEtaRedMask, l1t::MicroGMTMatchQualLUT::m_dPhiRedInWidth, l1t::MicroGMTMatchQualLUT::m_dPhiRedMask, l1t::MicroGMTMatchQualLUT::m_etaScale, l1t::MicroGMTLUT::m_initialized, l1t::MicroGMTLUT::m_inputs, l1t::MicroGMTLUT::m_outWidth, l1t::MicroGMTMatchQualLUT::m_phiScale, l1t::MicroGMTLUT::m_totalInWidth, and Pi.
|
inlineoverride |
Definition at line 49 of file MicroGMTMatchQualLUT.h.
References particleFlow_cfi::dEta, particleFlow_cfi::dPhi, recoMuon::in, input, l1t::MicroGMTMatchQualLUT::lookup(), and l1t::MicroGMTLUT::lookupPacked().
int l1t::MicroGMTMatchQualSimpleLUT::hashInput | ( | int | dEta, |
int | dPhi | ||
) | const |
Definition at line 83 of file MicroGMTMatchQualSimpleLUT.cc.
References l1t::MicroGMTMatchQualLUT::m_dPhiRedInWidth, and mps_fire::result.
Referenced by lookup().
|
overridevirtual |
Implements l1t::MicroGMTMatchQualLUT.
Definition at line 54 of file MicroGMTMatchQualSimpleLUT.cc.
References l1t::MicroGMTLUT::checkedInput(), l1t::LUT::data(), particleFlow_cfi::dEta, particleFlow_cfi::dPhi, hashInput(), l1t::MicroGMTMatchQualLUT::m_dEtaRedInWidth, l1t::MicroGMTMatchQualLUT::m_dPhiRedInWidth, l1t::MicroGMTMatchQualLUT::m_etaScale, l1t::MicroGMTMatchQualLUT::m_fEta, l1t::MicroGMTMatchQualLUT::m_fPhi, l1t::MicroGMTLUT::m_initialized, l1t::MicroGMTMatchQualLUT::m_maxDR, l1t::MicroGMTMatchQualLUT::m_phiScale, and mathSSE::sqrt().
Referenced by lookupPacked().
|
overridevirtual |
Reimplemented from l1t::MicroGMTLUT.
Definition at line 70 of file MicroGMTMatchQualSimpleLUT.cc.
References l1t::LUT::data(), lookup(), l1t::MicroGMTLUT::m_initialized, and unHashInput().
void l1t::MicroGMTMatchQualSimpleLUT::unHashInput | ( | int | input, |
int & | dEta, | ||
int & | dPhi | ||
) | const |
Definition at line 93 of file MicroGMTMatchQualSimpleLUT.cc.
References l1t::MicroGMTMatchQualLUT::m_dEtaRedMask, l1t::MicroGMTMatchQualLUT::m_dPhiRedInWidth, and l1t::MicroGMTMatchQualLUT::m_dPhiRedMask.
Referenced by lookupPacked().