#include <ExternalCondition.h>
Public Member Functions | |
const bool | evaluateCondition (const int bxEval) const |
the core function to check if the condition matches More... | |
ExternalCondition () | |
ExternalCondition (const GlobalCondition *, const GlobalBoard *) | |
from base template condition (from event setup usually) More... | |
ExternalCondition (const ExternalCondition &) | |
const GlobalBoard * | getuGtB () const |
get / set the pointer to uGt GlobalBoard More... | |
const ExternalTemplate * | gtExternalTemplate () const |
get / set the pointer to a L1GtCondition More... | |
ExternalCondition & | operator= (const ExternalCondition &) |
void | print (std::ostream &myCout) const |
print condition More... | |
void | setGtExternalTemplate (const ExternalTemplate *) |
void | setuGtB (const GlobalBoard *) |
set the pointer to uGT GlobalBoard More... | |
virtual | ~ExternalCondition () |
Public Member Functions inherited from l1t::ConditionEvaluation | |
ConditionEvaluation () | |
constructor More... | |
bool | condLastResult () const |
get the latest result for the condition More... | |
int | condMaxNumberObjects () const |
void | evaluateConditionStoreResult (const int bxEval) |
call evaluateCondition and save last result More... | |
CombinationsInCond const & | getCombinationsInCond () const |
get all the object combinations evaluated to true in the condition More... | |
virtual std::string | getNumericExpression () const |
get numeric expression More... | |
void | setCondMaxNumberObjects (int condMaxNumberObjectsValue) |
void | setVerbosity (const int verbosity) |
virtual | ~ConditionEvaluation () |
destructor More... | |
Private Member Functions | |
void | copy (const ExternalCondition &cp) |
copy function for copy constructor and operator= More... | |
Private Attributes | |
const ExternalTemplate * | m_gtExternalTemplate |
pointer to a ExternalTemplate More... | |
const GlobalBoard * | m_uGtB |
pointer to uGt GlobalBoard, to be able to get the trigger objects More... | |
Additional Inherited Members | |
Protected Member Functions inherited from l1t::ConditionEvaluation | |
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 > | |
const bool | checkIndex (const Type1 &indexLo, const Type1 &indexHi, const unsigned int index) const |
check if a index is in a given range More... | |
template<class Type1 > | |
const bool | checkRangeDeltaEta (const unsigned int obj1Eta, const unsigned int obj2Eta, const Type1 &lowerR, const Type1 &upperR, const unsigned int nEtaBits) const |
check if a value is in a given range More... | |
template<class Type1 > | |
const bool | checkRangeDeltaPhi (const unsigned int obj1Phi, const unsigned int obj2Phi, const Type1 &lowerR, const Type1 &upperR) const |
check if a value is in a given range More... | |
template<class Type1 > | |
const bool | checkRangeEta (const unsigned int bitNumber, const Type1 &W1beginR, const Type1 &W1endR, const Type1 &W2beginR, const Type1 &W2endR, const unsigned int nEtaBits) const |
check if a value is in a given range and outside of a veto range More... | |
template<class Type1 > | |
const bool | checkRangePhi (const unsigned int bitNumber, const Type1 &W1beginR, const Type1 &W1endR, const Type1 &W2beginR, const Type1 &W2endR) const |
check if a value is in a given range and outside of a veto range More... | |
template<class Type1 , class Type2 > | |
const bool | checkThreshold (const Type1 &thresholdL, const Type1 &thresholdH, const Type2 &value, bool condGEqValue) const |
CombinationsInCond & | combinationsInCond () const |
get all the object combinations (to fill it...) More... | |
Protected Attributes inherited from l1t::ConditionEvaluation | |
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... | |
Definition at line 37 of file ExternalCondition.h.
ExternalCondition::ExternalCondition | ( | ) |
constructors default
Definition at line 38 of file ExternalCondition.cc.
ExternalCondition::ExternalCondition | ( | const GlobalCondition * | eSumTemplate, |
const GlobalBoard * | ptrGTB | ||
) |
from base template condition (from event setup usually)
Definition at line 46 of file ExternalCondition.cc.
References l1t::ConditionEvaluation::m_condMaxNumberObjects.
ExternalCondition::ExternalCondition | ( | const ExternalCondition & | cp | ) |
Definition at line 74 of file ExternalCondition.cc.
References copy().
|
virtual |
Definition at line 82 of file ExternalCondition.cc.
|
private |
copy function for copy constructor and operator=
Definition at line 61 of file ExternalCondition.cc.
References l1t::ConditionEvaluation::condLastResult(), l1t::ConditionEvaluation::condMaxNumberObjects(), l1t::ConditionEvaluation::getCombinationsInCond(), getuGtB(), gtExternalTemplate(), l1t::ConditionEvaluation::m_combinationsInCond, l1t::ConditionEvaluation::m_condLastResult, l1t::ConditionEvaluation::m_condMaxNumberObjects, m_gtExternalTemplate, m_uGtB, and l1t::ConditionEvaluation::m_verbosity.
Referenced by ExternalCondition(), getuGtB(), and operator=().
|
virtual |
the core function to check if the condition matches
Implements l1t::ConditionEvaluation.
Definition at line 110 of file ExternalCondition.cc.
References BXVector< T >::at(), hitfit::clear(), l1t::ConditionEvaluation::combinationsInCond(), GlobalCondition::condName(), GlobalCondition::condRelativeBx(), ExternalTemplate::extChannel(), l1t::GlobalBoard::getCandL1External(), GlobalExtBlk::getExternalDecision(), BXVector< T >::getLastBX(), LogDebug, m_gtExternalTemplate, m_uGtB, and BXVector< T >::size().
|
inline |
get / set the pointer to uGt GlobalBoard
Definition at line 76 of file ExternalCondition.h.
References copy(), SimDataFormats::CaloAnalysis::cp, m_uGtB, and setuGtB().
Referenced by copy().
|
inline |
get / set the pointer to a L1GtCondition
Definition at line 69 of file ExternalCondition.h.
References m_gtExternalTemplate, and setGtExternalTemplate().
Referenced by copy().
l1t::ExternalCondition & ExternalCondition::operator= | ( | const ExternalCondition & | cp | ) |
Definition at line 89 of file ExternalCondition.cc.
References copy().
|
virtual |
print condition
Reimplemented from l1t::ConditionEvaluation.
Definition at line 179 of file ExternalCondition.cc.
References m_gtExternalTemplate, ExternalTemplate::print(), and l1t::ConditionEvaluation::print().
Referenced by l1t::GlobalBoard::runGTL().
void ExternalCondition::setGtExternalTemplate | ( | const ExternalTemplate * | eSumTempl | ) |
Definition at line 96 of file ExternalCondition.cc.
References m_gtExternalTemplate.
Referenced by gtExternalTemplate().
void ExternalCondition::setuGtB | ( | const GlobalBoard * | ptrGTB | ) |
set the pointer to uGT GlobalBoard
Definition at line 103 of file ExternalCondition.cc.
References m_uGtB.
Referenced by getuGtB().
|
private |
pointer to a ExternalTemplate
Definition at line 90 of file ExternalCondition.h.
Referenced by copy(), evaluateCondition(), gtExternalTemplate(), print(), and setGtExternalTemplate().
|
private |
pointer to uGt GlobalBoard, to be able to get the trigger objects
Definition at line 93 of file ExternalCondition.h.
Referenced by copy(), evaluateCondition(), getuGtB(), and setuGtB().