#include <CaloCondition.h>
Public Member Functions | |
CaloCondition () | |
CaloCondition (const GtCondition *, const GtBoard *, 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 |
the core function to check if the condition matches More... | |
const GtBoard * | getuGtB () const |
get / set the pointer to uGt GtBoard 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 |
print condition More... | |
void | setGtCaloTemplate (const CaloTemplate *) |
void | setGtCorrParDeltaPhiNrBins (const int &) |
void | setGtIfCaloEtaNumberBits (const int &) |
void | setuGtB (const GtBoard *) |
set the pointer to uGT GtBoard More... | |
virtual | ~CaloCondition () |
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 |
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 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 |
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 |
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 CaloCondition.h.
CaloCondition::CaloCondition | ( | ) |
constructors default
Definition at line 48 of file CaloCondition.cc.
References m_corrParDeltaPhiNrBins, and m_ifCaloEtaNumberBits.
CaloCondition::CaloCondition | ( | const GtCondition * | caloTemplate, |
const GtBoard * | ptrGTB, | ||
const int | nrL1EG, | ||
const int | nrL1Jet, | ||
const int | nrL1Tau, | ||
const int | ifCaloEtaNumberBits | ||
) |
from base template condition (from event setup usually)
Definition at line 57 of file CaloCondition.cc.
References CenJet, l1t::ConditionEvaluation::m_condMaxNumberObjects, m_corrParDeltaPhiNrBins, m_gtCaloTemplate, NoIsoEG, GtCondition::objectType(), and TauJet.
CaloCondition::CaloCondition | ( | const CaloCondition & | cp | ) |
Definition at line 117 of file CaloCondition.cc.
References copy().
|
virtual |
Definition at line 125 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 509 of file CaloCondition.cc.
References CaloTemplate::ObjectParameter::etaRange, CaloTemplate::ObjectParameter::etaWindowLower, CaloTemplate::ObjectParameter::etaWindowUpper, CaloTemplate::ObjectParameter::etaWindowVetoLower, CaloTemplate::ObjectParameter::etThreshold, l1t::L1Candidate::hwEta(), l1t::L1Candidate::hwPhi(), l1t::L1Candidate::hwPt(), LogDebug, CaloTemplate::ObjectParameter::phiRange, CaloTemplate::ObjectParameter::phiWindowLower, CaloTemplate::ObjectParameter::phiWindowUpper, and CaloTemplate::ObjectParameter::phiWindowVetoLower.
|
private |
copy function for copy constructor and operator=
Definition at line 101 of file CaloCondition.cc.
References l1t::ConditionEvaluation::condLastResult(), l1t::ConditionEvaluation::condMaxNumberObjects(), l1t::ConditionEvaluation::getCombinationsInCond(), getuGtB(), gtCaloTemplate(), gtIfCaloEtaNumberBits(), m_corrParDeltaPhiNrBins, and l1t::ConditionEvaluation::m_verbosity.
Referenced by CaloCondition().
|
virtual |
the core function to check if the condition matches
Implements l1t::ConditionEvaluation.
Definition at line 167 of file CaloCondition.cc.
References BXVector< T >::at(), CenJet, CaloTemplate::CorrelationParameter::deltaEtaRangeLower, CaloTemplate::CorrelationParameter::deltaEtaRangeUpper, CaloTemplate::CorrelationParameter::deltaPhiRangeLower, CaloTemplate::CorrelationParameter::deltaPhiRangeUpper, BXVector< T >::getLastBX(), i, getHLTprescales::index, j, gen::k, LogDebug, LogTrace, m, NoIsoEG, BXVector< T >::size(), and TauJet.
|
private |
load calo candidates
Definition at line 475 of file CaloCondition.cc.
References asciidump::at, CenJet, NoIsoEG, and TauJet.
|
inline |
get / set the pointer to uGt GtBoard
Definition at line 80 of file CaloCondition.h.
References m_uGtB.
Referenced by copy().
|
inline |
get / set the pointer to a Condition
Definition at line 73 of file CaloCondition.h.
References m_gtCaloTemplate.
Referenced by copy().
|
inline |
get / set maximum number of bins for the delta phi scales
Definition at line 95 of file CaloCondition.h.
References m_corrParDeltaPhiNrBins.
|
inline |
get / set the number of bits for eta of calorimeter objects
Definition at line 88 of file CaloCondition.h.
References m_ifCaloEtaNumberBits.
Referenced by copy().
l1t::CaloCondition & CaloCondition::operator= | ( | const CaloCondition & | cp | ) |
Definition at line 132 of file CaloCondition.cc.
References filterCSVwithJSON::copy.
|
virtual |
print condition
Reimplemented from l1t::ConditionEvaluation.
Definition at line 576 of file CaloCondition.cc.
References l1t::ConditionEvaluation::print().
Referenced by l1t::GtBoard::runGTL().
void CaloCondition::setGtCaloTemplate | ( | const CaloTemplate * | caloTempl | ) |
Definition at line 138 of file CaloCondition.cc.
void CaloCondition::setGtCorrParDeltaPhiNrBins | ( | const int & | corrParDeltaPhiNrBins | ) |
Definition at line 159 of file CaloCondition.cc.
void CaloCondition::setGtIfCaloEtaNumberBits | ( | const int & | ifCaloEtaNumberBitsValue | ) |
Definition at line 152 of file CaloCondition.cc.
void CaloCondition::setuGtB | ( | const GtBoard * | ptrGTB | ) |
set the pointer to uGT GtBoard
Definition at line 145 of file CaloCondition.cc.
|
private |
Definition at line 125 of file CaloCondition.h.
Referenced by CaloCondition(), copy(), and gtCorrParDeltaPhiNrBins().
|
private |
pointer to a CaloTemplate
Definition at line 116 of file CaloCondition.h.
Referenced by CaloCondition(), and gtCaloTemplate().
|
private |
number of bits for eta of calorimeter objects
Definition at line 122 of file CaloCondition.h.
Referenced by CaloCondition(), and gtIfCaloEtaNumberBits().
|
private |
pointer to uGt GtBoard, to be able to get the trigger objects
Definition at line 119 of file CaloCondition.h.
Referenced by getuGtB().