#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 |
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 40 of file ConditionEvaluation.h.
|
inline |
constructor
Definition at line 46 of file ConditionEvaluation.h.
|
inlinevirtual |
|
protected |
check if a bit with a given number is set in a mask
Definition at line 226 of file ConditionEvaluation.h.
References LogTrace, and m_verbosity.
Referenced by combinationsInCond(), and l1t::EnergySumCondition::evaluateCondition().
|
protected |
check if a index is in a given range
Definition at line 203 of file ConditionEvaluation.h.
References LogDebug.
Referenced by l1t::MuCondition::checkObjectParameter(), l1t::CaloCondition::checkObjectParameter(), and combinationsInCond().
|
protected |
check if a value is in a given range
Definition at line 424 of file ConditionEvaluation.h.
References diffTreeTool::diff, and LogDebug.
Referenced by combinationsInCond(), l1t::MuCondition::evaluateCondition(), and l1t::CaloCondition::evaluateCondition().
|
protected |
check if a value is in a given range
Definition at line 483 of file ConditionEvaluation.h.
References funct::abs(), hiPixelPairStep_cff::deltaPhi, and LogDebug.
Referenced by combinationsInCond(), l1t::MuCondition::evaluateCondition(), and l1t::CaloCondition::evaluateCondition().
|
protected |
check if a value is in a given range and outside of a veto range
Definition at line 257 of file ConditionEvaluation.h.
References LogDebug.
Referenced by l1t::MuCondition::checkObjectParameter(), l1t::CaloCondition::checkObjectParameter(), and combinationsInCond().
|
protected |
check if a value is in a given range and outside of a veto range
Definition at line 348 of file ConditionEvaluation.h.
References LogDebug.
Referenced by l1t::MuCondition::checkObjectParameter(), l1t::CaloCondition::checkObjectParameter(), combinationsInCond(), and l1t::EnergySumCondition::evaluateCondition().
|
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.
Referenced by l1t::MuCondition::checkObjectParameter(), l1t::CaloCondition::checkObjectParameter(), combinationsInCond(), and l1t::EnergySumCondition::evaluateCondition().
|
inlineprotected |
get all the object combinations (to fill it...)
Definition at line 106 of file ConditionEvaluation.h.
References checkBit(), checkIndex(), checkRangeDeltaEta(), checkRangeDeltaPhi(), checkRangeEta(), checkRangePhi(), checkThreshold(), m_combinationsInCond, and RecoTauDiscriminantConfiguration::mask.
Referenced by l1t::EnergySumCondition::evaluateCondition(), l1t::ExternalCondition::evaluateCondition(), l1t::MuCondition::evaluateCondition(), l1t::CaloCondition::evaluateCondition(), l1t::CorrCondition::evaluateCondition(), and l1t::CorrWithOverlapRemovalCondition::evaluateCondition().
|
inline |
get the latest result for the condition
Definition at line 68 of file ConditionEvaluation.h.
References m_condLastResult.
Referenced by l1t::EnergySumCondition::copy(), l1t::ExternalCondition::copy(), l1t::MuCondition::copy(), l1t::CaloCondition::copy(), l1t::CorrCondition::copy(), l1t::CorrWithOverlapRemovalCondition::copy(), l1t::CorrCondition::evaluateCondition(), and l1t::CorrWithOverlapRemovalCondition::evaluateCondition().
|
inline |
get / set the maximum number of objects received for the evaluation of the condition
Definition at line 59 of file ConditionEvaluation.h.
References m_condMaxNumberObjects.
Referenced by l1t::EnergySumCondition::copy(), l1t::ExternalCondition::copy(), l1t::MuCondition::copy(), l1t::CaloCondition::copy(), l1t::CorrCondition::copy(), and l1t::CorrWithOverlapRemovalCondition::copy().
|
pure virtual |
the core function to check if the condition matches
Implemented in l1t::CorrWithOverlapRemovalCondition, l1t::CorrCondition, l1t::CaloCondition, l1t::MuCondition, l1t::EnergySumCondition, and l1t::ExternalCondition.
Referenced by evaluateConditionStoreResult().
|
inline |
call evaluateCondition and save last result
Definition at line 73 of file ConditionEvaluation.h.
References evaluateCondition(), and m_condLastResult.
Referenced by l1t::CorrCondition::evaluateCondition(), l1t::CorrWithOverlapRemovalCondition::evaluateCondition(), and l1t::GlobalBoard::runGTL().
|
inline |
get all the object combinations evaluated to true in the condition
Definition at line 91 of file ConditionEvaluation.h.
References m_combinationsInCond, and print().
Referenced by l1t::EnergySumCondition::copy(), l1t::ExternalCondition::copy(), l1t::MuCondition::copy(), l1t::CaloCondition::copy(), l1t::CorrCondition::copy(), l1t::CorrWithOverlapRemovalCondition::copy(), l1t::CorrCondition::evaluateCondition(), and l1t::CorrWithOverlapRemovalCondition::evaluateCondition().
|
inlinevirtual |
get numeric expression
Definition at line 81 of file ConditionEvaluation.h.
References m_condLastResult.
|
virtual |
print condition
Reimplemented in l1t::CorrWithOverlapRemovalCondition, l1t::CorrCondition, l1t::CaloCondition, l1t::MuCondition, l1t::EnergySumCondition, and l1t::ExternalCondition.
Definition at line 32 of file ConditionEvaluation.cc.
References begin, popcon2dropbox::copy(), end, m_combinationsInCond, m_condLastResult, and m_condMaxNumberObjects.
Referenced by getCombinationsInCond(), l1t::EnergySumCondition::print(), l1t::ExternalCondition::print(), l1t::MuCondition::print(), l1t::CaloCondition::print(), l1t::CorrCondition::print(), and l1t::CorrWithOverlapRemovalCondition::print().
|
inline |
Definition at line 63 of file ConditionEvaluation.h.
References m_condMaxNumberObjects.
|
inline |
Definition at line 99 of file ConditionEvaluation.h.
References m_verbosity, and HIPAlignmentAlgorithm_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(), l1t::ExternalCondition::copy(), l1t::EnergySumCondition::copy(), l1t::MuCondition::copy(), l1t::CaloCondition::copy(), l1t::CorrCondition::copy(), l1t::CorrWithOverlapRemovalCondition::copy(), getCombinationsInCond(), and print().
|
protected |
the last result of evaluateCondition()
Definition at line 151 of file ConditionEvaluation.h.
Referenced by condLastResult(), l1t::EnergySumCondition::copy(), l1t::ExternalCondition::copy(), l1t::MuCondition::copy(), l1t::CaloCondition::copy(), l1t::CorrCondition::copy(), l1t::CorrWithOverlapRemovalCondition::copy(), 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::copy(), l1t::ExternalCondition::copy(), l1t::MuCondition::copy(), l1t::CaloCondition::copy(), l1t::CorrCondition::copy(), l1t::CorrWithOverlapRemovalCondition::copy(), 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(), l1t::EnergySumCondition::copy(), l1t::ExternalCondition::copy(), l1t::MuCondition::copy(), l1t::CaloCondition::copy(), l1t::CorrCondition::copy(), l1t::CorrWithOverlapRemovalCondition::copy(), l1t::CaloCondition::evaluateCondition(), l1t::CorrCondition::evaluateCondition(), l1t::CorrWithOverlapRemovalCondition::evaluateCondition(), and setVerbosity().