#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 &W1beginR, const Type1 &W1endR, const Type1 &W2beginR, const Type1 &W2endR, 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 &W1beginR, const Type1 &W1endR, const Type1 &W2beginR, const Type1 &W2endR) 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 &thresholdL, const Type1 &thresholdH, 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 198 of file ConditionEvaluation.h.
References LogTrace, and m_verbosity.
|
protected |
check if a value is in a given range
Definition at line 396 of file ConditionEvaluation.h.
References compare_using_db::compare, mps_update::diff, LogDebug, and smaller.
|
protected |
check if a value is in a given range
Definition at line 455 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 229 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 320 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.
References TauDecayModes::dec, and LogTrace.
|
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::ExternalCondition::copy(), l1t::MuCondition::copy(), l1t::CaloCondition::copy(), l1t::CorrCondition::copy(), and l1t::CorrCondition::evaluateCondition().
|
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::ExternalCondition::copy(), l1t::MuCondition::copy(), l1t::CaloCondition::copy(), and l1t::CorrCondition::copy().
|
pure virtual |
the core function to check if the condition matches
Implemented in l1t::CorrCondition, l1t::CaloCondition, l1t::MuCondition, l1t::EnergySumCondition, and l1t::ExternalCondition.
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::CorrCondition::evaluateCondition(), and l1t::GlobalBoard::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::ExternalCondition::copy(), l1t::MuCondition::copy(), l1t::CaloCondition::copy(), l1t::CorrCondition::copy(), and l1t::CorrCondition::evaluateCondition().
|
inlinevirtual |
get numeric expression
Definition at line 80 of file ConditionEvaluation.h.
References m_condLastResult.
|
virtual |
print condition
Reimplemented in l1t::CorrCondition, l1t::CaloCondition, l1t::MuCondition, l1t::EnergySumCondition, and l1t::ExternalCondition.
Definition at line 32 of file ConditionEvaluation.cc.
References begin, filterCSVwithJSON::copy, end, m_combinationsInCond, m_condLastResult, and m_condMaxNumberObjects.
Referenced by l1t::EnergySumCondition::print(), l1t::ExternalCondition::print(), l1t::MuCondition::print(), l1t::CaloCondition::print(), and l1t::CorrCondition::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_25ns10e33_v2_cff::verbosity.
Referenced by l1t::GlobalBoard::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::ExternalCondition::ExternalCondition(), l1t::MuCondition::MuCondition(), print(), and setCondMaxNumberObjects().
|
protected |
verbosity level
Definition at line 152 of file ConditionEvaluation.h.
Referenced by checkBit(), l1t::EnergySumCondition::copy(), l1t::ExternalCondition::copy(), l1t::MuCondition::copy(), l1t::CaloCondition::copy(), l1t::CorrCondition::copy(), and setVerbosity().