1 #include "../interface/MicroGMTMatchQualLUT.h"
62 return data((
unsigned)hashInput(checkedInput(etaFine, 1), checkedInput(dEtaRed, m_dEtaRedInWidth), checkedInput(dPhiRed, m_dPhiRedInWidth)));
64 double dEta = m_fEtaCoarse*dEtaRed*m_etaScale;
66 dEta = m_fEta*dEtaRed*m_etaScale;
68 double dPhi = m_fPhi*dPhiRed*m_phiScale;
71 int retVal = dR <= m_maxDR ? 1 : 0;
80 return data((
unsigned)in);
86 unHashInput(in, etaFine, dEtaRed, dPhiRed);
87 return lookup(etaFine, dEtaRed, dPhiRed);
95 result += dEtaRed << m_dPhiRedInWidth;
96 result += etaFine << (m_dEtaRedInWidth + m_dPhiRedInWidth);
103 dPhiRed = input & m_dPhiRedMask;
104 dEtaRed = (input & m_dEtaRedMask) >> m_dPhiRedInWidth;
105 etaFine = (input & m_etaFineMask) >> (m_dEtaRedInWidth + m_dPhiRedInWidth);
virtual int lookupPacked(int in) const
int load(const std::string &inFileName)
std::vector< MicroGMTConfiguration::input_t > m_inputs
static std::string const input
void unHashInput(int input, int &etaFine, int &dEta, int &dPhi) const
double dPhi(double phi1, double phi2)
MicroGMTMatchQualFineLUT()
int hashInput(int etaFine, int dEta, int dPhi) const
char data[epos_bytes_allocation]
int lookup(int etaFine, int dEta, int dPhi) const