#include <CaloCondition.h>
Public Member Functions | |
CaloCondition () | |
CaloCondition (const GlobalCondition *, const GlobalBoard *, const int nrL1EG, const int nrL1Jet, const int nrL1Tau, const int ifCaloEtaNumberBits) | |
from base template condition (from event setup usually) More... | |
CaloCondition (const CaloCondition &) | |
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 CaloTemplate * | gtCaloTemplate () const |
get / set the pointer to a Condition More... | |
const int | gtCorrParDeltaPhiNrBins () const |
get / set maximum number of bins for the delta phi scales More... | |
const int | gtIfCaloEtaNumberBits () const |
get / set the number of bits for eta of calorimeter objects More... | |
CaloCondition & | operator= (const CaloCondition &) |
void | print (std::ostream &myCout) const override |
print condition More... | |
void | setGtCaloTemplate (const CaloTemplate *) |
void | setGtCorrParDeltaPhiNrBins (const int &) |
void | setGtIfCaloEtaNumberBits (const int &) |
void | setuGtB (const GlobalBoard *) |
set the pointer to uGT GlobalBoard More... | |
~CaloCondition () 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 | |
const bool | checkObjectParameter (const int iCondition, const l1t::L1Candidate &cand, const unsigned int index) const |
function to check a single object if it matches a condition More... | |
void | copy (const CaloCondition &cp) |
copy function for copy constructor and operator= More... | |
const l1t::L1Candidate * | getCandidate (const int bx, const int indexCand) const |
load calo candidates More... | |
Private Attributes | |
unsigned int | m_corrParDeltaPhiNrBins |
const CaloTemplate * | m_gtCaloTemplate |
pointer to a CaloTemplate More... | |
int | m_ifCaloEtaNumberBits |
number of bits for eta of calorimeter objects 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 38 of file CaloCondition.h.
CaloCondition::CaloCondition | ( | ) |
constructors default
Definition at line 39 of file CaloCondition.cc.
References m_corrParDeltaPhiNrBins, and m_ifCaloEtaNumberBits.
CaloCondition::CaloCondition | ( | const GlobalCondition * | caloTemplate, |
const GlobalBoard * | ptrGTB, | ||
const int | nrL1EG, | ||
const int | nrL1Jet, | ||
const int | nrL1Tau, | ||
const int | ifCaloEtaNumberBits | ||
) |
from base template condition (from event setup usually)
Definition at line 48 of file CaloCondition.cc.
References l1t::gtEG, l1t::gtJet, l1t::gtTau, l1t::ConditionEvaluation::m_condMaxNumberObjects, m_corrParDeltaPhiNrBins, m_gtCaloTemplate, and GlobalCondition::objectType().
CaloCondition::CaloCondition | ( | const CaloCondition & | cp | ) |
Definition at line 102 of file CaloCondition.cc.
References copy().
|
override |
Definition at line 110 of file CaloCondition.cc.
|
private |
function to check a single object if it matches a condition
checkObjectParameter - Compare a single particle with a numbered condition.
iCondition | The number of the condition. |
cand | The candidate to compare. |
Definition at line 493 of file CaloCondition.cc.
References l1t::ConditionEvaluation::checkIndex(), l1t::ConditionEvaluation::checkRangeEta(), l1t::ConditionEvaluation::checkRangePhi(), l1t::ConditionEvaluation::checkThreshold(), GlobalCondition::condGEq(), GlobalCondition::condRelativeBx(), CaloTemplate::ObjectParameter::etaRange, CaloTemplate::ObjectParameter::etaWindow1Lower, CaloTemplate::ObjectParameter::etaWindow1Upper, CaloTemplate::ObjectParameter::etaWindow2Lower, CaloTemplate::ObjectParameter::etaWindow2Upper, CaloTemplate::ObjectParameter::etHighThreshold, CaloTemplate::ObjectParameter::etLowThreshold, l1t::L1Candidate::hwEta(), l1t::L1Candidate::hwIso(), l1t::L1Candidate::hwPhi(), l1t::L1Candidate::hwPt(), CaloTemplate::ObjectParameter::indexHigh, CaloTemplate::ObjectParameter::indexLow, CaloTemplate::ObjectParameter::isolationLUT, LogDebug, m_gtCaloTemplate, GlobalCondition::nrObjects(), CaloTemplate::objectParameter(), CaloTemplate::ObjectParameter::phiRange, CaloTemplate::ObjectParameter::phiWindow1Lower, CaloTemplate::ObjectParameter::phiWindow1Upper, CaloTemplate::ObjectParameter::phiWindow2Lower, and CaloTemplate::ObjectParameter::phiWindow2Upper.
Referenced by evaluateCondition(), and gtCorrParDeltaPhiNrBins().
|
private |
copy function for copy constructor and operator=
Definition at line 86 of file CaloCondition.cc.
References l1t::ConditionEvaluation::condLastResult(), l1t::ConditionEvaluation::condMaxNumberObjects(), l1t::ConditionEvaluation::getCombinationsInCond(), getuGtB(), gtCaloTemplate(), gtIfCaloEtaNumberBits(), l1t::ConditionEvaluation::m_combinationsInCond, l1t::ConditionEvaluation::m_condLastResult, l1t::ConditionEvaluation::m_condMaxNumberObjects, m_corrParDeltaPhiNrBins, m_gtCaloTemplate, m_ifCaloEtaNumberBits, m_uGtB, and l1t::ConditionEvaluation::m_verbosity.
Referenced by CaloCondition(), gtCorrParDeltaPhiNrBins(), and operator=().
|
overridevirtual |
the core function to check if the condition matches
Implements l1t::ConditionEvaluation.
Definition at line 152 of file CaloCondition.cc.
References BXVector< T >::at(), checkObjectParameter(), l1t::ConditionEvaluation::checkRangeDeltaEta(), l1t::ConditionEvaluation::checkRangeDeltaPhi(), l1t::ConditionEvaluation::combinationsInCond(), GlobalCondition::condRelativeBx(), CaloTemplate::correlationParameter(), CaloTemplate::CorrelationParameter::deltaEtaRangeLower, CaloTemplate::CorrelationParameter::deltaEtaRangeUpper, CaloTemplate::CorrelationParameter::deltaPhiRangeLower, CaloTemplate::CorrelationParameter::deltaPhiRangeUpper, l1t::GlobalBoard::getCandL1EG(), l1t::GlobalBoard::getCandL1Jet(), l1t::GlobalBoard::getCandL1Tau(), BXVector< T >::getLastBX(), l1t::gtEG, l1t::gtJet, l1t::gtTau, mps_fire::i, diffTreeTool::index, gen::k, LogDebug, LogTrace, funct::m, m_gtCaloTemplate, m_uGtB, l1t::ConditionEvaluation::m_verbosity, GlobalCondition::nrObjects(), GlobalCondition::objectType(), BXVector< T >::size(), and GlobalCondition::wsc().
|
private |
load calo candidates
Definition at line 459 of file CaloCondition.cc.
References l1t::GlobalBoard::getCandL1EG(), l1t::GlobalBoard::getCandL1Jet(), l1t::GlobalBoard::getCandL1Tau(), l1t::gtEG, l1t::gtJet, l1t::gtTau, m_gtCaloTemplate, m_uGtB, and GlobalCondition::objectType().
Referenced by gtCorrParDeltaPhiNrBins().
|
inline |
get / set the pointer to uGt GlobalBoard
Definition at line 81 of file CaloCondition.h.
References m_uGtB, and setuGtB().
Referenced by copy().
|
inline |
get / set the pointer to a Condition
Definition at line 74 of file CaloCondition.h.
References m_gtCaloTemplate, and setGtCaloTemplate().
Referenced by copy().
|
inline |
get / set maximum number of bins for the delta phi scales
Definition at line 96 of file CaloCondition.h.
References checkObjectParameter(), copy(), SimDataFormats::CaloAnalysis::cp, getCandidate(), diffTreeTool::index, m_corrParDeltaPhiNrBins, and setGtCorrParDeltaPhiNrBins().
|
inline |
get / set the number of bits for eta of calorimeter objects
Definition at line 89 of file CaloCondition.h.
References m_ifCaloEtaNumberBits, and setGtIfCaloEtaNumberBits().
Referenced by copy().
l1t::CaloCondition & CaloCondition::operator= | ( | const CaloCondition & | cp | ) |
Definition at line 117 of file CaloCondition.cc.
References copy().
|
overridevirtual |
print condition
Reimplemented from l1t::ConditionEvaluation.
Definition at line 579 of file CaloCondition.cc.
References m_corrParDeltaPhiNrBins, m_gtCaloTemplate, m_ifCaloEtaNumberBits, l1t::ConditionEvaluation::print(), and CaloTemplate::print().
Referenced by l1t::CorrCondition::evaluateCondition(), l1t::CorrWithOverlapRemovalCondition::evaluateCondition(), and l1t::GlobalBoard::runGTL().
void CaloCondition::setGtCaloTemplate | ( | const CaloTemplate * | caloTempl | ) |
Definition at line 123 of file CaloCondition.cc.
References m_gtCaloTemplate.
Referenced by gtCaloTemplate().
void CaloCondition::setGtCorrParDeltaPhiNrBins | ( | const int & | corrParDeltaPhiNrBins | ) |
Definition at line 144 of file CaloCondition.cc.
References m_corrParDeltaPhiNrBins.
Referenced by gtCorrParDeltaPhiNrBins().
void CaloCondition::setGtIfCaloEtaNumberBits | ( | const int & | ifCaloEtaNumberBitsValue | ) |
Definition at line 137 of file CaloCondition.cc.
References m_ifCaloEtaNumberBits.
Referenced by gtIfCaloEtaNumberBits().
void CaloCondition::setuGtB | ( | const GlobalBoard * | ptrGTB | ) |
set the pointer to uGT GlobalBoard
Definition at line 130 of file CaloCondition.cc.
References m_uGtB.
Referenced by getuGtB().
|
private |
Definition at line 126 of file CaloCondition.h.
Referenced by CaloCondition(), copy(), gtCorrParDeltaPhiNrBins(), print(), and setGtCorrParDeltaPhiNrBins().
|
private |
pointer to a CaloTemplate
Definition at line 117 of file CaloCondition.h.
Referenced by CaloCondition(), checkObjectParameter(), copy(), evaluateCondition(), getCandidate(), gtCaloTemplate(), print(), and setGtCaloTemplate().
|
private |
number of bits for eta of calorimeter objects
Definition at line 123 of file CaloCondition.h.
Referenced by CaloCondition(), copy(), gtIfCaloEtaNumberBits(), print(), and setGtIfCaloEtaNumberBits().
|
private |
pointer to uGt GlobalBoard, to be able to get the trigger objects
Definition at line 120 of file CaloCondition.h.
Referenced by copy(), evaluateCondition(), getCandidate(), getuGtB(), and setuGtB().