#include <L1GtBptxCondition.h>
Public Member Functions | |
const bool | conditionResult () const |
get / set the result | |
const bool | evaluateCondition () const |
the core function to check if the condition matches | |
const L1GtBptxTemplate * | gtBptxTemplate () const |
get / set the pointer to a L1GtCondition | |
L1GtBptxCondition (const L1GtCondition *, const bool result) | |
from base template condition (from event setup usually) | |
L1GtBptxCondition () | |
L1GtBptxCondition (const L1GtBptxCondition &) | |
L1GtBptxCondition & | operator= (const L1GtBptxCondition &) |
void | print (std::ostream &myCout) const |
print condition | |
void | setConditionResult (const bool result) |
void | setGtBptxTemplate (const L1GtBptxTemplate *) |
virtual | ~L1GtBptxCondition () |
Private Member Functions | |
void | copy (const L1GtBptxCondition &cp) |
copy function for copy constructor and operator= | |
Private Attributes | |
bool | m_conditionResult |
condition result | |
const L1GtBptxTemplate * | m_gtBptxTemplate |
pointer to a L1GtBptxTemplate |
Description: evaluation of a CondBptx condition.
Implementation: Simply put the result read in the L1GtConditionEvaluation base class, to be similar with other conditions.
$Date$ $Revision$
Definition at line 34 of file L1GtBptxCondition.h.
L1GtBptxCondition::L1GtBptxCondition | ( | ) |
constructors default
Definition at line 31 of file L1GtBptxCondition.cc.
References m_conditionResult.
: L1GtConditionEvaluation() { m_conditionResult = false; }
L1GtBptxCondition::L1GtBptxCondition | ( | const L1GtCondition * | bptxTemplate, |
const bool | result | ||
) |
from base template condition (from event setup usually)
Definition at line 39 of file L1GtBptxCondition.cc.
References L1GtConditionEvaluation::m_condMaxNumberObjects.
: L1GtConditionEvaluation(), m_gtBptxTemplate(static_cast<const L1GtBptxTemplate*>(bptxTemplate)), m_conditionResult(result) { // maximum number of objects received for the evaluation of the condition // no object m_condMaxNumberObjects = 0; }
L1GtBptxCondition::L1GtBptxCondition | ( | const L1GtBptxCondition & | cp | ) |
Definition at line 65 of file L1GtBptxCondition.cc.
References copy().
: L1GtConditionEvaluation() { copy(cp); }
L1GtBptxCondition::~L1GtBptxCondition | ( | ) | [virtual] |
Definition at line 73 of file L1GtBptxCondition.cc.
{
// empty
}
const bool L1GtBptxCondition::conditionResult | ( | ) | const [inline] |
get / set the result
Definition at line 73 of file L1GtBptxCondition.h.
References m_conditionResult.
Referenced by copy().
{ return m_conditionResult; }
void L1GtBptxCondition::copy | ( | const L1GtBptxCondition & | cp | ) | [private] |
copy function for copy constructor and operator=
Definition at line 52 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(), and operator=().
{ m_gtBptxTemplate = cp.gtBptxTemplate(); m_conditionResult = cp.conditionResult(); m_condMaxNumberObjects = cp.condMaxNumberObjects(); m_condLastResult = cp.condLastResult(); m_combinationsInCond = cp.getCombinationsInCond(); m_verbosity = cp.m_verbosity; }
const bool L1GtBptxCondition::evaluateCondition | ( | ) | const [virtual] |
the core function to check if the condition matches
Implements L1GtConditionEvaluation.
Definition at line 94 of file L1GtBptxCondition.cc.
References hitfit::clear(), L1GtConditionEvaluation::combinationsInCond(), and m_conditionResult.
{ // clear the m_combinationsInCond vector (combinationsInCond()).clear(); // return m_conditionResult; }
const L1GtBptxTemplate* L1GtBptxCondition::gtBptxTemplate | ( | ) | const [inline] |
get / set the pointer to a L1GtCondition
Definition at line 66 of file L1GtBptxCondition.h.
References m_gtBptxTemplate.
Referenced by copy().
{ return m_gtBptxTemplate; }
L1GtBptxCondition & L1GtBptxCondition::operator= | ( | const L1GtBptxCondition & | cp | ) |
void L1GtBptxCondition::print | ( | std::ostream & | myCout | ) | const [virtual] |
print condition
Reimplemented from L1GtConditionEvaluation.
Definition at line 104 of file L1GtBptxCondition.cc.
References m_gtBptxTemplate, and L1GtBptxTemplate::print().
Referenced by L1GlobalTriggerGTL::run().
{ m_gtBptxTemplate->print(myCout); L1GtConditionEvaluation::print(myCout); }
void L1GtBptxCondition::setConditionResult | ( | const bool | result | ) | [inline] |
Definition at line 77 of file L1GtBptxCondition.h.
References m_conditionResult, and query::result.
{ m_conditionResult = result; }
void L1GtBptxCondition::setGtBptxTemplate | ( | const L1GtBptxTemplate * | bptxTemplate | ) |
Definition at line 87 of file L1GtBptxCondition.cc.
References m_gtBptxTemplate.
{ m_gtBptxTemplate = bptxTemplate; }
bool L1GtBptxCondition::m_conditionResult [private] |
condition result
Definition at line 92 of file L1GtBptxCondition.h.
Referenced by conditionResult(), copy(), evaluateCondition(), L1GtBptxCondition(), and setConditionResult().
const L1GtBptxTemplate* L1GtBptxCondition::m_gtBptxTemplate [private] |
pointer to a L1GtBptxTemplate
Definition at line 89 of file L1GtBptxCondition.h.
Referenced by copy(), gtBptxTemplate(), print(), and setGtBptxTemplate().