#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 48 of file L1GtMuonCondition.cc.
References L1GtConditionEvaluation::m_condMaxNumberObjects, and m_corrParDeltaPhiNrBins.
L1GtMuonCondition::L1GtMuonCondition | ( | const L1GtMuonCondition & | cp | ) |
Definition at line 75 of file L1GtMuonCondition.cc.
References copy().
|
override |
Definition at line 78 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 349 of file L1GtMuonCondition.cc.
References L1GtConditionEvaluation::checkBit(), L1GtConditionEvaluation::checkThreshold(), L1GtCondition::condGEq(), L1GtMuonTemplate::ObjectParameter::enableIso, L1GtMuonTemplate::ObjectParameter::enableMip, L1GtMuonTemplate::ObjectParameter::etaRange, m_gtMuonTemplate, L1GtCondition::nrObjects(), L1GtMuonTemplate::objectParameter(), L1GtMuonTemplate::ObjectParameter::phiHigh, L1GtMuonTemplate::ObjectParameter::phiLow, L1GtMuonTemplate::ObjectParameter::ptHighThreshold, L1GtMuonTemplate::ObjectParameter::ptLowThreshold, L1GtMuonTemplate::ObjectParameter::qualityRange, and L1GtMuonTemplate::ObjectParameter::requestIso.
Referenced by evaluateCondition().
|
private |
copy function for copy constructor and operator=
Definition at line 61 of file L1GtMuonCondition.cc.
References L1GtConditionEvaluation::m_combinationsInCond, L1GtConditionEvaluation::m_condLastResult, L1GtConditionEvaluation::m_condMaxNumberObjects, m_corrParDeltaPhiNrBins, m_gtGTL, m_gtMuonTemplate, m_ifMuEtaNumberBits, and L1GtConditionEvaluation::m_verbosity.
Referenced by L1GtMuonCondition(), and operator=().
|
overridevirtual |
the core function to check if the condition matches
Implements L1GtConditionEvaluation.
Definition at line 105 of file L1GtMuonCondition.cc.
References funct::abs(), ALCARECOTkAlJpsiMuMu_cff::charge, L1GtMuonTemplate::CorrelationParameter::chargeCorrelation, L1GtConditionEvaluation::checkBit(), checkObjectParameter(), l1ct::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(), push_back(), and L1GtCondition::wsc().
|
private |
load muon candidates
Definition at line 336 of file L1GtMuonCondition.cc.
References L1GlobalTriggerGTL::getCandL1Mu(), and m_gtGTL.
|
inline |
get / set maximum number of bins for the delta phi scales
Definition at line 77 of file L1GtMuonCondition.h.
References m_corrParDeltaPhiNrBins.
|
inline |
get / set the pointer to GTL
Definition at line 67 of file L1GtMuonCondition.h.
References m_gtGTL.
|
inline |
get / set the number of bits for eta of muon objects
Definition at line 72 of file L1GtMuonCondition.h.
References m_ifMuEtaNumberBits.
|
inline |
get / set the pointer to a L1GtCondition
Definition at line 62 of file L1GtMuonCondition.h.
References m_gtMuonTemplate.
L1GtMuonCondition & L1GtMuonCondition::operator= | ( | const L1GtMuonCondition & | cp | ) |
Definition at line 83 of file L1GtMuonCondition.cc.
References copy().
|
overridevirtual |
print condition
Reimplemented from L1GtConditionEvaluation.
Definition at line 463 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 100 of file L1GtMuonCondition.cc.
References m_corrParDeltaPhiNrBins.
Referenced by L1GlobalTriggerGTL::run().
void L1GtMuonCondition::setGtGTL | ( | const L1GlobalTriggerGTL * | ptrGTL | ) |
set the pointer to GTL
Definition at line 92 of file L1GtMuonCondition.cc.
References m_gtGTL.
void L1GtMuonCondition::setGtIfMuEtaNumberBits | ( | const int & | ifMuEtaNumberBitsValue | ) |
Definition at line 95 of file L1GtMuonCondition.cc.
References m_ifMuEtaNumberBits.
void L1GtMuonCondition::setGtMuonTemplate | ( | const L1GtMuonTemplate * | muonTempl | ) |
Definition at line 89 of file L1GtMuonCondition.cc.
References m_gtMuonTemplate.
|
private |
Definition at line 102 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 96 of file L1GtMuonCondition.h.
Referenced by copy(), evaluateCondition(), getCandidate(), gtGTL(), and setGtGTL().
|
private |
pointer to a L1GtMuonTemplate
Definition at line 93 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 99 of file L1GtMuonCondition.h.
Referenced by copy(), evaluateCondition(), gtIfMuEtaNumberBits(), print(), and setGtIfMuEtaNumberBits().