38 const int maxOutput = ((1<<
NData)-1);
39 if (lutAddress > maxOutput)
return maxOutput;
40 else return (lutAddress & maxOutput);
45 std::vector<unsigned>
result;
48 result.push_back(
add);
61 os <<
"===L1GctHfBitCountsLut===" << std::endl;
62 os <<
"\n===Lookup table contents===\n" << std::endl;
L1GctHfEtSumsLut::hfLutType lutType() const
Return the type of Lut.
Base class for LookUp Tables.
friend std::ostream & operator<<(std::ostream &os, const L1GctHfBitCountsLut &lut)
Overload << operator.
uint16_t value(const uint16_t lutAddress) const override
L1GctHfBitCountsLut operator=(const L1GctHfBitCountsLut &lut)
Overload = operator.
L1GctHfEtSumsLut::hfLutType m_lutType
LUT for compression of HF feature bit counts to output format.
L1GctHfBitCountsLut()
Default constructor.
void add(std::map< std::string, TH1 * > &h, TH1 *hist)
static const int NAddress
~L1GctHfBitCountsLut() override
Destructor.
std::vector< unsigned > getThresholdsGct() const
Get thresholds.