#include <L1GtCaloCondition.h>
Public Member Functions | |
const bool | evaluateCondition () const override |
the core function to check if the condition matches More... | |
const L1GtCaloTemplate * | gtCaloTemplate () const |
get / set the pointer to a L1GtCondition 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... | |
const L1GlobalTriggerPSB * | gtPSB () const |
get / set the pointer to PSB More... | |
L1GtCaloCondition () | |
L1GtCaloCondition (const L1GtCondition *, const L1GlobalTriggerPSB *, const int nrL1NoIsoEG, const int nrL1IsoEG, const int nrL1CenJet, const int nrL1ForJet, const int nrL1TauJet, const int ifCaloEtaNumberBits) | |
from base template condition (from event setup usually) More... | |
L1GtCaloCondition (const L1GtCaloCondition &) | |
L1GtCaloCondition & | operator= (const L1GtCaloCondition &) |
void | print (std::ostream &myCout) const override |
print condition More... | |
void | setGtCaloTemplate (const L1GtCaloTemplate *) |
void | setGtCorrParDeltaPhiNrBins (const int &) |
void | setGtIfCaloEtaNumberBits (const int &) |
void | setGtPSB (const L1GlobalTriggerPSB *) |
set the pointer to PSB More... | |
~L1GtCaloCondition () override | |
Public Member Functions inherited from L1GtConditionEvaluation | |
bool | condLastResult () const |
get the latest result for the condition More... | |
int | condMaxNumberObjects () const |
void | evaluateConditionStoreResult () |
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... | |
L1GtConditionEvaluation () | |
constructor More... | |
void | setCondMaxNumberObjects (int condMaxNumberObjectsValue) |
void | setVerbosity (const int verbosity) |
virtual | ~L1GtConditionEvaluation () |
destructor More... | |
Private Member Functions | |
const bool | checkObjectParameter (const int iCondition, const L1GctCand &cand) const |
function to check a single object if it matches a condition More... | |
void | copy (const L1GtCaloCondition &cp) |
copy function for copy constructor and operator= More... | |
const L1GctCand * | getCandidate (const int indexCand) const |
load calo candidates More... | |
Private Attributes | |
unsigned int | m_corrParDeltaPhiNrBins |
const L1GtCaloTemplate * | m_gtCaloTemplate |
pointer to a L1GtCaloTemplate More... | |
const L1GlobalTriggerPSB * | m_gtPSB |
pointer to PSB, to be able to get the trigger objects More... | |
int | m_ifCaloEtaNumberBits |
number of bits for eta of calorimeter objects More... | |
Additional Inherited Members | |
Protected Member Functions inherited from L1GtConditionEvaluation | |
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 , class Type2 > | |
const bool | checkThreshold (const Type1 &threshold, const Type2 &value, const bool condGEqValue) const |
CombinationsInCond & | combinationsInCond () const |
get all the object combinations (to fill it...) More... | |
Protected Attributes inherited from L1GtConditionEvaluation | |
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... | |
Description: evaluation of a CondCalo condition.
Implementation: <TODO: enter implementation details>
Definition at line 35 of file L1GtCaloCondition.h.
L1GtCaloCondition::L1GtCaloCondition | ( | ) |
constructors default
Definition at line 48 of file L1GtCaloCondition.cc.
References m_corrParDeltaPhiNrBins, and m_ifCaloEtaNumberBits.
L1GtCaloCondition::L1GtCaloCondition | ( | const L1GtCondition * | caloTemplate, |
const L1GlobalTriggerPSB * | ptrPSB, | ||
const int | nrL1NoIsoEG, | ||
const int | nrL1IsoEG, | ||
const int | nrL1CenJet, | ||
const int | nrL1ForJet, | ||
const int | nrL1TauJet, | ||
const int | ifCaloEtaNumberBits | ||
) |
from base template condition (from event setup usually)
Definition at line 54 of file L1GtCaloCondition.cc.
References CenJet, ForJet, IsoEG, L1GtConditionEvaluation::m_condMaxNumberObjects, m_corrParDeltaPhiNrBins, m_gtCaloTemplate, NoIsoEG, L1GtCondition::objectType(), and TauJet.
L1GtCaloCondition::L1GtCaloCondition | ( | const L1GtCaloCondition & | cp | ) |
Definition at line 110 of file L1GtCaloCondition.cc.
References copy().
|
override |
Definition at line 113 of file L1GtCaloCondition.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 379 of file L1GtCaloCondition.cc.
References L1GtConditionEvaluation::checkBit(), L1GtConditionEvaluation::checkThreshold(), L1GtCondition::condGEq(), L1GctCand::empty(), L1GctCand::etaIndex(), L1GtCaloTemplate::ObjectParameter::etaRange, L1GtCaloTemplate::ObjectParameter::etThreshold, m_gtCaloTemplate, L1GtCondition::nrObjects(), L1GtCaloTemplate::objectParameter(), L1GctCand::phiIndex(), L1GtCaloTemplate::ObjectParameter::phiRange, and L1GctCand::rank().
Referenced by evaluateCondition().
|
private |
copy function for copy constructor and operator=
Definition at line 96 of file L1GtCaloCondition.cc.
References L1GtConditionEvaluation::condLastResult(), L1GtConditionEvaluation::condMaxNumberObjects(), L1GtConditionEvaluation::getCombinationsInCond(), gtCaloTemplate(), gtIfCaloEtaNumberBits(), gtPSB(), L1GtConditionEvaluation::m_combinationsInCond, L1GtConditionEvaluation::m_condLastResult, L1GtConditionEvaluation::m_condMaxNumberObjects, m_corrParDeltaPhiNrBins, m_gtCaloTemplate, m_gtPSB, m_ifCaloEtaNumberBits, and L1GtConditionEvaluation::m_verbosity.
Referenced by L1GtCaloCondition(), and operator=().
|
overridevirtual |
the core function to check if the condition matches
Implements L1GtConditionEvaluation.
Definition at line 140 of file L1GtCaloCondition.cc.
References funct::abs(), CenJet, L1GtConditionEvaluation::checkBit(), checkObjectParameter(), L1GtConditionEvaluation::combinationsInCond(), L1GtCaloTemplate::correlationParameter(), L1GtCaloTemplate::CorrelationParameter::deltaEtaRange, L1GtCaloTemplate::CorrelationParameter::deltaPhiRange, factorial(), ForJet, L1GlobalTriggerPSB::getCandL1CenJet(), L1GlobalTriggerPSB::getCandL1ForJet(), L1GlobalTriggerPSB::getCandL1IsoEG(), L1GlobalTriggerPSB::getCandL1NoIsoEG(), L1GlobalTriggerPSB::getCandL1TauJet(), mps_fire::i, IsoEG, LogTrace, m_corrParDeltaPhiNrBins, m_gtCaloTemplate, m_gtPSB, m_ifCaloEtaNumberBits, L1GtConditionEvaluation::m_verbosity, NoIsoEG, L1GtCondition::nrObjects(), L1GtCondition::objectType(), TauJet, and L1GtCondition::wsc().
|
private |
load calo candidates
Definition at line 342 of file L1GtCaloCondition.cc.
References CenJet, ForJet, L1GlobalTriggerPSB::getCandL1CenJet(), L1GlobalTriggerPSB::getCandL1ForJet(), L1GlobalTriggerPSB::getCandL1IsoEG(), L1GlobalTriggerPSB::getCandL1NoIsoEG(), L1GlobalTriggerPSB::getCandL1TauJet(), IsoEG, m_gtCaloTemplate, m_gtPSB, NoIsoEG, L1GtCondition::objectType(), and TauJet.
|
inline |
get / set the pointer to a L1GtCondition
Definition at line 69 of file L1GtCaloCondition.h.
References m_gtCaloTemplate.
Referenced by copy().
|
inline |
get / set maximum number of bins for the delta phi scales
Definition at line 84 of file L1GtCaloCondition.h.
References m_corrParDeltaPhiNrBins.
|
inline |
get / set the number of bits for eta of calorimeter objects
Definition at line 79 of file L1GtCaloCondition.h.
References m_ifCaloEtaNumberBits.
Referenced by copy().
|
inline |
get / set the pointer to PSB
Definition at line 74 of file L1GtCaloCondition.h.
References m_gtPSB.
Referenced by copy().
L1GtCaloCondition & L1GtCaloCondition::operator= | ( | const L1GtCaloCondition & | cp | ) |
Definition at line 118 of file L1GtCaloCondition.cc.
References copy().
|
overridevirtual |
print condition
Reimplemented from L1GtConditionEvaluation.
Definition at line 419 of file L1GtCaloCondition.cc.
References m_corrParDeltaPhiNrBins, m_gtCaloTemplate, m_ifCaloEtaNumberBits, L1GtConditionEvaluation::print(), and L1GtCaloTemplate::print().
Referenced by L1GtCorrelationCondition::evaluateCondition(), and L1GlobalTriggerGTL::run().
void L1GtCaloCondition::setGtCaloTemplate | ( | const L1GtCaloTemplate * | caloTempl | ) |
Definition at line 124 of file L1GtCaloCondition.cc.
References m_gtCaloTemplate.
void L1GtCaloCondition::setGtCorrParDeltaPhiNrBins | ( | const int & | corrParDeltaPhiNrBins | ) |
Definition at line 135 of file L1GtCaloCondition.cc.
References m_corrParDeltaPhiNrBins.
Referenced by L1GlobalTriggerGTL::run().
void L1GtCaloCondition::setGtIfCaloEtaNumberBits | ( | const int & | ifCaloEtaNumberBitsValue | ) |
Definition at line 130 of file L1GtCaloCondition.cc.
References m_ifCaloEtaNumberBits.
void L1GtCaloCondition::setGtPSB | ( | const L1GlobalTriggerPSB * | ptrPSB | ) |
set the pointer to PSB
Definition at line 127 of file L1GtCaloCondition.cc.
References m_gtPSB.
|
private |
Definition at line 109 of file L1GtCaloCondition.h.
Referenced by copy(), evaluateCondition(), gtCorrParDeltaPhiNrBins(), L1GtCaloCondition(), print(), and setGtCorrParDeltaPhiNrBins().
|
private |
pointer to a L1GtCaloTemplate
Definition at line 100 of file L1GtCaloCondition.h.
Referenced by checkObjectParameter(), copy(), evaluateCondition(), getCandidate(), gtCaloTemplate(), L1GtCaloCondition(), print(), and setGtCaloTemplate().
|
private |
pointer to PSB, to be able to get the trigger objects
Definition at line 103 of file L1GtCaloCondition.h.
Referenced by copy(), evaluateCondition(), getCandidate(), gtPSB(), and setGtPSB().
|
private |
number of bits for eta of calorimeter objects
Definition at line 106 of file L1GtCaloCondition.h.
Referenced by copy(), evaluateCondition(), gtIfCaloEtaNumberBits(), L1GtCaloCondition(), print(), and setGtIfCaloEtaNumberBits().