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