#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 | checkIndex (const Type1 &indexLo, const Type1 &indexHi, const unsigned int index) const |
check if a index is in a given range 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 |
template<class Type1 , class Type2 > | |
const bool | checkUnconstrainedPt (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 |
|
inlinevirtual |
|
protected |
check if a bit with a given number is set in a mask
Definition at line 253 of file ConditionEvaluation.h.
References L1TBPTX_cfi::bitNumber, LogTrace, and m_verbosity.
|
protected |
check if a index is in a given range
Definition at line 233 of file ConditionEvaluation.h.
References LogDebug.
|
protected |
check if a value is in a given range
Definition at line 423 of file ConditionEvaluation.h.
References change_name::diff, funct::false, and LogDebug.
|
protected |
check if a value is in a given range
Definition at line 472 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 279 of file ConditionEvaluation.h.
References L1TBPTX_cfi::bitNumber, funct::false, and LogDebug.
|
protected |
check if a value is in a given range and outside of a veto range
Definition at line 354 of file ConditionEvaluation.h.
References L1TBPTX_cfi::bitNumber, and 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 165 of file ConditionEvaluation.h.
References TauDecayModes::dec, and LogTrace.
|
protected |
check if a value is greater than a threshold or greater-or-equal depending on the value of the condGEqValue flag Added by Rick Cavanaugh for Displaced Muons: Above checkThreshold fails when value overflows or threshold window is invalid Below checkUnconstrainedPt allows value to overflow and only evaluates cut if threshold window is valid
Added by Rick Cavanaugh for Displaced Muons: Above checkThreshold fails when value overflows or threshold window is invalid Below checkUnconstrainedPt allows value to overflow and only evaluates cut if threshold window is valid
Definition at line 204 of file ConditionEvaluation.h.
References TauDecayModes::dec, and LogTrace.
|
inlineprotected |
get all the object combinations (to fill it...)
Definition at line 84 of file ConditionEvaluation.h.
References m_combinationsInCond.
|
inline |
get the latest result for the condition
Definition at line 57 of file ConditionEvaluation.h.
References m_condLastResult.
Referenced by l1t::CorrCondition::evaluateCondition(), l1t::CorrThreeBodyCondition::evaluateCondition(), and l1t::CorrWithOverlapRemovalCondition::evaluateCondition().
|
inline |
get / set the maximum number of objects received for the evaluation of the condition
Definition at line 50 of file ConditionEvaluation.h.
References m_condMaxNumberObjects.
|
pure virtual |
the core function to check if the condition matches
Implemented in l1t::CorrWithOverlapRemovalCondition, l1t::CorrThreeBodyCondition, l1t::CaloCondition, l1t::CorrCondition, l1t::EnergySumCondition, l1t::ExternalCondition, and l1t::MuCondition.
Referenced by evaluateConditionStoreResult().
|
inline |
call evaluateCondition and save last result
Definition at line 60 of file ConditionEvaluation.h.
References evaluateCondition(), and m_condLastResult.
Referenced by l1t::CorrCondition::evaluateCondition(), l1t::CorrThreeBodyCondition::evaluateCondition(), l1t::CorrWithOverlapRemovalCondition::evaluateCondition(), and l1t::GlobalBoard::runGTL().
|
inline |
get all the object combinations evaluated to true in the condition
Definition at line 75 of file ConditionEvaluation.h.
References m_combinationsInCond.
Referenced by l1t::CorrCondition::evaluateCondition(), l1t::CorrThreeBodyCondition::evaluateCondition(), and l1t::CorrWithOverlapRemovalCondition::evaluateCondition().
|
inlinevirtual |
get numeric expression
Definition at line 66 of file ConditionEvaluation.h.
References m_condLastResult.
|
virtual |
print condition
Reimplemented in l1t::CorrWithOverlapRemovalCondition, l1t::CorrThreeBodyCondition, l1t::CaloCondition, l1t::CorrCondition, l1t::EnergySumCondition, l1t::ExternalCondition, and l1t::MuCondition.
Definition at line 32 of file ConditionEvaluation.cc.
References filterCSVwithJSON::copy, mps_fire::end, m_combinationsInCond, m_condLastResult, and m_condMaxNumberObjects.
Referenced by l1t::EnergySumCondition::print(), l1t::MuCondition::print(), l1t::ExternalCondition::print(), l1t::CorrCondition::print(), l1t::CaloCondition::print(), l1t::CorrThreeBodyCondition::print(), and l1t::CorrWithOverlapRemovalCondition::print().
|
inline |
Definition at line 52 of file ConditionEvaluation.h.
References m_condMaxNumberObjects.
|
inline |
Definition at line 80 of file ConditionEvaluation.h.
References m_verbosity, and ctppsCommonDQMSource_cfi::verbosity.
Referenced by l1t::GlobalBoard::runGTL().
|
mutableprotected |
store all the object combinations evaluated to true in the condition
Definition at line 154 of file ConditionEvaluation.h.
Referenced by combinationsInCond(), getCombinationsInCond(), and print().
|
protected |
the last result of evaluateCondition()
Definition at line 151 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 148 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 157 of file ConditionEvaluation.h.
Referenced by checkBit(), and setVerbosity().