#include <MuCondition.h>
Public Member Functions | |
const bool | evaluateCondition (const int bxEval) const |
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 GtBoard * | 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 GtCondition *, const GtBoard *, 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 |
print condition More... | |
void | setGtCorrParDeltaPhiNrBins (const int &) |
void | setGtGTL (const GtBoard *) |
set the pointer to GTL More... | |
void | setGtIfMuEtaNumberBits (const int &) |
void | setGtMuonTemplate (const MuonTemplate *) |
virtual | ~MuCondition () |
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 |
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 GtBoard * | 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 | 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 &beginR, const Type1 &endR, const Type1 &beginVetoR, const Type1 &endVetoR, 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 &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 36 of file MuCondition.h.
MuCondition::MuCondition | ( | ) |
constructors default
Definition at line 43 of file MuCondition.cc.
MuCondition::MuCondition | ( | const GtCondition * | muonTemplate, |
const GtBoard * | ptrGTL, | ||
const int | nrL1Mu, | ||
const int | ifMuEtaNumberBits | ||
) |
from base template condition (from event setup usually)
Definition at line 51 of file MuCondition.cc.
References l1t::ConditionEvaluation::m_condMaxNumberObjects, and m_corrParDeltaPhiNrBins.
MuCondition::MuCondition | ( | const MuCondition & | cp | ) |
Definition at line 80 of file MuCondition.cc.
References copy().
|
virtual |
Definition at line 86 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 350 of file MuCondition.cc.
References MuonTemplate::ObjectParameter::charge, MuonTemplate::ObjectParameter::enableIso, MuonTemplate::ObjectParameter::enableMip, MuonTemplate::ObjectParameter::etaRange, MuonTemplate::ObjectParameter::etaWindowLower, MuonTemplate::ObjectParameter::etaWindowUpper, MuonTemplate::ObjectParameter::etaWindowVetoLower, l1t::Muon::hwCharge(), l1t::L1Candidate::hwEta(), l1t::L1Candidate::hwIso(), l1t::L1Candidate::hwPhi(), l1t::L1Candidate::hwPt(), l1t::L1Candidate::hwQual(), MuonTemplate::ObjectParameter::isolationLUT, LogDebug, MuonTemplate::ObjectParameter::phiHigh, MuonTemplate::ObjectParameter::phiLow, MuonTemplate::ObjectParameter::phiWindowLower, MuonTemplate::ObjectParameter::phiWindowUpper, MuonTemplate::ObjectParameter::phiWindowVetoLower, MuonTemplate::ObjectParameter::ptHighThreshold, MuonTemplate::ObjectParameter::ptLowThreshold, MuonTemplate::ObjectParameter::qualityLUT, and MuonTemplate::ObjectParameter::requestIso.
|
private |
copy function for copy constructor and operator=
Definition at line 64 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().
|
virtual |
the core function to check if the condition matches
Implements l1t::ConditionEvaluation.
Definition at line 132 of file MuCondition.cc.
References BXVector< T >::at(), RecoTauCleanerPlugins::charge, MuonTemplate::CorrelationParameter::chargeCorrelation, MuonTemplate::CorrelationParameter::deltaEtaRangeLower, MuonTemplate::CorrelationParameter::deltaEtaRangeUpper, MuonTemplate::CorrelationParameter::deltaPhiRangeLower, MuonTemplate::CorrelationParameter::deltaPhiRangeUpper, BXVector< T >::getLastBX(), i, cmsHarvester::index, LogDebug, and BXVector< T >::size().
|
private |
load muon candidates
Definition at line 336 of file MuCondition.cc.
References asciidump::at.
|
inline |
get / set maximum number of bins for the delta phi scales
Definition at line 93 of file MuCondition.h.
References m_corrParDeltaPhiNrBins.
|
inline |
get / set the pointer to GTL
Definition at line 77 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 85 of file MuCondition.h.
References m_ifMuEtaNumberBits.
Referenced by copy().
|
inline |
get / set the pointer to a Condition
Definition at line 70 of file MuCondition.h.
References m_gtMuonTemplate.
Referenced by copy().
l1t::MuCondition & MuCondition::operator= | ( | const MuCondition & | cp | ) |
Definition at line 93 of file MuCondition.cc.
References filterCSVwithJSON::copy.
|
virtual |
print condition
Reimplemented from l1t::ConditionEvaluation.
Definition at line 512 of file MuCondition.cc.
References l1t::ConditionEvaluation::print().
Referenced by l1t::GtBoard::runGTL().
void MuCondition::setGtCorrParDeltaPhiNrBins | ( | const int & | corrParDeltaPhiNrBins | ) |
Definition at line 123 of file MuCondition.cc.
void MuCondition::setGtGTL | ( | const GtBoard * | ptrGTL | ) |
set the pointer to GTL
Definition at line 107 of file MuCondition.cc.
void MuCondition::setGtIfMuEtaNumberBits | ( | const int & | ifMuEtaNumberBitsValue | ) |
Definition at line 115 of file MuCondition.cc.
void MuCondition::setGtMuonTemplate | ( | const MuonTemplate * | muonTempl | ) |
Definition at line 100 of file MuCondition.cc.
|
private |
Definition at line 124 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 118 of file MuCondition.h.
Referenced by gtGTL().
|
private |
pointer to a MuonTemplate
Definition at line 115 of file MuCondition.h.
Referenced by gtMuonTemplate().
|
private |
number of bits for eta of muon objects
Definition at line 121 of file MuCondition.h.
Referenced by gtIfMuEtaNumberBits().