#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 |
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 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 46 of file MuCondition.cc.
References l1t::ConditionEvaluation::m_condMaxNumberObjects, and m_corrParDeltaPhiNrBins.
MuCondition::MuCondition | ( | const MuCondition & | cp | ) |
Definition at line 73 of file MuCondition.cc.
References copy().
|
override |
Definition at line 76 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 338 of file MuCondition.cc.
References MuonTemplate::ObjectParameter::charge, 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::hwDXY(), l1t::Muon::hwEtaAtVtx(), l1t::L1Candidate::hwIso(), l1t::Muon::hwPhiAtVtx(), l1t::L1Candidate::hwPt(), l1t::Muon::hwPtUnconstrained(), l1t::L1Candidate::hwQual(), MuonTemplate::ObjectParameter::impactParameterLUT, MuonTemplate::ObjectParameter::indexHigh, MuonTemplate::ObjectParameter::indexLow, MuonTemplate::ObjectParameter::isolationLUT, LogDebug, 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, MuonTemplate::ObjectParameter::requestIso, MuonTemplate::ObjectParameter::unconstrainedPtHigh, and MuonTemplate::ObjectParameter::unconstrainedPtLow.
|
private |
copy function for copy constructor and operator=
Definition at line 59 of file MuCondition.cc.
References l1t::ConditionEvaluation::condLastResult(), l1t::ConditionEvaluation::condMaxNumberObjects(), l1t::ConditionEvaluation::getCombinationsInCond(), gtGTL(), gtIfMuEtaNumberBits(), gtMuonTemplate(), m_corrParDeltaPhiNrBins, and l1t::ConditionEvaluation::m_verbosity.
Referenced by MuCondition().
|
overridevirtual |
the core function to check if the condition matches
Implements l1t::ConditionEvaluation.
Definition at line 103 of file MuCondition.cc.
References BXVector< T >::at(), MuonTemplate::CorrelationParameter::chargeCorrelation, MuonTemplate::CorrelationParameter::deltaEtaRangeLower, MuonTemplate::CorrelationParameter::deltaEtaRangeUpper, MuonTemplate::CorrelationParameter::deltaPhiRangeLower, MuonTemplate::CorrelationParameter::deltaPhiRangeUpper, BXVector< T >::getLastBX(), mps_fire::i, LogDebug, push_back(), and BXVector< T >::size().
|
private |
load muon candidates
Definition at line 325 of file MuCondition.cc.
|
inline |
get / set maximum number of bins for the delta phi scales
Definition at line 79 of file MuCondition.h.
References m_corrParDeltaPhiNrBins.
|
inline |
get / set the pointer to GTL
Definition at line 69 of file MuCondition.h.
References m_gtGTL.
Referenced by copy().
|
inline |
get / set the number of bits for eta of muon objects
Definition at line 74 of file MuCondition.h.
References m_ifMuEtaNumberBits.
Referenced by copy().
|
inline |
get / set the pointer to a Condition
Definition at line 64 of file MuCondition.h.
References m_gtMuonTemplate.
Referenced by copy().
l1t::MuCondition & MuCondition::operator= | ( | const MuCondition & | cp | ) |
Definition at line 81 of file MuCondition.cc.
References filterCSVwithJSON::copy.
|
overridevirtual |
print condition
Reimplemented from l1t::ConditionEvaluation.
Definition at line 525 of file MuCondition.cc.
References l1t::ConditionEvaluation::print().
Referenced by l1t::CorrCondition::evaluateCondition(), l1t::CorrThreeBodyCondition::evaluateCondition(), l1t::CorrWithOverlapRemovalCondition::evaluateCondition(), and l1t::GlobalBoard::runGTL().
void MuCondition::setGtCorrParDeltaPhiNrBins | ( | const int & | corrParDeltaPhiNrBins | ) |
Definition at line 98 of file MuCondition.cc.
void MuCondition::setGtGTL | ( | const GlobalBoard * | ptrGTL | ) |
set the pointer to GTL
Definition at line 90 of file MuCondition.cc.
void MuCondition::setGtIfMuEtaNumberBits | ( | const int & | ifMuEtaNumberBitsValue | ) |
Definition at line 93 of file MuCondition.cc.
void MuCondition::setGtMuonTemplate | ( | const MuonTemplate * | muonTempl | ) |
Definition at line 87 of file MuCondition.cc.
|
private |
Definition at line 104 of file MuCondition.h.
Referenced by copy(), gtCorrParDeltaPhiNrBins(), and MuCondition().
|
private |
pointer to GTL, to be able to get the trigger objects
Definition at line 98 of file MuCondition.h.
Referenced by gtGTL().
|
private |
pointer to a MuonTemplate
Definition at line 95 of file MuCondition.h.
Referenced by gtMuonTemplate().
|
private |
number of bits for eta of muon objects
Definition at line 101 of file MuCondition.h.
Referenced by gtIfMuEtaNumberBits().