1 #include "../interface/MicroGMTRelativeIsolationCheckLUT.h"
17 m_energySumInWidth = config.
getParameter<
int>(
"areaSum_in_width");
20 m_totalInWidth = m_ptInWidth + m_energySumInWidth;
22 m_ptMask = (1 << m_ptInWidth) - 1;
23 m_energySumMask = (1 << (m_totalInWidth - 1)) - m_ptMask;
42 return lookupPacked(hashInput(checkedInput(energySum, m_energySumInWidth), checkedInput(pt, m_ptInWidth)));
49 result += energySum << m_ptInWidth;
57 energySum = input & m_energySumMask;
58 pt = (input & m_ptMask) >> m_energySumInWidth;
T getParameter(std::string const &) const
void unHashInput(int input, int &energySum, int &pt) const
int hashInput(int energySum, int pt) const
static std::string const input
MicroGMTRelativeIsolationCheckLUT(const edm::ParameterSet &iConfig, const std::string &setName)
void getParameters(const edm::ParameterSet &iConfig, const char *setName)
int lookup(int energySum, int pt) const
double energySum(const DataFrame &df, int fs, int ls)
virtual ~MicroGMTRelativeIsolationCheckLUT()