#include <EnergySumCondition.h>
Public Member Functions | |
EnergySumCondition () | |
EnergySumCondition (const GlobalCondition *, const GlobalBoard *) | |
from base template condition (from event setup usually) More... | |
EnergySumCondition (const EnergySumCondition &) | |
const bool | evaluateCondition (const int bxEval) const override |
the core function to check if the condition matches More... | |
const GlobalBoard * | getuGtB () const |
get / set the pointer to uGt GlobalBoard More... | |
const EnergySumTemplate * | gtEnergySumTemplate () const |
get / set the pointer to a L1GtCondition More... | |
EnergySumCondition & | operator= (const EnergySumCondition &) |
void | print (std::ostream &myCout) const override |
print condition More... | |
void | setGtEnergySumTemplate (const EnergySumTemplate *) |
void | setuGtB (const GlobalBoard *) |
set the pointer to uGT GlobalBoard More... | |
~EnergySumCondition () override | |
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 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 EnergySumCondition.h.
EnergySumCondition::EnergySumCondition | ( | ) |
constructors default
Definition at line 36 of file EnergySumCondition.cc.
EnergySumCondition::EnergySumCondition | ( | const GlobalCondition * | eSumTemplate, |
const GlobalBoard * | ptrGTB | ||
) |
from base template condition (from event setup usually)
Definition at line 41 of file EnergySumCondition.cc.
References l1t::ConditionEvaluation::m_condMaxNumberObjects.
EnergySumCondition::EnergySumCondition | ( | const EnergySumCondition & | cp | ) |
Definition at line 65 of file EnergySumCondition.cc.
References copy().
|
override |
Definition at line 68 of file EnergySumCondition.cc.
|
private |
copy function for copy constructor and operator=
Definition at line 54 of file EnergySumCondition.cc.
References l1t::ConditionEvaluation::condLastResult(), l1t::ConditionEvaluation::condMaxNumberObjects(), l1t::ConditionEvaluation::getCombinationsInCond(), getuGtB(), gtEnergySumTemplate(), l1t::ConditionEvaluation::m_combinationsInCond, l1t::ConditionEvaluation::m_condLastResult, l1t::ConditionEvaluation::m_condMaxNumberObjects, m_gtEnergySumTemplate, m_uGtB, and l1t::ConditionEvaluation::m_verbosity.
Referenced by EnergySumCondition(), getuGtB(), and operator=().
|
overridevirtual |
the core function to check if the condition matches
Implements l1t::ConditionEvaluation.
Definition at line 87 of file EnergySumCondition.cc.
References BXVector< T >::at(), l1t::ConditionEvaluation::checkBit(), l1t::ConditionEvaluation::checkRangePhi(), l1t::ConditionEvaluation::checkThreshold(), hitfit::clear(), l1t::ConditionEvaluation::combinationsInCond(), GlobalCondition::condGEq(), GlobalCondition::condRelativeBx(), EnergySumTemplate::ObjectParameter::etHighThreshold, EnergySumTemplate::ObjectParameter::etLowThreshold, l1t::GlobalBoard::getCandL1EtSum(), BXVector< T >::getLastBX(), l1t::EtSum::getType(), l1t::gtAsymmetryEt, l1t::gtAsymmetryEtHF, l1t::gtAsymmetryHt, l1t::gtAsymmetryHtHF, l1t::gtCentrality0, l1t::gtCentrality1, l1t::gtCentrality2, l1t::gtCentrality3, l1t::gtCentrality4, l1t::gtCentrality5, l1t::gtCentrality6, l1t::gtCentrality7, l1t::gtETM, l1t::gtETMHF, l1t::gtETT, l1t::gtETTem, l1t::gtHTM, l1t::gtHTT, l1t::gtMinBiasHFM0, l1t::gtMinBiasHFM1, l1t::gtMinBiasHFP0, l1t::gtMinBiasHFP1, l1t::gtTowerCount, l1t::L1Candidate::hwPhi(), l1t::L1Candidate::hwPt(), L1Analysis::kAsymEt, L1Analysis::kAsymEtHF, L1Analysis::kAsymHt, L1Analysis::kAsymHtHF, L1Analysis::kCentrality, L1Analysis::kMinBiasHFM0, L1Analysis::kMinBiasHFM1, L1Analysis::kMinBiasHFP0, L1Analysis::kMinBiasHFP1, L1Analysis::kMissingEt, L1Analysis::kMissingEtHF, L1Analysis::kMissingHt, L1Analysis::kTotalEt, L1Analysis::kTotalEtEm, L1Analysis::kTotalHt, L1Analysis::kTowerCount, LogDebug, m_gtEnergySumTemplate, m_uGtB, EnergySumTemplate::objectParameter(), GlobalCondition::objectType(), EnergySumTemplate::ObjectParameter::phiWindow1Lower, EnergySumTemplate::ObjectParameter::phiWindow1Upper, EnergySumTemplate::ObjectParameter::phiWindow2Lower, EnergySumTemplate::ObjectParameter::phiWindow2Upper, and BXVector< T >::size().
|
inline |
get / set the pointer to uGt GlobalBoard
Definition at line 69 of file EnergySumCondition.h.
References copy(), SimDataFormats::CaloAnalysis::cp, m_uGtB, and setuGtB().
Referenced by copy().
|
inline |
get / set the pointer to a L1GtCondition
Definition at line 64 of file EnergySumCondition.h.
References m_gtEnergySumTemplate, and setGtEnergySumTemplate().
Referenced by copy().
l1t::EnergySumCondition & EnergySumCondition::operator= | ( | const EnergySumCondition & | cp | ) |
Definition at line 73 of file EnergySumCondition.cc.
References copy().
|
overridevirtual |
print condition
Reimplemented from l1t::ConditionEvaluation.
Definition at line 303 of file EnergySumCondition.cc.
References m_gtEnergySumTemplate, EnergySumTemplate::print(), and l1t::ConditionEvaluation::print().
Referenced by l1t::CorrCondition::evaluateCondition(), l1t::CorrWithOverlapRemovalCondition::evaluateCondition(), and l1t::GlobalBoard::runGTL().
void EnergySumCondition::setGtEnergySumTemplate | ( | const EnergySumTemplate * | eSumTempl | ) |
Definition at line 79 of file EnergySumCondition.cc.
References m_gtEnergySumTemplate.
Referenced by gtEnergySumTemplate().
void EnergySumCondition::setuGtB | ( | const GlobalBoard * | ptrGTB | ) |
set the pointer to uGT GlobalBoard
Definition at line 84 of file EnergySumCondition.cc.
References m_uGtB.
Referenced by getuGtB().
|
private |
pointer to a EnergySumTemplate
Definition at line 79 of file EnergySumCondition.h.
Referenced by copy(), evaluateCondition(), gtEnergySumTemplate(), print(), and setGtEnergySumTemplate().
|
private |
pointer to uGt GlobalBoard, to be able to get the trigger objects
Definition at line 82 of file EnergySumCondition.h.
Referenced by copy(), evaluateCondition(), getuGtB(), and setuGtB().