#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 43 of file L1GtConditionEvaluation.h.
|
inlinevirtual |
|
protected |
check if a bit with a given number is set in a mask
Definition at line 173 of file L1GtConditionEvaluation.h.
References LogTrace, and m_verbosity.
Referenced by L1GtMuonCondition::checkObjectParameter(), L1GtCaloCondition::checkObjectParameter(), L1GtEnergySumCondition::evaluateCondition(), L1GtMuonCondition::evaluateCondition(), L1GtCorrelationCondition::evaluateCondition(), and L1GtCaloCondition::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 136 of file L1GtConditionEvaluation.h.
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 103 of file L1GtConditionEvaluation.h.
References m_combinationsInCond.
Referenced by L1GtBptxCondition::evaluateCondition(), L1GtHfRingEtSumsCondition::evaluateCondition(), L1GtCastorCondition::evaluateCondition(), L1GtExternalCondition::evaluateCondition(), L1GtHfBitCountsCondition::evaluateCondition(), L1GtEnergySumCondition::evaluateCondition(), L1GtJetCountsCondition::evaluateCondition(), L1GtCorrelationCondition::evaluateCondition(), L1GtMuonCondition::evaluateCondition(), and L1GtCaloCondition::evaluateCondition().
|
inline |
get the latest result for the condition
Definition at line 65 of file L1GtConditionEvaluation.h.
References m_condLastResult.
Referenced by L1GtHfBitCountsCondition::copy(), L1GtHfRingEtSumsCondition::copy(), L1GtJetCountsCondition::copy(), L1GtEnergySumCondition::copy(), L1GtCastorCondition::copy(), L1GtBptxCondition::copy(), L1GtExternalCondition::copy(), L1GtMuonCondition::copy(), L1GtCaloCondition::copy(), and L1GtCorrelationCondition::evaluateCondition().
|
inline |
get / set the maximum number of objects received for the evaluation of the condition
Definition at line 56 of file L1GtConditionEvaluation.h.
References m_condMaxNumberObjects.
Referenced by L1GtHfBitCountsCondition::copy(), L1GtHfRingEtSumsCondition::copy(), L1GtJetCountsCondition::copy(), L1GtEnergySumCondition::copy(), L1GtBptxCondition::copy(), L1GtExternalCondition::copy(), L1GtCastorCondition::copy(), L1GtMuonCondition::copy(), and L1GtCaloCondition::copy().
|
pure virtual |
the core function to check if the condition matches
Implemented in L1GtCaloCondition, L1GtCorrelationCondition, L1GtMuonCondition, L1GtEnergySumCondition, L1GtJetCountsCondition, L1GtBptxCondition, L1GtCastorCondition, L1GtExternalCondition, L1GtHfBitCountsCondition, and L1GtHfRingEtSumsCondition.
Referenced by evaluateConditionStoreResult().
|
inline |
call evaluateCondition and save last result
Definition at line 70 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 88 of file L1GtConditionEvaluation.h.
References m_combinationsInCond.
Referenced by L1GtHfBitCountsCondition::copy(), L1GtHfRingEtSumsCondition::copy(), L1GtJetCountsCondition::copy(), L1GtEnergySumCondition::copy(), L1GtCastorCondition::copy(), L1GtBptxCondition::copy(), L1GtExternalCondition::copy(), L1GtMuonCondition::copy(), L1GtCaloCondition::copy(), and L1GtCorrelationCondition::evaluateCondition().
|
inlinevirtual |
get numeric expression
Definition at line 78 of file L1GtConditionEvaluation.h.
References m_condLastResult.
|
virtual |
print condition
Reimplemented in L1GtCaloCondition, L1GtCorrelationCondition, L1GtMuonCondition, L1GtEnergySumCondition, L1GtJetCountsCondition, L1GtBptxCondition, L1GtCastorCondition, L1GtExternalCondition, L1GtHfBitCountsCondition, and L1GtHfRingEtSumsCondition.
Definition at line 36 of file L1GtConditionEvaluation.cc.
References begin, filterCSVwithJSON::copy, end, m_combinationsInCond, m_condLastResult, and m_condMaxNumberObjects.
Referenced by L1GtBptxCondition::print(), L1GtHfRingEtSumsCondition::print(), L1GtCastorCondition::print(), L1GtExternalCondition::print(), L1GtHfBitCountsCondition::print(), L1GtEnergySumCondition::print(), L1GtJetCountsCondition::print(), L1GtCorrelationCondition::print(), L1GtMuonCondition::print(), and L1GtCaloCondition::print().
|
inline |
Definition at line 60 of file L1GtConditionEvaluation.h.
References m_condMaxNumberObjects.
|
inline |
Definition at line 96 of file L1GtConditionEvaluation.h.
References m_verbosity, and mvaPFMET_cff::verbosity.
Referenced by L1GlobalTriggerGTL::run().
|
mutableprotected |
store all the object combinations evaluated to true in the condition
Definition at line 125 of file L1GtConditionEvaluation.h.
Referenced by combinationsInCond(), L1GtHfBitCountsCondition::copy(), L1GtHfRingEtSumsCondition::copy(), L1GtEnergySumCondition::copy(), L1GtJetCountsCondition::copy(), L1GtCastorCondition::copy(), L1GtExternalCondition::copy(), L1GtBptxCondition::copy(), L1GtCorrelationCondition::copy(), L1GtMuonCondition::copy(), L1GtCaloCondition::copy(), getCombinationsInCond(), and print().
|
protected |
the last result of evaluateCondition()
Definition at line 122 of file L1GtConditionEvaluation.h.
Referenced by condLastResult(), L1GtHfBitCountsCondition::copy(), L1GtHfRingEtSumsCondition::copy(), L1GtEnergySumCondition::copy(), L1GtJetCountsCondition::copy(), L1GtBptxCondition::copy(), L1GtExternalCondition::copy(), L1GtCastorCondition::copy(), L1GtCorrelationCondition::copy(), L1GtMuonCondition::copy(), L1GtCaloCondition::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 119 of file L1GtConditionEvaluation.h.
Referenced by condMaxNumberObjects(), L1GtHfBitCountsCondition::copy(), L1GtHfRingEtSumsCondition::copy(), L1GtJetCountsCondition::copy(), L1GtEnergySumCondition::copy(), L1GtCastorCondition::copy(), L1GtBptxCondition::copy(), L1GtExternalCondition::copy(), L1GtCorrelationCondition::copy(), L1GtMuonCondition::copy(), L1GtCaloCondition::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 128 of file L1GtConditionEvaluation.h.
Referenced by checkBit(), L1GtHfBitCountsCondition::copy(), L1GtHfRingEtSumsCondition::copy(), L1GtEnergySumCondition::copy(), L1GtJetCountsCondition::copy(), L1GtBptxCondition::copy(), L1GtExternalCondition::copy(), L1GtCastorCondition::copy(), L1GtCorrelationCondition::copy(), L1GtMuonCondition::copy(), L1GtCaloCondition::copy(), L1GtMuonCondition::evaluateCondition(), L1GtCorrelationCondition::evaluateCondition(), L1GtCaloCondition::evaluateCondition(), and setVerbosity().