#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 46 of file MuCondition.cc.
References l1t::ConditionEvaluation::m_condMaxNumberObjects, and m_corrParDeltaPhiNrBins.
MuCondition::MuCondition | ( | const MuCondition & | cp | ) |
|
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 324 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, 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, and MuonTemplate::ObjectParameter::requestIso.
|
private |
copy function for copy constructor and operator=
Definition at line 59 of file MuCondition.cc.
References CommonMethods::cp().
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, and BXVector< T >::size().
|
private |
load muon candidates
Definition at line 311 of file MuCondition.cc.
References l1GtPatternGenerator_cfi::bx.
|
inline |
get / set maximum number of bins for the delta phi scales
Definition at line 79 of file MuCondition.h.
References m_corrParDeltaPhiNrBins.
|
inline |
|
inline |
get / set the number of bits for eta of muon objects
Definition at line 74 of file MuCondition.h.
References m_ifMuEtaNumberBits.
|
inline |
get / set the pointer to a Condition
Definition at line 64 of file MuCondition.h.
References m_gtMuonTemplate.
l1t::MuCondition & MuCondition::operator= | ( | const MuCondition & | cp | ) |
Definition at line 81 of file MuCondition.cc.
References filterCSVwithJSON::copy, and CommonMethods::cp().
|
overridevirtual |
print condition
Reimplemented from l1t::ConditionEvaluation.
Definition at line 484 of file MuCondition.cc.
References l1t::ConditionEvaluation::print().
Referenced by l1t::CorrCondition::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 | ) |
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 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().