#include <L1GtBptxCondition.h>
Public Member Functions | |
const bool | conditionResult () const |
get / set the result More... | |
const bool | evaluateCondition () const |
the core function to check if the condition matches More... | |
const L1GtBptxTemplate * | gtBptxTemplate () const |
get / set the pointer to a L1GtCondition More... | |
L1GtBptxCondition () | |
L1GtBptxCondition (const L1GtCondition *, const bool result) | |
from base template condition (from event setup usually) More... | |
L1GtBptxCondition (const L1GtBptxCondition &) | |
L1GtBptxCondition & | operator= (const L1GtBptxCondition &) |
void | print (std::ostream &myCout) const |
print condition More... | |
void | setConditionResult (const bool result) |
void | setGtBptxTemplate (const L1GtBptxTemplate *) |
virtual | ~L1GtBptxCondition () |
Public Member Functions inherited from L1GtConditionEvaluation | |
bool | condLastResult () const |
get the latest result for the condition More... | |
int | condMaxNumberObjects () const |
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... | |
void | setCondMaxNumberObjects (int condMaxNumberObjectsValue) |
void | setVerbosity (const int verbosity) |
virtual | ~L1GtConditionEvaluation () |
destructor More... | |
Private Member Functions | |
void | copy (const L1GtBptxCondition &cp) |
copy function for copy constructor and operator= More... | |
Private Attributes | |
bool | m_conditionResult |
condition result More... | |
const L1GtBptxTemplate * | m_gtBptxTemplate |
pointer to a L1GtBptxTemplate More... | |
Additional Inherited Members | |
Protected Member Functions inherited from L1GtConditionEvaluation | |
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 inherited from L1GtConditionEvaluation | |
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: evaluation of a CondBptx condition.
Implementation: Simply put the result read in the L1GtConditionEvaluation base class, to be similar with other conditions.
Definition at line 32 of file L1GtBptxCondition.h.
L1GtBptxCondition::L1GtBptxCondition | ( | ) |
constructors default
Definition at line 29 of file L1GtBptxCondition.cc.
References m_conditionResult.
L1GtBptxCondition::L1GtBptxCondition | ( | const L1GtCondition * | bptxTemplate, |
const bool | result | ||
) |
from base template condition (from event setup usually)
Definition at line 37 of file L1GtBptxCondition.cc.
References L1GtConditionEvaluation::m_condMaxNumberObjects.
L1GtBptxCondition::L1GtBptxCondition | ( | const L1GtBptxCondition & | cp | ) |
Definition at line 63 of file L1GtBptxCondition.cc.
References copy().
|
virtual |
Definition at line 71 of file L1GtBptxCondition.cc.
|
inline |
get / set the result
Definition at line 71 of file L1GtBptxCondition.h.
References m_conditionResult.
Referenced by copy().
|
private |
copy function for copy constructor and operator=
Definition at line 50 of file L1GtBptxCondition.cc.
References conditionResult(), L1GtConditionEvaluation::condLastResult(), L1GtConditionEvaluation::condMaxNumberObjects(), L1GtConditionEvaluation::getCombinationsInCond(), gtBptxTemplate(), L1GtConditionEvaluation::m_combinationsInCond, m_conditionResult, L1GtConditionEvaluation::m_condLastResult, L1GtConditionEvaluation::m_condMaxNumberObjects, m_gtBptxTemplate, and L1GtConditionEvaluation::m_verbosity.
Referenced by L1GtBptxCondition(), operator=(), and setConditionResult().
|
virtual |
the core function to check if the condition matches
Implements L1GtConditionEvaluation.
Definition at line 92 of file L1GtBptxCondition.cc.
References hitfit::clear(), L1GtConditionEvaluation::combinationsInCond(), and m_conditionResult.
|
inline |
get / set the pointer to a L1GtCondition
Definition at line 64 of file L1GtBptxCondition.h.
References m_gtBptxTemplate, and setGtBptxTemplate().
Referenced by copy().
L1GtBptxCondition & L1GtBptxCondition::operator= | ( | const L1GtBptxCondition & | cp | ) |
Definition at line 78 of file L1GtBptxCondition.cc.
References copy().
|
virtual |
print condition
Reimplemented from L1GtConditionEvaluation.
Definition at line 102 of file L1GtBptxCondition.cc.
References m_gtBptxTemplate, L1GtBptxTemplate::print(), and L1GtConditionEvaluation::print().
Referenced by L1GlobalTriggerGTL::run().
|
inline |
Definition at line 75 of file L1GtBptxCondition.h.
References copy(), SimDataFormats::CaloAnalysis::cp, m_conditionResult, and mps_fire::result.
void L1GtBptxCondition::setGtBptxTemplate | ( | const L1GtBptxTemplate * | bptxTemplate | ) |
Definition at line 85 of file L1GtBptxCondition.cc.
References m_gtBptxTemplate.
Referenced by gtBptxTemplate().
|
private |
condition result
Definition at line 90 of file L1GtBptxCondition.h.
Referenced by conditionResult(), copy(), evaluateCondition(), L1GtBptxCondition(), and setConditionResult().
|
private |
pointer to a L1GtBptxTemplate
Definition at line 87 of file L1GtBptxCondition.h.
Referenced by copy(), gtBptxTemplate(), print(), and setGtBptxTemplate().