#include <L1GtHfRingEtSumsCondition.h>
Public Member Functions | |
const bool | evaluateCondition () const override |
the core function to check if the condition matches More... | |
const L1GtHfRingEtSumsTemplate * | gtHfRingEtSumsTemplate () const |
get / set the pointer to a L1GtCondition More... | |
const L1GlobalTriggerPSB * | gtPSB () const |
get / set the pointer to PSB More... | |
L1GtHfRingEtSumsCondition () | |
L1GtHfRingEtSumsCondition (const L1GtCondition *, const L1GlobalTriggerPSB *) | |
from base template condition (from event setup usually) More... | |
L1GtHfRingEtSumsCondition (const L1GtHfRingEtSumsCondition &) | |
L1GtHfRingEtSumsCondition & | operator= (const L1GtHfRingEtSumsCondition &) |
void | print (std::ostream &myCout) const override |
print condition More... | |
void | setGtHfRingEtSumsTemplate (const L1GtHfRingEtSumsTemplate *) |
void | setGtPSB (const L1GlobalTriggerPSB *) |
set the pointer to PSB More... | |
~L1GtHfRingEtSumsCondition () override | |
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... | |
const CombinationsInCond & | 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 L1GtHfRingEtSumsCondition &cp) |
copy function for copy constructor and operator= More... | |
Private Attributes | |
const L1GtHfRingEtSumsTemplate * | m_gtHfRingEtSumsTemplate |
pointer to a L1GtHfRingEtSumsTemplate More... | |
const L1GlobalTriggerPSB * | m_gtPSB |
pointer to PSB, to be able to get the trigger objects 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 CondHfRingEtSums condition.
Implementation: <TODO: enter implementation details>
Definition at line 32 of file L1GtHfRingEtSumsCondition.h.
L1GtHfRingEtSumsCondition::L1GtHfRingEtSumsCondition | ( | ) |
constructors default
Definition at line 37 of file L1GtHfRingEtSumsCondition.cc.
L1GtHfRingEtSumsCondition::L1GtHfRingEtSumsCondition | ( | const L1GtCondition * | etTemplate, |
const L1GlobalTriggerPSB * | ptrPSB | ||
) |
from base template condition (from event setup usually)
Definition at line 42 of file L1GtHfRingEtSumsCondition.cc.
References L1GtConditionEvaluation::m_condMaxNumberObjects.
L1GtHfRingEtSumsCondition::L1GtHfRingEtSumsCondition | ( | const L1GtHfRingEtSumsCondition & | cp | ) |
Definition at line 63 of file L1GtHfRingEtSumsCondition.cc.
References copy(), and CommonMethods::cp().
|
override |
Definition at line 68 of file L1GtHfRingEtSumsCondition.cc.
|
private |
copy function for copy constructor and operator=
Definition at line 52 of file L1GtHfRingEtSumsCondition.cc.
References CommonMethods::cp(), L1GtConditionEvaluation::m_combinationsInCond, L1GtConditionEvaluation::m_condLastResult, L1GtConditionEvaluation::m_condMaxNumberObjects, m_gtHfRingEtSumsTemplate, m_gtPSB, and L1GtConditionEvaluation::m_verbosity.
Referenced by L1GtHfRingEtSumsCondition(), and operator=().
|
overridevirtual |
the core function to check if the condition matches
Implements L1GtConditionEvaluation.
Definition at line 87 of file L1GtHfRingEtSumsCondition.cc.
References L1GtConditionEvaluation::checkThreshold(), clear(), L1GtConditionEvaluation::combinationsInCond(), L1GtCondition::condGEq(), L1GctHFRingEtSums::etSum(), L1GtHfRingEtSumsTemplate::ObjectParameter::etSumIndex, L1GtHfRingEtSumsTemplate::ObjectParameter::etSumThreshold, L1GlobalTriggerPSB::getCandL1HfRingEtSums(), m_gtHfRingEtSumsTemplate, m_gtPSB, and L1GtHfRingEtSumsTemplate::objectParameter().
|
inline |
get / set the pointer to a L1GtCondition
Definition at line 59 of file L1GtHfRingEtSumsCondition.h.
References m_gtHfRingEtSumsTemplate.
|
inline |
get / set the pointer to PSB
Definition at line 64 of file L1GtHfRingEtSumsCondition.h.
References m_gtPSB.
L1GtHfRingEtSumsCondition & L1GtHfRingEtSumsCondition::operator= | ( | const L1GtHfRingEtSumsCondition & | cp | ) |
Definition at line 73 of file L1GtHfRingEtSumsCondition.cc.
References copy(), and CommonMethods::cp().
|
overridevirtual |
print condition
Reimplemented from L1GtConditionEvaluation.
Definition at line 144 of file L1GtHfRingEtSumsCondition.cc.
References m_gtHfRingEtSumsTemplate, L1GtHfRingEtSumsTemplate::print(), and L1GtConditionEvaluation::print().
Referenced by L1GlobalTriggerGTL::run().
void L1GtHfRingEtSumsCondition::setGtHfRingEtSumsTemplate | ( | const L1GtHfRingEtSumsTemplate * | etTemplate | ) |
Definition at line 79 of file L1GtHfRingEtSumsCondition.cc.
References m_gtHfRingEtSumsTemplate.
void L1GtHfRingEtSumsCondition::setGtPSB | ( | const L1GlobalTriggerPSB * | ptrPSB | ) |
set the pointer to PSB
Definition at line 84 of file L1GtHfRingEtSumsCondition.cc.
References m_gtPSB.
|
private |
pointer to a L1GtHfRingEtSumsTemplate
Definition at line 74 of file L1GtHfRingEtSumsCondition.h.
Referenced by copy(), evaluateCondition(), gtHfRingEtSumsTemplate(), print(), and setGtHfRingEtSumsTemplate().
|
private |
pointer to PSB, to be able to get the trigger objects
Definition at line 77 of file L1GtHfRingEtSumsCondition.h.
Referenced by copy(), evaluateCondition(), gtPSB(), and setGtPSB().