#include <L1Trigger/GlobalTrigger/interface/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 L1GtCastorCondition &) | |
L1GtCastorCondition (const L1GtCondition *, const bool result) | |
from base template condition (from event setup usually) | |
L1GtCastorCondition () | |
constructors default | |
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 |
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.
00031 : 00032 L1GtConditionEvaluation() { 00033 00034 m_conditionResult = false; 00035 00036 }
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.
00040 : 00041 L1GtConditionEvaluation(), 00042 m_gtCastorTemplate(static_cast<const L1GtCastorTemplate*>(castorTemplate)), 00043 m_conditionResult(result) { 00044 00045 // maximum number of objects received for the evaluation of the condition 00046 // no object 00047 m_condMaxNumberObjects = 0; 00048 00049 }
L1GtCastorCondition::L1GtCastorCondition | ( | const L1GtCastorCondition & | cp | ) |
Definition at line 63 of file L1GtCastorCondition.cc.
References copy().
00063 : 00064 L1GtConditionEvaluation() { 00065 00066 copy(cp); 00067 00068 }
L1GtCastorCondition::~L1GtCastorCondition | ( | ) | [virtual] |
const bool L1GtCastorCondition::conditionResult | ( | ) | const [inline] |
get / set the result
Definition at line 73 of file L1GtCastorCondition.h.
References m_conditionResult.
Referenced by copy().
00073 { 00074 return m_conditionResult; 00075 }
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, and m_gtCastorTemplate.
Referenced by L1GtCastorCondition(), and operator=().
00052 { 00053 00054 m_gtCastorTemplate = cp.gtCastorTemplate(); 00055 m_conditionResult = cp.conditionResult(); 00056 00057 m_condMaxNumberObjects = cp.condMaxNumberObjects(); 00058 m_condLastResult = cp.condLastResult(); 00059 m_combinationsInCond = cp.getCombinationsInCond(); 00060 00061 }
const bool L1GtCastorCondition::evaluateCondition | ( | ) | const [virtual] |
the core function to check if the condition matches
Implements L1GtConditionEvaluation.
Definition at line 92 of file L1GtCastorCondition.cc.
References m_conditionResult.
00092 { 00093 00094 // clear the m_combinationsInCond vector 00095 (*m_combinationsInCond).clear(); 00096 00097 // 00098 return m_conditionResult; 00099 00100 }
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().
00066 { 00067 return m_gtCastorTemplate; 00068 }
L1GtCastorCondition & L1GtCastorCondition::operator= | ( | const L1GtCastorCondition & | cp | ) |
Definition at line 78 of file L1GtCastorCondition.cc.
References copy().
00079 { 00080 copy(cp); 00081 return *this; 00082 }
void L1GtCastorCondition::print | ( | std::ostream & | myCout | ) | const [virtual] |
print condition
Reimplemented from L1GtConditionEvaluation.
Definition at line 102 of file L1GtCastorCondition.cc.
References m_gtCastorTemplate, L1GtCastorTemplate::print(), and L1GtConditionEvaluation::print().
Referenced by L1GlobalTriggerGTL::run().
00102 { 00103 00104 m_gtCastorTemplate->print(myCout); 00105 L1GtConditionEvaluation::print(myCout); 00106 00107 }
Definition at line 77 of file L1GtCastorCondition.h.
References m_conditionResult.
00077 { 00078 m_conditionResult = result; 00079 }
void L1GtCastorCondition::setGtCastorTemplate | ( | const L1GtCastorTemplate * | castorTemplate | ) |
Definition at line 85 of file L1GtCastorCondition.cc.
References m_gtCastorTemplate.
00086 { 00087 00088 m_gtCastorTemplate = castorTemplate; 00089 00090 }
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().