1 #ifndef GlobalTrigger_L1GtConditionEvaluation_h
2 #define GlobalTrigger_L1GtConditionEvaluation_h
76 virtual void print(std::ostream &myCout)
const;
86 template <
class Type1,
class Type2>
90 template <
class Type1>
91 const bool checkBit(
const Type1 &mask,
const unsigned int bitNumber)
const;
112 template <
class Type1,
class Type2>
115 const bool condGEqValue)
const {
126 if (value >= threshold) {
136 if (value == threshold) {
148 template <
class Type1>
152 if (bitNumber >= (
sizeof(oneBit) * 8)) {
154 LogTrace(
"L1GlobalTrigger") <<
" checkBit "
155 <<
"\n Bit number = " << bitNumber <<
" larger than maximum allowed "
156 <<
sizeof(oneBit) * 8 << std::endl;
162 oneBit <<= bitNumber;
174 return (mask & oneBit);
void setCondMaxNumberObjects(int condMaxNumberObjectsValue)
const bool checkBit(const Type1 &mask, const unsigned int bitNumber) const
check if a bit with a given number is set in a mask
int m_verbosity
verbosity level
bool m_condLastResult
the last result of evaluateCondition()
virtual const bool evaluateCondition() const =0
the core function to check if the condition matches
CombinationsInCond m_combinationsInCond
store all the object combinations evaluated to true in the condition
void setVerbosity(const int verbosity)
CombinationsInCond & combinationsInCond() const
get all the object combinations (to fill it...)
int condMaxNumberObjects() const
void evaluateConditionStoreResult()
call evaluateCondition and save last result
const bool checkThreshold(const Type1 &threshold, const Type2 &value, const bool condGEqValue) const
virtual std::string getNumericExpression() const
get numeric expression
virtual ~L1GtConditionEvaluation()
destructor
L1GtConditionEvaluation()
constructor
int m_condMaxNumberObjects
unsigned long long uint64_t
virtual void print(std::ostream &myCout) const
print condition
std::vector< SingleCombInCond > CombinationsInCond
all the object combinations evaluated to true in the condition
CombinationsInCond const & getCombinationsInCond() const
get all the object combinations evaluated to true in the condition
bool condLastResult() const
get the latest result for the condition