#include <L1GtMuonCondition.h>
Public Member Functions | |
const bool | evaluateCondition () 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 L1GlobalTriggerGTL * | 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 L1GtMuonTemplate * | gtMuonTemplate () const |
get / set the pointer to a L1GtCondition More... | |
L1GtMuonCondition () | |
L1GtMuonCondition (const L1GtCondition *, const L1GlobalTriggerGTL *, const int nrL1Mu, const int ifMuEtaNumberBits) | |
from base template condition (from event setup usually) More... | |
L1GtMuonCondition (const L1GtMuonCondition &) | |
L1GtMuonCondition & | operator= (const L1GtMuonCondition &) |
void | print (std::ostream &myCout) const override |
print condition More... | |
void | setGtCorrParDeltaPhiNrBins (const int &) |
void | setGtGTL (const L1GlobalTriggerGTL *) |
set the pointer to GTL More... | |
void | setGtIfMuEtaNumberBits (const int &) |
void | setGtMuonTemplate (const L1GtMuonTemplate *) |
~L1GtMuonCondition () override | |
Public Member Functions inherited from L1GtConditionEvaluation | |
bool | condLastResult () const |
get the latest result for the condition More... | |
int | condMaxNumberObjects () const |
void | evaluateConditionStoreResult () |
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... | |
L1GtConditionEvaluation () | |
constructor More... | |
void | setCondMaxNumberObjects (int condMaxNumberObjectsValue) |
void | setVerbosity (const int verbosity) |
virtual | ~L1GtConditionEvaluation () |
destructor More... | |
Private Member Functions | |
const bool | checkObjectParameter (const int iCondition, const L1MuGMTCand &cand) const |
function to check a single object if it matches a condition More... | |
void | copy (const L1GtMuonCondition &cp) |
copy function for copy constructor and operator= More... | |
const L1MuGMTCand * | getCandidate (const int indexCand) const |
load muon candidates More... | |
Private Attributes | |
unsigned int | m_corrParDeltaPhiNrBins |
const L1GlobalTriggerGTL * | m_gtGTL |
pointer to GTL, to be able to get the trigger objects More... | |
const L1GtMuonTemplate * | m_gtMuonTemplate |
pointer to a L1GtMuonTemplate More... | |
int | m_ifMuEtaNumberBits |
number of bits for eta of muon objects More... | |
Additional Inherited Members | |
Protected Member Functions inherited from L1GtConditionEvaluation | |
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 | checkThreshold (const Type1 &threshold, const Type2 &value, const bool condGEqValue) const |
CombinationsInCond & | combinationsInCond () const |
get all the object combinations (to fill it...) More... | |
Protected Attributes inherited from L1GtConditionEvaluation | |
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... | |
Description: evaluation of a CondMuon condition.
Implementation: <TODO: enter implementation details>
Definition at line 35 of file L1GtMuonCondition.h.
L1GtMuonCondition::L1GtMuonCondition | ( | ) |
constructors default
Definition at line 43 of file L1GtMuonCondition.cc.
L1GtMuonCondition::L1GtMuonCondition | ( | const L1GtCondition * | muonTemplate, |
const L1GlobalTriggerGTL * | ptrGTL, | ||
const int | nrL1Mu, | ||
const int | ifMuEtaNumberBits | ||
) |
from base template condition (from event setup usually)
Definition at line 51 of file L1GtMuonCondition.cc.
References L1GtConditionEvaluation::m_condMaxNumberObjects, and m_corrParDeltaPhiNrBins.
L1GtMuonCondition::L1GtMuonCondition | ( | const L1GtMuonCondition & | cp | ) |
Definition at line 80 of file L1GtMuonCondition.cc.
References copy().
|
override |
Definition at line 86 of file L1GtMuonCondition.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 412 of file L1GtMuonCondition.cc.
References L1GtConditionEvaluation::checkBit(), L1GtConditionEvaluation::checkThreshold(), L1GtCondition::condGEq(), L1MuGMTCand::empty(), L1GtMuonTemplate::ObjectParameter::enableIso, L1GtMuonTemplate::ObjectParameter::enableMip, L1MuGMTCand::etaIndex(), L1GtMuonTemplate::ObjectParameter::etaRange, L1MuGMTCand::isol(), m_gtMuonTemplate, L1MuGMTCand::mip(), L1GtCondition::nrObjects(), L1GtMuonTemplate::objectParameter(), L1GtMuonTemplate::ObjectParameter::phiHigh, L1MuGMTCand::phiIndex(), L1GtMuonTemplate::ObjectParameter::phiLow, L1GtMuonTemplate::ObjectParameter::ptHighThreshold, L1MuGMTCand::ptIndex(), L1GtMuonTemplate::ObjectParameter::ptLowThreshold, L1MuGMTCand::quality(), L1GtMuonTemplate::ObjectParameter::qualityRange, and L1GtMuonTemplate::ObjectParameter::requestIso.
Referenced by evaluateCondition(), and gtCorrParDeltaPhiNrBins().
|
private |
copy function for copy constructor and operator=
Definition at line 64 of file L1GtMuonCondition.cc.
References L1GtConditionEvaluation::condLastResult(), L1GtConditionEvaluation::condMaxNumberObjects(), L1GtConditionEvaluation::getCombinationsInCond(), gtGTL(), gtIfMuEtaNumberBits(), gtMuonTemplate(), L1GtConditionEvaluation::m_combinationsInCond, L1GtConditionEvaluation::m_condLastResult, L1GtConditionEvaluation::m_condMaxNumberObjects, m_corrParDeltaPhiNrBins, m_gtGTL, m_gtMuonTemplate, m_ifMuEtaNumberBits, and L1GtConditionEvaluation::m_verbosity.
Referenced by gtCorrParDeltaPhiNrBins(), L1GtMuonCondition(), and operator=().
|
overridevirtual |
the core function to check if the condition matches
Implements L1GtConditionEvaluation.
Definition at line 132 of file L1GtMuonCondition.cc.
References funct::abs(), ALCARECOTkAlJpsiMuMu_cff::charge, L1GtMuonTemplate::CorrelationParameter::chargeCorrelation, L1GtConditionEvaluation::checkBit(), checkObjectParameter(), hitfit::clear(), L1GtConditionEvaluation::combinationsInCond(), L1GtMuonTemplate::correlationParameter(), L1GtMuonTemplate::CorrelationParameter::deltaEtaRange, L1GtMuonTemplate::CorrelationParameter::deltaPhiRange0Word, L1GtMuonTemplate::CorrelationParameter::deltaPhiRange1Word, factorial(), L1GlobalTriggerGTL::getCandL1Mu(), mps_fire::i, LogTrace, m_corrParDeltaPhiNrBins, m_gtGTL, m_gtMuonTemplate, m_ifMuEtaNumberBits, L1GtConditionEvaluation::m_verbosity, L1GtCondition::nrObjects(), and L1GtCondition::wsc().
|
private |
load muon candidates
Definition at line 398 of file L1GtMuonCondition.cc.
References L1GlobalTriggerGTL::getCandL1Mu(), and m_gtGTL.
Referenced by gtCorrParDeltaPhiNrBins().
|
inline |
get / set maximum number of bins for the delta phi scales
Definition at line 92 of file L1GtMuonCondition.h.
References checkObjectParameter(), copy(), SimDataFormats::CaloAnalysis::cp, getCandidate(), m_corrParDeltaPhiNrBins, and setGtCorrParDeltaPhiNrBins().
|
inline |
get / set the pointer to GTL
Definition at line 76 of file L1GtMuonCondition.h.
References m_gtGTL, and setGtGTL().
Referenced by copy().
|
inline |
get / set the number of bits for eta of muon objects
Definition at line 84 of file L1GtMuonCondition.h.
References m_ifMuEtaNumberBits, and setGtIfMuEtaNumberBits().
Referenced by copy().
|
inline |
get / set the pointer to a L1GtCondition
Definition at line 69 of file L1GtMuonCondition.h.
References m_gtMuonTemplate, and setGtMuonTemplate().
Referenced by copy().
L1GtMuonCondition & L1GtMuonCondition::operator= | ( | const L1GtMuonCondition & | cp | ) |
Definition at line 93 of file L1GtMuonCondition.cc.
References copy().
|
overridevirtual |
print condition
Reimplemented from L1GtConditionEvaluation.
Definition at line 544 of file L1GtMuonCondition.cc.
References m_corrParDeltaPhiNrBins, m_gtMuonTemplate, m_ifMuEtaNumberBits, L1GtConditionEvaluation::print(), and L1GtMuonTemplate::print().
Referenced by L1GtCorrelationCondition::evaluateCondition(), and L1GlobalTriggerGTL::run().
void L1GtMuonCondition::setGtCorrParDeltaPhiNrBins | ( | const int & | corrParDeltaPhiNrBins | ) |
Definition at line 123 of file L1GtMuonCondition.cc.
References m_corrParDeltaPhiNrBins.
Referenced by gtCorrParDeltaPhiNrBins(), and L1GlobalTriggerGTL::run().
void L1GtMuonCondition::setGtGTL | ( | const L1GlobalTriggerGTL * | ptrGTL | ) |
set the pointer to GTL
Definition at line 107 of file L1GtMuonCondition.cc.
References m_gtGTL.
Referenced by gtGTL().
void L1GtMuonCondition::setGtIfMuEtaNumberBits | ( | const int & | ifMuEtaNumberBitsValue | ) |
Definition at line 115 of file L1GtMuonCondition.cc.
References m_ifMuEtaNumberBits.
Referenced by gtIfMuEtaNumberBits().
void L1GtMuonCondition::setGtMuonTemplate | ( | const L1GtMuonTemplate * | muonTempl | ) |
Definition at line 100 of file L1GtMuonCondition.cc.
References m_gtMuonTemplate.
Referenced by gtMuonTemplate().
|
private |
Definition at line 123 of file L1GtMuonCondition.h.
Referenced by copy(), evaluateCondition(), gtCorrParDeltaPhiNrBins(), L1GtMuonCondition(), print(), and setGtCorrParDeltaPhiNrBins().
|
private |
pointer to GTL, to be able to get the trigger objects
Definition at line 117 of file L1GtMuonCondition.h.
Referenced by copy(), evaluateCondition(), getCandidate(), gtGTL(), and setGtGTL().
|
private |
pointer to a L1GtMuonTemplate
Definition at line 114 of file L1GtMuonCondition.h.
Referenced by checkObjectParameter(), copy(), evaluateCondition(), gtMuonTemplate(), print(), and setGtMuonTemplate().
|
private |
number of bits for eta of muon objects
Definition at line 120 of file L1GtMuonCondition.h.
Referenced by copy(), evaluateCondition(), gtIfMuEtaNumberBits(), print(), and setGtIfMuEtaNumberBits().