#include <L1GtExternalCondition.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 L1GtExternalTemplate * | gtExternalTemplate () const |
get / set the pointer to a L1GtCondition | |
L1GtExternalCondition (const L1GtCondition *, const bool result) | |
from base template condition (from event setup usually) | |
L1GtExternalCondition () | |
L1GtExternalCondition (const L1GtExternalCondition &) | |
L1GtExternalCondition & | operator= (const L1GtExternalCondition &) |
void | print (std::ostream &myCout) const |
print condition | |
void | setConditionResult (const bool result) |
void | setGtExternalTemplate (const L1GtExternalTemplate *) |
virtual | ~L1GtExternalCondition () |
Private Member Functions | |
void | copy (const L1GtExternalCondition &cp) |
copy function for copy constructor and operator= | |
Private Attributes | |
bool | m_conditionResult |
condition result | |
const L1GtExternalTemplate * | m_gtExternalTemplate |
pointer to a L1GtExternalTemplate |
Description: evaluation of a CondExternal 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 L1GtExternalCondition.h.
L1GtExternalCondition::L1GtExternalCondition | ( | ) |
constructors default
Definition at line 31 of file L1GtExternalCondition.cc.
References m_conditionResult.
: L1GtConditionEvaluation() { m_conditionResult = false; }
L1GtExternalCondition::L1GtExternalCondition | ( | const L1GtCondition * | externalTemplate, |
const bool | result | ||
) |
from base template condition (from event setup usually)
Definition at line 39 of file L1GtExternalCondition.cc.
References L1GtConditionEvaluation::m_condMaxNumberObjects.
: L1GtConditionEvaluation(), m_gtExternalTemplate(static_cast<const L1GtExternalTemplate*>(externalTemplate)), m_conditionResult(result) { // maximum number of objects received for the evaluation of the condition // no object m_condMaxNumberObjects = 0; }
L1GtExternalCondition::L1GtExternalCondition | ( | const L1GtExternalCondition & | cp | ) |
Definition at line 65 of file L1GtExternalCondition.cc.
References copy().
: L1GtConditionEvaluation() { copy(cp); }
L1GtExternalCondition::~L1GtExternalCondition | ( | ) | [virtual] |
Definition at line 73 of file L1GtExternalCondition.cc.
{
// empty
}
const bool L1GtExternalCondition::conditionResult | ( | ) | const [inline] |
get / set the result
Definition at line 73 of file L1GtExternalCondition.h.
References m_conditionResult.
Referenced by copy().
{ return m_conditionResult; }
void L1GtExternalCondition::copy | ( | const L1GtExternalCondition & | cp | ) | [private] |
copy function for copy constructor and operator=
Definition at line 52 of file L1GtExternalCondition.cc.
References conditionResult(), L1GtConditionEvaluation::condLastResult(), L1GtConditionEvaluation::condMaxNumberObjects(), L1GtConditionEvaluation::getCombinationsInCond(), gtExternalTemplate(), L1GtConditionEvaluation::m_combinationsInCond, m_conditionResult, L1GtConditionEvaluation::m_condLastResult, L1GtConditionEvaluation::m_condMaxNumberObjects, m_gtExternalTemplate, and L1GtConditionEvaluation::m_verbosity.
Referenced by L1GtExternalCondition(), and operator=().
{ m_gtExternalTemplate = cp.gtExternalTemplate(); m_conditionResult = cp.conditionResult(); m_condMaxNumberObjects = cp.condMaxNumberObjects(); m_condLastResult = cp.condLastResult(); m_combinationsInCond = cp.getCombinationsInCond(); m_verbosity = cp.m_verbosity; }
const bool L1GtExternalCondition::evaluateCondition | ( | ) | const [virtual] |
the core function to check if the condition matches
Implements L1GtConditionEvaluation.
Definition at line 94 of file L1GtExternalCondition.cc.
References hitfit::clear(), L1GtConditionEvaluation::combinationsInCond(), and m_conditionResult.
{ // clear the m_combinationsInCond vector (combinationsInCond()).clear(); // return m_conditionResult; }
const L1GtExternalTemplate* L1GtExternalCondition::gtExternalTemplate | ( | ) | const [inline] |
get / set the pointer to a L1GtCondition
Definition at line 66 of file L1GtExternalCondition.h.
References m_gtExternalTemplate.
Referenced by copy().
{ return m_gtExternalTemplate; }
L1GtExternalCondition & L1GtExternalCondition::operator= | ( | const L1GtExternalCondition & | cp | ) |
Definition at line 80 of file L1GtExternalCondition.cc.
References copy().
{ copy(cp); return *this; }
void L1GtExternalCondition::print | ( | std::ostream & | myCout | ) | const [virtual] |
print condition
Reimplemented from L1GtConditionEvaluation.
Definition at line 104 of file L1GtExternalCondition.cc.
References m_gtExternalTemplate, and L1GtExternalTemplate::print().
Referenced by L1GlobalTriggerGTL::run().
{ m_gtExternalTemplate->print(myCout); L1GtConditionEvaluation::print(myCout); }
void L1GtExternalCondition::setConditionResult | ( | const bool | result | ) | [inline] |
Definition at line 77 of file L1GtExternalCondition.h.
References m_conditionResult, and query::result.
{ m_conditionResult = result; }
void L1GtExternalCondition::setGtExternalTemplate | ( | const L1GtExternalTemplate * | externalTemplate | ) |
Definition at line 87 of file L1GtExternalCondition.cc.
References m_gtExternalTemplate.
{ m_gtExternalTemplate = externalTemplate; }
bool L1GtExternalCondition::m_conditionResult [private] |
condition result
Definition at line 92 of file L1GtExternalCondition.h.
Referenced by conditionResult(), copy(), evaluateCondition(), L1GtExternalCondition(), and setConditionResult().
const L1GtExternalTemplate* L1GtExternalCondition::m_gtExternalTemplate [private] |
pointer to a L1GtExternalTemplate
Definition at line 89 of file L1GtExternalCondition.h.
Referenced by copy(), gtExternalTemplate(), print(), and setGtExternalTemplate().