1 #include "../interface/MicroGMTMatchQualLUT.h"
5 m_dEtaRedMask(0), m_dPhiRedMask(0), m_dEtaRedInWidth(0), m_dPhiRedInWidth(0), m_etaScale(0), m_phiScale(0), m_cancelType(cancelType)
41 return m_contents.at(hashInput(checkedInput(dEtaRed, m_dEtaRedInWidth), checkedInput(dPhiRed, m_dPhiRedInWidth)));
43 double dEta = dEtaRed*m_etaScale;
44 double dPhi = dPhiRed*m_phiScale;
48 int retVal = dR < 0.1 ? 1 : 0;
62 return m_contents.at(in);
67 unHashInput(in, dEtaRed, dPhiRed);
68 return lookup(dEtaRed, dPhiRed);
77 result += dPhiRed << m_dEtaRedInWidth;
84 dEtaRed = input & m_dEtaRedMask;
85 dPhiRed = (input & m_dPhiRedMask) >> m_dEtaRedInWidth;
T getParameter(std::string const &) const
std::vector< MicroGMTConfiguration::input_t > m_inputs
static std::string const input
double dPhi(double phi1, double phi2)
int lookup(int dEta, int dPhi) const
void unHashInput(int input, int &dEta, int &dPhi) const
void load(const std::string &inFileName)
virtual ~MicroGMTMatchQualLUT()
int hashInput(int dEta, int dPhi) const
virtual int lookupPacked(int in) const