1 #include "../interface/MicroGMTMatchQualLUT.h"
58 return data((
unsigned)hashInput(checkedInput(dEtaRed, m_dEtaRedInWidth), checkedInput(dPhiRed, m_dPhiRedInWidth)));
60 double dEta = m_fEta*dEtaRed*m_etaScale;
61 double dPhi = m_fPhi*dPhiRed*m_phiScale;
64 int retVal = dR <= m_maxDR ? 1 : 0;
73 return data((
unsigned)in);
78 unHashInput(in, dEtaRed, dPhiRed);
79 return lookup(0, dEtaRed, dPhiRed);
88 result += dEtaRed << m_dPhiRedInWidth;
95 dPhiRed = input & m_dPhiRedMask;
96 dEtaRed = (input & m_dEtaRedMask) >> m_dPhiRedInWidth;
int hashInput(int dEta, int dPhi) const
int load(const std::string &inFileName)
std::vector< MicroGMTConfiguration::input_t > m_inputs
static std::string const input
double dPhi(double phi1, double phi2)
MicroGMTMatchQualSimpleLUT()
int lookup(int etaFine, int dEta, int dPhi) const
virtual int lookupPacked(int in) const
void unHashInput(int input, int &dEta, int &dPhi) const