#include <MuCondition.h>
Public Member Functions | |
const bool | evaluateCondition (const int bxEval) const override |
the core function to check if the condition matches More... | |
const int | gtCorrParDeltaPhiNrBins () const |
get / set maximum number of bins for the delta phi scales More... | |
const GlobalBoard * | gtGTL () const |
get / set the pointer to GTL More... | |
const int | gtIfMuEtaNumberBits () const |
get / set the number of bits for eta of muon objects More... | |
const MuonTemplate * | gtMuonTemplate () const |
get / set the pointer to a Condition More... | |
MuCondition () | |
MuCondition (const GlobalCondition *, const GlobalBoard *, const int nrL1Mu, const int ifMuEtaNumberBits) | |
from base template condition (from event setup usually) More... | |
MuCondition (const MuCondition &) | |
MuCondition & | operator= (const MuCondition &) |
void | print (std::ostream &myCout) const override |
print condition More... | |
void | setGtCorrParDeltaPhiNrBins (const int &) |
void | setGtGTL (const GlobalBoard *) |
set the pointer to GTL More... | |
void | setGtIfMuEtaNumberBits (const int &) |
void | setGtMuonTemplate (const MuonTemplate *) |
~MuCondition () 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::Muon &cand, const unsigned int index) const |
function to check a single object if it matches a condition More... | |
void | copy (const MuCondition &cp) |
copy function for copy constructor and operator= More... | |
const l1t::Muon * | getCandidate (const int bx, const int indexCand) const |
load muon candidates More... | |
Private Attributes | |
unsigned int | m_corrParDeltaPhiNrBins |
const GlobalBoard * | m_gtGTL |
pointer to GTL, to be able to get the trigger objects More... | |
const MuonTemplate * | m_gtMuonTemplate |
pointer to a MuonTemplate More... | |
int | m_ifMuEtaNumberBits |
number of bits for eta of muon 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 MuCondition.h.
MuCondition::MuCondition | ( | ) |
constructors default
Definition at line 41 of file MuCondition.cc.
MuCondition::MuCondition | ( | const GlobalCondition * | muonTemplate, |
const GlobalBoard * | ptrGTL, | ||
const int | nrL1Mu, | ||
const int | ifMuEtaNumberBits | ||
) |
from base template condition (from event setup usually)
Definition at line 49 of file MuCondition.cc.
References l1t::ConditionEvaluation::m_condMaxNumberObjects, and m_corrParDeltaPhiNrBins.
MuCondition::MuCondition | ( | const MuCondition & | cp | ) |
Definition at line 78 of file MuCondition.cc.
References copy().
|
override |
Definition at line 84 of file MuCondition.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 357 of file MuCondition.cc.
References MuonTemplate::ObjectParameter::charge, l1t::ConditionEvaluation::checkIndex(), l1t::ConditionEvaluation::checkRangeEta(), l1t::ConditionEvaluation::checkRangePhi(), l1t::ConditionEvaluation::checkThreshold(), GlobalCondition::condGEq(), TauDecayModes::dec, MuonTemplate::ObjectParameter::enableIso, MuonTemplate::ObjectParameter::enableMip, MuonTemplate::ObjectParameter::etaRange, MuonTemplate::ObjectParameter::etaWindow1Lower, MuonTemplate::ObjectParameter::etaWindow1Upper, MuonTemplate::ObjectParameter::etaWindow2Lower, MuonTemplate::ObjectParameter::etaWindow2Upper, l1t::Muon::hwCharge(), l1t::Muon::hwEtaAtVtx(), l1t::L1Candidate::hwIso(), l1t::Muon::hwPhiAtVtx(), l1t::L1Candidate::hwPt(), l1t::L1Candidate::hwQual(), MuonTemplate::ObjectParameter::indexHigh, MuonTemplate::ObjectParameter::indexLow, MuonTemplate::ObjectParameter::isolationLUT, LogDebug, m_gtMuonTemplate, GlobalCondition::nrObjects(), MuonTemplate::objectParameter(), MuonTemplate::ObjectParameter::phiHigh, MuonTemplate::ObjectParameter::phiLow, MuonTemplate::ObjectParameter::phiWindow1Lower, MuonTemplate::ObjectParameter::phiWindow1Upper, MuonTemplate::ObjectParameter::phiWindow2Lower, MuonTemplate::ObjectParameter::phiWindow2Upper, MuonTemplate::ObjectParameter::ptHighThreshold, MuonTemplate::ObjectParameter::ptLowThreshold, MuonTemplate::ObjectParameter::qualityLUT, and MuonTemplate::ObjectParameter::requestIso.
Referenced by evaluateCondition(), and gtCorrParDeltaPhiNrBins().
|
private |
copy function for copy constructor and operator=
Definition at line 62 of file MuCondition.cc.
References l1t::ConditionEvaluation::condLastResult(), l1t::ConditionEvaluation::condMaxNumberObjects(), l1t::ConditionEvaluation::getCombinationsInCond(), gtGTL(), gtIfMuEtaNumberBits(), gtMuonTemplate(), l1t::ConditionEvaluation::m_combinationsInCond, l1t::ConditionEvaluation::m_condLastResult, l1t::ConditionEvaluation::m_condMaxNumberObjects, m_corrParDeltaPhiNrBins, m_gtGTL, m_gtMuonTemplate, m_ifMuEtaNumberBits, and l1t::ConditionEvaluation::m_verbosity.
Referenced by gtCorrParDeltaPhiNrBins(), MuCondition(), and operator=().
|
overridevirtual |
the core function to check if the condition matches
Implements l1t::ConditionEvaluation.
Definition at line 130 of file MuCondition.cc.
References BXVector< T >::at(), MuonTemplate::CorrelationParameter::chargeCorrelation, checkObjectParameter(), l1t::ConditionEvaluation::checkRangeDeltaEta(), l1t::ConditionEvaluation::checkRangeDeltaPhi(), l1t::ConditionEvaluation::combinationsInCond(), GlobalCondition::condRelativeBx(), MuonTemplate::correlationParameter(), MuonTemplate::CorrelationParameter::deltaEtaRangeLower, MuonTemplate::CorrelationParameter::deltaEtaRangeUpper, MuonTemplate::CorrelationParameter::deltaPhiRangeLower, MuonTemplate::CorrelationParameter::deltaPhiRangeUpper, l1t::GlobalBoard::getCandL1Mu(), BXVector< T >::getLastBX(), mps_fire::i, LogDebug, m_gtGTL, m_gtMuonTemplate, GlobalCondition::nrObjects(), BXVector< T >::size(), and GlobalCondition::wsc().
|
private |
load muon candidates
Definition at line 343 of file MuCondition.cc.
References l1t::GlobalBoard::getCandL1Mu(), and m_gtGTL.
Referenced by gtCorrParDeltaPhiNrBins().
|
inline |
get / set maximum number of bins for the delta phi scales
Definition at line 94 of file MuCondition.h.
References checkObjectParameter(), copy(), SimDataFormats::CaloAnalysis::cp, getCandidate(), m_corrParDeltaPhiNrBins, and setGtCorrParDeltaPhiNrBins().
|
inline |
get / set the pointer to GTL
Definition at line 78 of file MuCondition.h.
References m_gtGTL, and setGtGTL().
Referenced by copy().
|
inline |
get / set the number of bits for eta of muon objects
Definition at line 86 of file MuCondition.h.
References m_ifMuEtaNumberBits, and setGtIfMuEtaNumberBits().
Referenced by copy().
|
inline |
get / set the pointer to a Condition
Definition at line 71 of file MuCondition.h.
References m_gtMuonTemplate, and setGtMuonTemplate().
Referenced by copy().
l1t::MuCondition & MuCondition::operator= | ( | const MuCondition & | cp | ) |
Definition at line 91 of file MuCondition.cc.
References copy().
|
overridevirtual |
print condition
Reimplemented from l1t::ConditionEvaluation.
Definition at line 524 of file MuCondition.cc.
References m_corrParDeltaPhiNrBins, m_gtMuonTemplate, m_ifMuEtaNumberBits, l1t::ConditionEvaluation::print(), and MuonTemplate::print().
Referenced by l1t::CorrCondition::evaluateCondition(), l1t::CorrWithOverlapRemovalCondition::evaluateCondition(), and l1t::GlobalBoard::runGTL().
void MuCondition::setGtCorrParDeltaPhiNrBins | ( | const int & | corrParDeltaPhiNrBins | ) |
Definition at line 121 of file MuCondition.cc.
References m_corrParDeltaPhiNrBins.
Referenced by gtCorrParDeltaPhiNrBins().
void MuCondition::setGtGTL | ( | const GlobalBoard * | ptrGTL | ) |
set the pointer to GTL
Definition at line 105 of file MuCondition.cc.
References m_gtGTL.
Referenced by gtGTL().
void MuCondition::setGtIfMuEtaNumberBits | ( | const int & | ifMuEtaNumberBitsValue | ) |
Definition at line 113 of file MuCondition.cc.
References m_ifMuEtaNumberBits.
Referenced by gtIfMuEtaNumberBits().
void MuCondition::setGtMuonTemplate | ( | const MuonTemplate * | muonTempl | ) |
Definition at line 98 of file MuCondition.cc.
References m_gtMuonTemplate.
Referenced by gtMuonTemplate().
|
private |
Definition at line 125 of file MuCondition.h.
Referenced by copy(), gtCorrParDeltaPhiNrBins(), MuCondition(), print(), and setGtCorrParDeltaPhiNrBins().
|
private |
pointer to GTL, to be able to get the trigger objects
Definition at line 119 of file MuCondition.h.
Referenced by copy(), evaluateCondition(), getCandidate(), gtGTL(), and setGtGTL().
|
private |
pointer to a MuonTemplate
Definition at line 116 of file MuCondition.h.
Referenced by checkObjectParameter(), copy(), evaluateCondition(), gtMuonTemplate(), print(), and setGtMuonTemplate().
|
private |
number of bits for eta of muon objects
Definition at line 122 of file MuCondition.h.
Referenced by copy(), gtIfMuEtaNumberBits(), print(), and setGtIfMuEtaNumberBits().