#include <EnergySumCondition.h>
Public Member Functions | |
EnergySumCondition () | |
EnergySumCondition (const GtCondition *, const GtBoard *) | |
from base template condition (from event setup usually) More... | |
EnergySumCondition (const EnergySumCondition &) | |
const bool | evaluateCondition (const int bxEval) const |
the core function to check if the condition matches More... | |
const GtBoard * | getuGtB () const |
get / set the pointer to uGt GtBoard More... | |
const EnergySumTemplate * | gtEnergySumTemplate () const |
get / set the pointer to a L1GtCondition More... | |
EnergySumCondition & | operator= (const EnergySumCondition &) |
void | print (std::ostream &myCout) const |
print condition More... | |
void | setGtEnergySumTemplate (const EnergySumTemplate *) |
void | setuGtB (const GtBoard *) |
set the pointer to uGT GtBoard More... | |
virtual | ~EnergySumCondition () |
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 EnergySumCondition &cp) |
copy function for copy constructor and operator= More... | |
Private Attributes | |
const EnergySumTemplate * | m_gtEnergySumTemplate |
pointer to a EnergySumTemplate More... | |
const GtBoard * | m_uGtB |
pointer to uGt GtBoard, 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 | 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 &beginR, const Type1 &endR, const Type1 &beginVetoR, const Type1 &endVetoR, 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 &beginR, const Type1 &endR, const Type1 &beginVetoR, const Type1 &endVetoR) 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 &threshold, 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 EnergySumCondition.h.
EnergySumCondition::EnergySumCondition | ( | ) |
constructors default
Definition at line 49 of file EnergySumCondition.cc.
EnergySumCondition::EnergySumCondition | ( | const GtCondition * | eSumTemplate, |
const GtBoard * | ptrGTB | ||
) |
from base template condition (from event setup usually)
Definition at line 57 of file EnergySumCondition.cc.
References l1t::ConditionEvaluation::m_condMaxNumberObjects.
EnergySumCondition::EnergySumCondition | ( | const EnergySumCondition & | cp | ) |
Definition at line 85 of file EnergySumCondition.cc.
References copy().
|
virtual |
Definition at line 93 of file EnergySumCondition.cc.
|
private |
copy function for copy constructor and operator=
Definition at line 72 of file EnergySumCondition.cc.
References l1t::ConditionEvaluation::condLastResult(), l1t::ConditionEvaluation::condMaxNumberObjects(), l1t::ConditionEvaluation::getCombinationsInCond(), getuGtB(), gtEnergySumTemplate(), and l1t::ConditionEvaluation::m_verbosity.
Referenced by EnergySumCondition().
|
virtual |
the core function to check if the condition matches
Implements l1t::ConditionEvaluation.
Definition at line 121 of file EnergySumCondition.cc.
References BXVector< T >::at(), hitfit::clear(), ETM, ETT, EnergySumTemplate::ObjectParameter::etThreshold, BXVector< T >::getLastBX(), l1t::EtSum::getType(), HTM, HTT, l1t::L1Candidate::hwPhi(), l1t::L1Candidate::hwPt(), LogDebug, EnergySumTemplate::ObjectParameter::phiWindowLower, EnergySumTemplate::ObjectParameter::phiWindowUpper, EnergySumTemplate::ObjectParameter::phiWindowVetoLower, and BXVector< T >::size().
|
inline |
get / set the pointer to uGt GtBoard
Definition at line 76 of file EnergySumCondition.h.
References m_uGtB.
Referenced by copy().
|
inline |
get / set the pointer to a L1GtCondition
Definition at line 69 of file EnergySumCondition.h.
References m_gtEnergySumTemplate.
Referenced by copy().
l1t::EnergySumCondition & EnergySumCondition::operator= | ( | const EnergySumCondition & | cp | ) |
Definition at line 100 of file EnergySumCondition.cc.
References filterCSVwithJSON::copy.
|
virtual |
print condition
Reimplemented from l1t::ConditionEvaluation.
Definition at line 248 of file EnergySumCondition.cc.
References l1t::ConditionEvaluation::print().
Referenced by l1t::GtBoard::runGTL().
void EnergySumCondition::setGtEnergySumTemplate | ( | const EnergySumTemplate * | eSumTempl | ) |
Definition at line 107 of file EnergySumCondition.cc.
void EnergySumCondition::setuGtB | ( | const GtBoard * | ptrGTB | ) |
set the pointer to uGT GtBoard
Definition at line 114 of file EnergySumCondition.cc.
|
private |
pointer to a EnergySumTemplate
Definition at line 90 of file EnergySumCondition.h.
Referenced by gtEnergySumTemplate().
|
private |
pointer to uGt GtBoard, to be able to get the trigger objects
Definition at line 93 of file EnergySumCondition.h.
Referenced by getuGtB().