7 const double fEtaCoarse,
65 return data((
unsigned)hashInput(
66 checkedInput(etaFine, 1), checkedInput(dEtaRed, m_dEtaRedInWidth), checkedInput(dPhiRed, m_dPhiRedInWidth)));
68 double dEta = m_fEtaCoarse * dEtaRed * m_etaScale;
70 dEta = m_fEta * dEtaRed * m_etaScale;
72 double dPhi = m_fPhi * dPhiRed * m_phiScale;
73 double dR =
std::sqrt(dEta * dEta + dPhi * dPhi);
75 int retVal = dR <= m_maxDR ? 1 : 0;
82 return data((
unsigned)in);
88 unHashInput(in, etaFine, dEtaRed, dPhiRed);
89 return lookup(etaFine, dEtaRed, dPhiRed);
95 result += dEtaRed << m_dPhiRedInWidth;
96 result += etaFine << (m_dEtaRedInWidth + m_dPhiRedInWidth);
101 dPhiRed = input & m_dPhiRedMask;
102 dEtaRed = (input & m_dEtaRedMask) >> m_dPhiRedInWidth;
103 etaFine = (input & m_etaFineMask) >> (m_dEtaRedInWidth + m_dPhiRedInWidth);
int load(const std::string &inFileName)
std::vector< MicroGMTConfiguration::input_t > m_inputs
static std::string const input
int lookupPacked(int in) const override
void unHashInput(int input, int &etaFine, int &dEta, int &dPhi) const
int lookup(int etaFine, int dEta, int dPhi) const override
MicroGMTMatchQualFineLUT()
int hashInput(int etaFine, int dEta, int dPhi) const
char data[epos_bytes_allocation]