#include <MicroGMTMatchQualLUT.h>
Public Member Functions | |
int | hashInput (int etaFine, int dEta, int dPhi) const |
int | lookup (int etaFine, int dEta, int dPhi) const |
virtual int | lookupPacked (int in) const |
MicroGMTMatchQualFineLUT () | |
MicroGMTMatchQualFineLUT (const std::string &, const double maxDR, const double fEta, const double fEtaCoarse, const double fPhi, cancel_t cancelType) | |
MicroGMTMatchQualFineLUT (l1t::LUT *lut, cancel_t cancelType) | |
void | unHashInput (int input, int &etaFine, int &dEta, int &dPhi) const |
virtual | ~MicroGMTMatchQualFineLUT () |
Public Member Functions inherited from l1t::MicroGMTMatchQualLUT | |
int | getDeltaEtaWidth () const |
int | getDeltaPhiWidth () const |
MicroGMTMatchQualLUT () | |
MicroGMTMatchQualLUT (l1t::LUT *lut) | |
virtual | ~MicroGMTMatchQualLUT () |
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 | |
int | m_etaFineMask |
double | m_fEtaCoarse |
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 58 of file MicroGMTMatchQualLUT.h.
|
inline |
Definition at line 60 of file MicroGMTMatchQualLUT.h.
References lumiPlot::lut, interestingEgammaIsoDetIdsSequence_cff::maxDR, and AlCaHLTBitMon_QueryRunRegistry::string.
|
explicit |
Definition at line 4 of file MicroGMTMatchQualFineLUT.cc.
References l1t::MicroGMTConfiguration::DELTA_ETA_RED, l1t::MicroGMTConfiguration::DELTA_PHI_RED, l1t::MicroGMTConfiguration::ETA_FINE_BIT, 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, m_etaFineMask, 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, interestingEgammaIsoDetIdsSequence_cff::maxDR, Pi, and AlCaHLTBitMon_QueryRunRegistry::string.
|
explicit |
Definition at line 34 of file MicroGMTMatchQualFineLUT.cc.
References l1t::MicroGMTConfiguration::DELTA_ETA_RED, l1t::MicroGMTConfiguration::DELTA_PHI_RED, l1t::MicroGMTConfiguration::ETA_FINE_BIT, l1t::MicroGMTMatchQualLUT::m_cancelType, l1t::MicroGMTMatchQualLUT::m_dEtaRedInWidth, l1t::MicroGMTMatchQualLUT::m_dEtaRedMask, l1t::MicroGMTMatchQualLUT::m_dPhiRedInWidth, l1t::MicroGMTMatchQualLUT::m_dPhiRedMask, m_etaFineMask, 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.
|
inlinevirtual |
Definition at line 63 of file MicroGMTMatchQualLUT.h.
References dPhi(), recoMuon::in, input, l1t::MicroGMTMatchQualLUT::lookup(), and l1t::MicroGMTLUT::lookupPacked().
int l1t::MicroGMTMatchQualFineLUT::hashInput | ( | int | etaFine, |
int | dEta, | ||
int | dPhi | ||
) | const |
Definition at line 91 of file MicroGMTMatchQualFineLUT.cc.
References l1t::MicroGMTMatchQualLUT::m_dEtaRedInWidth, l1t::MicroGMTMatchQualLUT::m_dPhiRedInWidth, and mps_fire::result.
Referenced by lookup().
|
virtual |
Implements l1t::MicroGMTMatchQualLUT.
Definition at line 58 of file MicroGMTMatchQualFineLUT.cc.
References l1t::MicroGMTLUT::checkedInput(), l1t::LUT::data(), dPhi(), PFRecoTauDiscriminationAgainstElectronDeadECAL_cfi::dR, hashInput(), l1t::MicroGMTMatchQualLUT::m_dEtaRedInWidth, l1t::MicroGMTMatchQualLUT::m_dPhiRedInWidth, l1t::MicroGMTMatchQualLUT::m_etaScale, l1t::MicroGMTMatchQualLUT::m_fEta, m_fEtaCoarse, l1t::MicroGMTMatchQualLUT::m_fPhi, l1t::MicroGMTLUT::m_initialized, l1t::MicroGMTMatchQualLUT::m_maxDR, l1t::MicroGMTMatchQualLUT::m_phiScale, and mathSSE::sqrt().
Referenced by lookupPacked().
|
virtual |
Reimplemented from l1t::MicroGMTLUT.
Definition at line 77 of file MicroGMTMatchQualFineLUT.cc.
References l1t::LUT::data(), lookup(), l1t::MicroGMTLUT::m_initialized, and unHashInput().
void l1t::MicroGMTMatchQualFineLUT::unHashInput | ( | int | input, |
int & | etaFine, | ||
int & | dEta, | ||
int & | dPhi | ||
) | const |
Definition at line 101 of file MicroGMTMatchQualFineLUT.cc.
References l1t::MicroGMTMatchQualLUT::m_dEtaRedInWidth, l1t::MicroGMTMatchQualLUT::m_dEtaRedMask, l1t::MicroGMTMatchQualLUT::m_dPhiRedInWidth, l1t::MicroGMTMatchQualLUT::m_dPhiRedMask, and m_etaFineMask.
Referenced by lookupPacked().
|
private |
Definition at line 70 of file MicroGMTMatchQualLUT.h.
Referenced by MicroGMTMatchQualFineLUT(), and unHashInput().
|
private |
Definition at line 71 of file MicroGMTMatchQualLUT.h.
Referenced by lookup().