#include <L1GtConditionEvaluation.h>
Public Member Functions | |
bool | condLastResult () const |
get the latest result for the condition More... | |
int | condMaxNumberObjects () const |
virtual const bool | evaluateCondition () const =0 |
the core function to check if the condition matches More... | |
void | evaluateConditionStoreResult () |
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... | |
L1GtConditionEvaluation () | |
constructor More... | |
virtual void | print (std::ostream &myCout) const |
print condition More... | |
void | setCondMaxNumberObjects (int condMaxNumberObjectsValue) |
void | setVerbosity (const int verbosity) |
virtual | ~L1GtConditionEvaluation () |
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 | checkThreshold (const Type1 &threshold, const Type2 &value, const 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... | |
Description: Base class for evaluation of the L1 Global Trigger object templates.
Implementation: <TODO: enter implementation details>
Definition at line 37 of file L1GtConditionEvaluation.h.
|
inline |
constructor
Definition at line 40 of file L1GtConditionEvaluation.h.
|
inlinevirtual |
|
protected |
check if a bit with a given number is set in a mask
Definition at line 149 of file L1GtConditionEvaluation.h.
References L1TBPTX_cfi::bitNumber, LogTrace, m_verbosity, and gpuClustering::pixelStatus::mask.
Referenced by L1GtMuonCondition::checkObjectParameter(), L1GtCaloCondition::checkObjectParameter(), L1GtEnergySumCondition::evaluateCondition(), L1GtMuonCondition::evaluateCondition(), L1GtCaloCondition::evaluateCondition(), and L1GtCorrelationCondition::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 113 of file L1GtConditionEvaluation.h.
References remoteMonitoring_LASER_era2018_cfg::threshold.
Referenced by L1GtMuonCondition::checkObjectParameter(), L1GtCaloCondition::checkObjectParameter(), L1GtHfRingEtSumsCondition::evaluateCondition(), L1GtHfBitCountsCondition::evaluateCondition(), L1GtEnergySumCondition::evaluateCondition(), and L1GtJetCountsCondition::evaluateCondition().
|
inlineprotected |
get all the object combinations (to fill it...)
Definition at line 82 of file L1GtConditionEvaluation.h.
References m_combinationsInCond.
Referenced by L1GtBptxCondition::evaluateCondition(), L1GtHfRingEtSumsCondition::evaluateCondition(), L1GtCastorCondition::evaluateCondition(), L1GtExternalCondition::evaluateCondition(), L1GtHfBitCountsCondition::evaluateCondition(), L1GtEnergySumCondition::evaluateCondition(), L1GtJetCountsCondition::evaluateCondition(), L1GtMuonCondition::evaluateCondition(), L1GtCaloCondition::evaluateCondition(), and L1GtCorrelationCondition::evaluateCondition().
|
inline |
get the latest result for the condition
Definition at line 55 of file L1GtConditionEvaluation.h.
References m_condLastResult.
Referenced by L1GtCorrelationCondition::evaluateCondition().
|
inline |
get / set the maximum number of objects received for the evaluation of the condition
Definition at line 48 of file L1GtConditionEvaluation.h.
References m_condMaxNumberObjects.
|
pure virtual |
the core function to check if the condition matches
Implemented in L1GtCorrelationCondition, L1GtCaloCondition, L1GtMuonCondition, L1GtEnergySumCondition, L1GtJetCountsCondition, L1GtBptxCondition, L1GtCastorCondition, L1GtExternalCondition, L1GtHfBitCountsCondition, and L1GtHfRingEtSumsCondition.
Referenced by evaluateConditionStoreResult().
|
inline |
call evaluateCondition and save last result
Definition at line 58 of file L1GtConditionEvaluation.h.
References evaluateCondition(), and m_condLastResult.
Referenced by L1GtCorrelationCondition::evaluateCondition(), and L1GlobalTriggerGTL::run().
|
inline |
get all the object combinations evaluated to true in the condition
Definition at line 73 of file L1GtConditionEvaluation.h.
References m_combinationsInCond.
Referenced by L1GtCorrelationCondition::evaluateCondition().
|
inlinevirtual |
get numeric expression
Definition at line 64 of file L1GtConditionEvaluation.h.
References m_condLastResult.
|
virtual |
print condition
Reimplemented in L1GtCorrelationCondition, L1GtCaloCondition, L1GtMuonCondition, L1GtEnergySumCondition, L1GtJetCountsCondition, L1GtBptxCondition, L1GtCastorCondition, L1GtExternalCondition, L1GtHfBitCountsCondition, and L1GtHfRingEtSumsCondition.
Definition at line 34 of file L1GtConditionEvaluation.cc.
References filterCSVwithJSON::copy, mps_fire::end, m_combinationsInCond, m_condLastResult, and m_condMaxNumberObjects.
Referenced by L1GtBptxCondition::print(), L1GtHfRingEtSumsCondition::print(), L1GtCastorCondition::print(), L1GtExternalCondition::print(), L1GtHfBitCountsCondition::print(), L1GtEnergySumCondition::print(), L1GtJetCountsCondition::print(), L1GtMuonCondition::print(), L1GtCaloCondition::print(), and L1GtCorrelationCondition::print().
|
inline |
Definition at line 50 of file L1GtConditionEvaluation.h.
References m_condMaxNumberObjects.
|
inline |
Definition at line 78 of file L1GtConditionEvaluation.h.
References m_verbosity, and verbosity.
Referenced by L1GlobalTriggerGTL::run().
|
mutableprotected |
store all the object combinations evaluated to true in the condition
Definition at line 102 of file L1GtConditionEvaluation.h.
Referenced by combinationsInCond(), L1GtCastorCondition::copy(), L1GtExternalCondition::copy(), L1GtHfBitCountsCondition::copy(), L1GtHfRingEtSumsCondition::copy(), L1GtBptxCondition::copy(), L1GtEnergySumCondition::copy(), L1GtJetCountsCondition::copy(), L1GtMuonCondition::copy(), L1GtCaloCondition::copy(), L1GtCorrelationCondition::copy(), getCombinationsInCond(), and print().
|
protected |
the last result of evaluateCondition()
Definition at line 99 of file L1GtConditionEvaluation.h.
Referenced by condLastResult(), L1GtBptxCondition::copy(), L1GtExternalCondition::copy(), L1GtHfBitCountsCondition::copy(), L1GtCastorCondition::copy(), L1GtHfRingEtSumsCondition::copy(), L1GtEnergySumCondition::copy(), L1GtJetCountsCondition::copy(), L1GtMuonCondition::copy(), L1GtCaloCondition::copy(), L1GtCorrelationCondition::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 96 of file L1GtConditionEvaluation.h.
Referenced by condMaxNumberObjects(), L1GtBptxCondition::copy(), L1GtCastorCondition::copy(), L1GtHfBitCountsCondition::copy(), L1GtHfRingEtSumsCondition::copy(), L1GtExternalCondition::copy(), L1GtJetCountsCondition::copy(), L1GtEnergySumCondition::copy(), L1GtMuonCondition::copy(), L1GtCaloCondition::copy(), L1GtCorrelationCondition::copy(), L1GtBptxCondition::L1GtBptxCondition(), L1GtCaloCondition::L1GtCaloCondition(), L1GtCastorCondition::L1GtCastorCondition(), L1GtCorrelationCondition::L1GtCorrelationCondition(), L1GtEnergySumCondition::L1GtEnergySumCondition(), L1GtExternalCondition::L1GtExternalCondition(), L1GtHfBitCountsCondition::L1GtHfBitCountsCondition(), L1GtHfRingEtSumsCondition::L1GtHfRingEtSumsCondition(), L1GtJetCountsCondition::L1GtJetCountsCondition(), L1GtMuonCondition::L1GtMuonCondition(), print(), and setCondMaxNumberObjects().
|
protected |
verbosity level
Definition at line 105 of file L1GtConditionEvaluation.h.
Referenced by checkBit(), L1GtExternalCondition::copy(), L1GtHfBitCountsCondition::copy(), L1GtBptxCondition::copy(), L1GtCastorCondition::copy(), L1GtHfRingEtSumsCondition::copy(), L1GtEnergySumCondition::copy(), L1GtJetCountsCondition::copy(), L1GtMuonCondition::copy(), L1GtCaloCondition::copy(), L1GtCorrelationCondition::copy(), L1GtMuonCondition::evaluateCondition(), L1GtCaloCondition::evaluateCondition(), L1GtCorrelationCondition::evaluateCondition(), and setVerbosity().