116 bool condResult =
false;
129 if (bitCounts ==
nullptr) {
137 const unsigned int numberL1HfBitCounts = 4;
139 const unsigned int cIndex = objPar.
countIndex;
140 if (cIndex >= numberL1HfBitCounts) {
142 edm::LogError(
"L1GlobalTrigger") <<
"\nL1GtHfBitCountsCondition error: countIndex " 143 << cIndex <<
"greater than GCT maximum index = " << numberL1HfBitCounts
144 <<
"\n ==> condResult = false " << std::endl;
149 const unsigned int countValue = bitCounts->
bitCount(cIndex);
160 objectsInComb.push_back(indexObj);
unsigned int countThreshold
void copy(const L1GtHfBitCountsCondition &cp)
copy function for copy constructor and operator=
int m_verbosity
verbosity level
void setGtPSB(const L1GlobalTriggerPSB *)
set the pointer to PSB
bool m_condLastResult
the last result of evaluateCondition()
typedef for a single object template
CombinationsInCond m_combinationsInCond
store all the object combinations evaluated to true in the condition
CombinationsInCond & combinationsInCond() const
get all the object combinations (to fill it...)
void setGtHfBitCountsTemplate(const L1GtHfBitCountsTemplate *)
const L1GtHfBitCountsTemplate * gtHfBitCountsTemplate() const
get / set the pointer to a L1GtCondition
std::vector< int > SingleCombInCond
typedefs
int condMaxNumberObjects() const
uint16_t bitCount(unsigned const i) const
const L1GtHfBitCountsTemplate * m_gtHfBitCountsTemplate
pointer to a L1GtHfBitCountsTemplate
void print(std::ostream &myCout) const override
print condition
L1GtHfBitCountsCondition & operator=(const L1GtHfBitCountsCondition &)
void clear(CLHEP::HepGenMatrix &m)
Helper function: Reset all elements of a matrix to 0.
const bool checkThreshold(const Type1 &threshold, const Type2 &value, const bool condGEqValue) const
const L1GctHFBitCounts * getCandL1HfBitCounts() const
pointer to HfBitCounts data list
void print(std::ostream &myCout) const override
print the condition
const L1GlobalTriggerPSB * m_gtPSB
pointer to PSB, to be able to get the trigger objects
int m_condMaxNumberObjects
~L1GtHfBitCountsCondition() override
const bool evaluateCondition() const override
the core function to check if the condition matches
const L1GlobalTriggerPSB * gtPSB() const
get / set the pointer to PSB
virtual void print(std::ostream &myCout) const
print condition
const bool condGEq() const
get / set condition GEq flag
const std::vector< ObjectParameter > * objectParameter() const
CombinationsInCond const & getCombinationsInCond() const
get all the object combinations evaluated to true in the condition
L1GtHfBitCountsCondition()
bool condLastResult() const
get the latest result for the condition