#include <ConditionEvaluation.h>
Public Member Functions | |
ConditionEvaluation () | |
constructor More... | |
bool | condLastResult () const |
get the latest result for the condition More... | |
int | condMaxNumberObjects () const |
virtual const bool | evaluateCondition (const int bxEval) const =0 |
the core function to check if the condition matches More... | |
void | evaluateConditionStoreResult (const int bxEval) |
call evaluateCondition and save last result More... | |
CombinationsInCond const & | getCombinationsInCond () const |
get all the object combinations evaluated to true in the condition More... | |
virtual std::string | getNumericExpression () const |
get numeric expression More... | |
virtual void | print (std::ostream &myCout) const |
print condition More... | |
void | setCondMaxNumberObjects (int condMaxNumberObjectsValue) |
void | setVerbosity (const int verbosity) |
virtual | ~ConditionEvaluation () |
destructor More... | |
Protected Member Functions | |
template<class Type1 > | |
const bool | checkBit (const Type1 &mask, const unsigned int bitNumber) const |
check if a bit with a given number is set in a mask More... | |
template<class Type1 > | |
const bool | checkRangeDeltaEta (const unsigned int obj1Eta, const unsigned int obj2Eta, const Type1 &lowerR, const Type1 &upperR, const unsigned int nEtaBits) const |
check if a value is in a given range More... | |
template<class Type1 > | |
const bool | checkRangeDeltaPhi (const unsigned int obj1Phi, const unsigned int obj2Phi, const Type1 &lowerR, const Type1 &upperR) const |
check if a value is in a given range More... | |
template<class Type1 > | |
const bool | checkRangeEta (const unsigned int bitNumber, const Type1 &beginR, const Type1 &endR, const Type1 &beginVetoR, const Type1 &endVetoR, const unsigned int nEtaBits) const |
check if a value is in a given range and outside of a veto range More... | |
template<class Type1 > | |
const bool | checkRangePhi (const unsigned int bitNumber, const Type1 &beginR, const Type1 &endR, const Type1 &beginVetoR, const Type1 &endVetoR) const |
check if a value is in a given range and outside of a veto range More... | |
template<class Type1 , class Type2 > | |
const bool | checkThreshold (const Type1 &threshold, const Type2 &value, bool condGEqValue) const |
CombinationsInCond & | combinationsInCond () const |
get all the object combinations (to fill it...) More... | |
Protected Attributes | |
CombinationsInCond | m_combinationsInCond |
store all the object combinations evaluated to true in the condition More... | |
bool | m_condLastResult |
the last result of evaluateCondition() More... | |
int | m_condMaxNumberObjects |
int | m_verbosity |
verbosity level More... | |
Definition at line 39 of file ConditionEvaluation.h.
|
inline |
constructor
Definition at line 45 of file ConditionEvaluation.h.
|
inlinevirtual |
|
protected |
check if a bit with a given number is set in a mask
Definition at line 197 of file ConditionEvaluation.h.
References LogTrace, and m_verbosity.
|
protected |
check if a value is in a given range
Definition at line 368 of file ConditionEvaluation.h.
References compare_using_db::compare, diffTreeTool::diff, LogDebug, and smaller.
|
protected |
check if a value is in a given range
Definition at line 427 of file ConditionEvaluation.h.
References funct::abs(), SiPixelRawToDigiRegional_cfi::deltaPhi, and LogDebug.
|
protected |
check if a value is in a given range and outside of a veto range
Definition at line 228 of file ConditionEvaluation.h.
References LogDebug.
|
protected |
check if a value is in a given range and outside of a veto range
Definition at line 300 of file ConditionEvaluation.h.
References LogDebug.
|
protected |
check if a value is greater than a threshold or greater-or-equal depending on the value of the condGEqValue flag
Definition at line 160 of file ConditionEvaluation.h.
|
inlineprotected |
get all the object combinations (to fill it...)
Definition at line 105 of file ConditionEvaluation.h.
References m_combinationsInCond.
|
inline |
get the latest result for the condition
Definition at line 67 of file ConditionEvaluation.h.
References m_condLastResult.
Referenced by l1t::EnergySumCondition::copy(), l1t::MuCondition::copy(), and l1t::CaloCondition::copy().
|
inline |
get / set the maximum number of objects received for the evaluation of the condition
Definition at line 58 of file ConditionEvaluation.h.
References m_condMaxNumberObjects.
Referenced by l1t::EnergySumCondition::copy(), l1t::MuCondition::copy(), and l1t::CaloCondition::copy().
|
pure virtual |
the core function to check if the condition matches
Implemented in l1t::CaloCondition, l1t::MuCondition, and l1t::EnergySumCondition.
Referenced by evaluateConditionStoreResult().
|
inline |
call evaluateCondition and save last result
Definition at line 72 of file ConditionEvaluation.h.
References evaluateCondition(), and m_condLastResult.
Referenced by l1t::GtBoard::runGTL().
|
inline |
get all the object combinations evaluated to true in the condition
Definition at line 90 of file ConditionEvaluation.h.
References m_combinationsInCond.
Referenced by l1t::EnergySumCondition::copy(), l1t::MuCondition::copy(), and l1t::CaloCondition::copy().
|
inlinevirtual |
get numeric expression
Definition at line 80 of file ConditionEvaluation.h.
References m_condLastResult.
|
virtual |
print condition
Reimplemented in l1t::CaloCondition, l1t::MuCondition, and l1t::EnergySumCondition.
Definition at line 36 of file ConditionEvaluation.cc.
References begin, filterCSVwithJSON::copy, end, m_combinationsInCond, m_condLastResult, and m_condMaxNumberObjects.
Referenced by l1t::EnergySumCondition::print(), l1t::MuCondition::print(), and l1t::CaloCondition::print().
|
inline |
Definition at line 62 of file ConditionEvaluation.h.
References m_condMaxNumberObjects.
|
inline |
Definition at line 98 of file ConditionEvaluation.h.
References m_verbosity, and HLT_25ns14e33_v1_cff::verbosity.
Referenced by l1t::GtBoard::runGTL().
|
mutableprotected |
store all the object combinations evaluated to true in the condition
Definition at line 149 of file ConditionEvaluation.h.
Referenced by combinationsInCond(), getCombinationsInCond(), and print().
|
protected |
the last result of evaluateCondition()
Definition at line 146 of file ConditionEvaluation.h.
Referenced by condLastResult(), evaluateConditionStoreResult(), getNumericExpression(), and print().
|
protected |
maximum number of objects received for the evaluation of the condition usually retrieved from event setup
Definition at line 143 of file ConditionEvaluation.h.
Referenced by l1t::CaloCondition::CaloCondition(), condMaxNumberObjects(), l1t::EnergySumCondition::EnergySumCondition(), l1t::MuCondition::MuCondition(), print(), and setCondMaxNumberObjects().
|
protected |
verbosity level
Definition at line 152 of file ConditionEvaluation.h.
Referenced by checkBit(), l1t::EnergySumCondition::copy(), l1t::MuCondition::copy(), l1t::CaloCondition::copy(), and setVerbosity().