#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 , class Type2 > | |
const bool | checkCut (const Type1 &cutL, const Type2 &value, bool condGEqValue) const |
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 deltaEta 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 deltaPhi range More... | |
template<class Type1 > | |
const bool | checkRangeEta (const unsigned int bitNumber, const std::vector< Type1 > &windows, const unsigned int nEtaBits) const |
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 phi range and outside of a veto range More... | |
template<class Type1 > | |
const bool | checkRangeTfMuonIndex (const unsigned int bitNumber, const std::vector< Type1 > &windows) const |
check if a value is in a given muon track finder index range More... | |
template<class Type1 , class Type2 > | |
const bool | checkThreshold (const Type1 &thresholdL, const Type1 &thresholdH, const Type2 &value, bool condGEqValue) const |
template<class Type1 , class Type2 > | |
const bool | checkUnconstrainedPt (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 45 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 95 of file CaloCondition.cc.
References copy().
|
override |
Definition at line 98 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 452 of file CaloCondition.cc.
References CaloTemplate::ObjectParameter::displacedLUT, CaloTemplate::ObjectParameter::etaRange, CaloTemplate::ObjectParameter::etaWindows, CaloTemplate::ObjectParameter::etHighThreshold, CaloTemplate::ObjectParameter::etLowThreshold, CaloTemplate::ObjectParameter::indexHigh, CaloTemplate::ObjectParameter::indexLow, CaloTemplate::ObjectParameter::isolationLUT, LogDebug, CaloTemplate::ObjectParameter::phiRange, CaloTemplate::ObjectParameter::phiWindow1Lower, CaloTemplate::ObjectParameter::phiWindow1Upper, CaloTemplate::ObjectParameter::phiWindow2Lower, and CaloTemplate::ObjectParameter::phiWindow2Upper.
|
private |
copy function for copy constructor and operator=
Definition at line 81 of file CaloCondition.cc.
Referenced by CaloCondition().
|
overridevirtual |
the core function to check if the condition matches
Implements l1t::ConditionEvaluation.
Definition at line 125 of file CaloCondition.cc.
References BXVector< T >::at(), CaloTemplate::CorrelationParameter::deltaEtaRangeLower, CaloTemplate::CorrelationParameter::deltaEtaRangeUpper, CaloTemplate::CorrelationParameter::deltaPhiRangeLower, CaloTemplate::CorrelationParameter::deltaPhiRangeUpper, BXVector< T >::getLastBX(), l1t::gtEG, l1t::gtJet, l1t::gtTau, l1trig_cff::hwEta, l1trig_cff::hwPhi, mps_fire::i, dqmiolumiharvest::j, isotrackApplyRegressor::k, LogDebug, LogTrace, visualization-live-secondInstance_cfg::m, and BXVector< T >::size().
|
private |
load calo candidates
Definition at line 419 of file CaloCondition.cc.
References nano_mu_digi_cff::bx, l1t::gtEG, l1t::gtJet, and l1t::gtTau.
|
inline |
get / set the pointer to uGt GlobalBoard
Definition at line 75 of file CaloCondition.h.
References m_uGtB.
|
inline |
get / set the pointer to a Condition
Definition at line 70 of file CaloCondition.h.
References m_gtCaloTemplate.
|
inline |
get / set maximum number of bins for the delta phi scales
Definition at line 85 of file CaloCondition.h.
References m_corrParDeltaPhiNrBins.
|
inline |
get / set the number of bits for eta of calorimeter objects
Definition at line 80 of file CaloCondition.h.
References m_ifCaloEtaNumberBits.
l1t::CaloCondition & CaloCondition::operator= | ( | const CaloCondition & | cp | ) |
Definition at line 103 of file CaloCondition.cc.
References filterCSVwithJSON::copy.
|
overridevirtual |
print condition
Reimplemented from l1t::ConditionEvaluation.
Definition at line 553 of file CaloCondition.cc.
References l1t::ConditionEvaluation::print().
Referenced by l1t::CorrCondition::evaluateCondition(), l1t::CorrWithOverlapRemovalCondition::evaluateCondition(), and l1t::GlobalBoard::runGTL().
void CaloCondition::setGtCaloTemplate | ( | const CaloTemplate * | caloTempl | ) |
Definition at line 109 of file CaloCondition.cc.
void CaloCondition::setGtCorrParDeltaPhiNrBins | ( | const int & | corrParDeltaPhiNrBins | ) |
Definition at line 120 of file CaloCondition.cc.
void CaloCondition::setGtIfCaloEtaNumberBits | ( | const int & | ifCaloEtaNumberBitsValue | ) |
Definition at line 115 of file CaloCondition.cc.
void CaloCondition::setuGtB | ( | const GlobalBoard * | ptrGTB | ) |
set the pointer to uGT GlobalBoard
Definition at line 112 of file CaloCondition.cc.
|
private |
Definition at line 110 of file CaloCondition.h.
Referenced by CaloCondition(), and gtCorrParDeltaPhiNrBins().
|
private |
pointer to a CaloTemplate
Definition at line 101 of file CaloCondition.h.
Referenced by CaloCondition(), and gtCaloTemplate().
|
private |
number of bits for eta of calorimeter objects
Definition at line 107 of file CaloCondition.h.
Referenced by CaloCondition(), and gtIfCaloEtaNumberBits().
|
private |
pointer to uGt GlobalBoard, to be able to get the trigger objects
Definition at line 104 of file CaloCondition.h.
Referenced by getuGtB().