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;
62 double dR =
std::sqrt(dEta * dEta + dPhi * dPhi);
64 int retVal = dR <= m_maxDR ? 1 : 0;
71 return data((
unsigned)in);
76 unHashInput(in, dEtaRed, dPhiRed);
77 return lookup(0, dEtaRed, dPhiRed);
83 result += dEtaRed << m_dPhiRedInWidth;
88 dPhiRed = input & m_dPhiRedMask;
89 dEtaRed = (input & m_dEtaRedMask) >> m_dPhiRedInWidth;
int lookupPacked(int in) const override
int lookup(int etaFine, int dEta, int dPhi) const override
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
MicroGMTMatchQualSimpleLUT()
char data[epos_bytes_allocation]
void unHashInput(int input, int &dEta, int &dPhi) const