#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 , class Type2 > | |
const bool | checkCut (const Type1 &cutL, const Type2 &value, bool condGEqValue) const |
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 deltaEta 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 deltaPhi range More... | |
template<class Type1 > | |
const bool | checkRangeEta (const unsigned int bitNumber, const std::vector< Type1 > &windows, const unsigned int nEtaBits) const |
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 phi range and outside of a veto range More... | |
template<class Type1 > | |
const bool | checkRangeTfMuonIndex (const unsigned int bitNumber, const std::vector< Type1 > &windows) const |
check if a value is in a given muon track finder index 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 45 of file ConditionEvaluation.h.
|
inline |
constructor
Definition at line 48 of file ConditionEvaluation.h.
|
inlinevirtual |
|
protected |
check if a bit with a given number is set in a mask
Definition at line 289 of file ConditionEvaluation.h.
References L1TBPTX_cfi::bitNumber, LogTrace, m_verbosity, and gpuClustering::pixelStatus::mask.
|
protected |
check if a value is greater than a cut or greater-or-equal depending on the value of the condGEqValue flag no upper limit applied, added for AXOL1TL condition
Definition at line 211 of file ConditionEvaluation.h.
References TauDecayModes::dec, and LogTrace.
|
protected |
check if a index is in a given range
Definition at line 269 of file ConditionEvaluation.h.
References LogDebug.
|
protected |
check if a value is in a given deltaEta range
Definition at line 430 of file ConditionEvaluation.h.
References change_name::diff, funct::false, and LogDebug.
|
protected |
check if a value is in a given deltaPhi range
Definition at line 479 of file ConditionEvaluation.h.
References funct::abs(), SiPixelRawToDigiRegional_cfi::deltaPhi, and LogDebug.
|
protected |
check if a value is in a given eta range and outside of a veto range Up to five eta cuts are allowed in L1 algorithms. Three eta cuts are used for the DoubleMu seeds with upt requirement implemented for Run 3 (2023)
Definition at line 317 of file ConditionEvaluation.h.
References L1TBPTX_cfi::bitNumber, funct::false, LogDebug, and svgfig::window().
|
protected |
check if a value is in a given phi range and outside of a veto range
Definition at line 361 of file ConditionEvaluation.h.
References L1TBPTX_cfi::bitNumber, and LogDebug.
|
protected |
check if a value is in a given muon track finder index range
Definition at line 515 of file ConditionEvaluation.h.
References LogDebug, and svgfig::window().
|
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 180 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 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 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 240 of file ConditionEvaluation.h.
References TauDecayModes::dec, and LogTrace.
|
inlineprotected |
get all the object combinations (to fill it...)
Definition at line 90 of file ConditionEvaluation.h.
References m_combinationsInCond.
|
inline |
get the latest result for the condition
Definition at line 63 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 56 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::EnergySumZdcCondition, l1t::ExternalCondition, l1t::MuCondition, l1t::MuonShowerCondition, and l1t::AXOL1TLCondition.
Referenced by evaluateConditionStoreResult().
|
inline |
call evaluateCondition and save last result
Definition at line 66 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 81 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 72 of file ConditionEvaluation.h.
References m_condLastResult.
|
virtual |
print condition
Reimplemented in l1t::CorrWithOverlapRemovalCondition, l1t::CorrThreeBodyCondition, l1t::CaloCondition, l1t::CorrCondition, l1t::EnergySumCondition, l1t::EnergySumZdcCondition, l1t::ExternalCondition, l1t::MuCondition, l1t::MuonShowerCondition, and l1t::AXOL1TLCondition.
Definition at line 32 of file ConditionEvaluation.cc.
References filterCSVwithJSON::copy, m_combinationsInCond, m_condLastResult, and m_condMaxNumberObjects.
Referenced by l1t::AXOL1TLCondition::print(), l1t::MuonShowerCondition::print(), l1t::MuCondition::print(), l1t::ExternalCondition::print(), l1t::EnergySumZdcCondition::print(), l1t::EnergySumCondition::print(), l1t::CorrCondition::print(), l1t::CaloCondition::print(), l1t::CorrThreeBodyCondition::print(), and l1t::CorrWithOverlapRemovalCondition::print().
|
inline |
Definition at line 58 of file ConditionEvaluation.h.
References m_condMaxNumberObjects.
|
inline |
Definition at line 86 of file ConditionEvaluation.h.
References m_verbosity, and verbosity.
Referenced by l1t::GlobalBoard::runGTL().
|
mutableprotected |
store all the object combinations evaluated to true in the condition
Definition at line 169 of file ConditionEvaluation.h.
Referenced by combinationsInCond(), getCombinationsInCond(), and print().
|
protected |
the last result of evaluateCondition()
Definition at line 166 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 163 of file ConditionEvaluation.h.
Referenced by l1t::CaloCondition::CaloCondition(), condMaxNumberObjects(), l1t::EnergySumCondition::EnergySumCondition(), l1t::EnergySumZdcCondition::EnergySumZdcCondition(), l1t::ExternalCondition::ExternalCondition(), l1t::MuCondition::MuCondition(), l1t::MuonShowerCondition::MuonShowerCondition(), print(), and setCondMaxNumberObjects().
|
protected |
verbosity level
Definition at line 172 of file ConditionEvaluation.h.
Referenced by checkBit(), and setVerbosity().