1 #ifndef GlobalTrigger_L1GtConditionEvaluation_h
2 #define GlobalTrigger_L1GtConditionEvaluation_h
26 #include <boost/cstdint.hpp>
94 virtual void print(std::ostream& myCout)
const;
105 const Type2&
value,
const bool condGEqValue)
const;
108 template<
class Type1>
const bool checkBit(
const Type1& mask,
const unsigned int bitNumber)
const;
132 const Type1&
threshold,
const Type2&
value,
const bool condGEqValue)
const {
142 if (value >= threshold) {
155 if (value == threshold) {
169 const unsigned int bitNumber)
const {
173 if (bitNumber >= (
sizeof(oneBit)*8)) {
178 <<
" checkBit " <<
"\n Bit number = "
179 << bitNumber <<
" larger than maximum allowed " <<
sizeof ( oneBit ) * 8
186 oneBit <<= bitNumber;
194 return (mask & oneBit);
CombinationsInCond * m_combinationsInCond
store all the object combinations evaluated to true in the condition
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
CombinationsInCond * getCombinationsInCond() const
get all the object combinations evaluated to true in the condition
bool m_condLastResult
the last result of evaluateCondition()
virtual const bool evaluateCondition() const =0
the core function to check if the condition matches
void setVerbosity(const int verbosity)
virtual std::string getNumericExpression()
get numeric expression
int condMaxNumberObjects() const
void evaluateConditionStoreResult()
call evaluateCondition and save last result
const bool checkThreshold(const Type1 &threshold, const Type2 &value, const bool condGEqValue) const
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
virtual ~L1GtConditionEvaluation()
destructor
bool condLastResult() const
get the latest result for the condition