#include <L1GtMuonCondition.h>
Public Member Functions | |
const bool | evaluateCondition () 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 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 |
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 *) |
virtual | ~L1GtMuonCondition () |
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>
$Date$ $Revision$
Definition at line 37 of file L1GtMuonCondition.h.
L1GtMuonCondition::L1GtMuonCondition | ( | ) |
constructors default
Definition at line 45 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 53 of file L1GtMuonCondition.cc.
References L1GtConditionEvaluation::m_condMaxNumberObjects, and m_corrParDeltaPhiNrBins.
L1GtMuonCondition::L1GtMuonCondition | ( | const L1GtMuonCondition & | cp | ) |
Definition at line 82 of file L1GtMuonCondition.cc.
References copy().
|
virtual |
Definition at line 88 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 414 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().
|
private |
copy function for copy constructor and operator=
Definition at line 66 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 L1GtMuonCondition(), and operator=().
|
virtual |
the core function to check if the condition matches
Implements L1GtConditionEvaluation.
Definition at line 134 of file L1GtMuonCondition.cc.
References abs, DeDxDiscriminatorTools::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(), i, getHLTprescales::index, LogTrace, m_corrParDeltaPhiNrBins, m_gtGTL, m_gtMuonTemplate, m_ifMuEtaNumberBits, L1GtConditionEvaluation::m_verbosity, L1GtCondition::nrObjects(), and L1GtCondition::wsc().
|
private |
load muon candidates
Definition at line 400 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 94 of file L1GtMuonCondition.h.
References m_corrParDeltaPhiNrBins.
|
inline |
get / set the pointer to GTL
Definition at line 78 of file L1GtMuonCondition.h.
References m_gtGTL.
Referenced by copy().
|
inline |
get / set the number of bits for eta of muon objects
Definition at line 86 of file L1GtMuonCondition.h.
References m_ifMuEtaNumberBits.
Referenced by copy().
|
inline |
get / set the pointer to a L1GtCondition
Definition at line 71 of file L1GtMuonCondition.h.
References m_gtMuonTemplate.
Referenced by copy().
L1GtMuonCondition & L1GtMuonCondition::operator= | ( | const L1GtMuonCondition & | cp | ) |
Definition at line 95 of file L1GtMuonCondition.cc.
References copy().
|
virtual |
print condition
Reimplemented from L1GtConditionEvaluation.
Definition at line 546 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 125 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 109 of file L1GtMuonCondition.cc.
References m_gtGTL.
void L1GtMuonCondition::setGtIfMuEtaNumberBits | ( | const int & | ifMuEtaNumberBitsValue | ) |
Definition at line 117 of file L1GtMuonCondition.cc.
References m_ifMuEtaNumberBits.
void L1GtMuonCondition::setGtMuonTemplate | ( | const L1GtMuonTemplate * | muonTempl | ) |
Definition at line 102 of file L1GtMuonCondition.cc.
References m_gtMuonTemplate.
|
private |
Definition at line 125 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 119 of file L1GtMuonCondition.h.
Referenced by copy(), evaluateCondition(), getCandidate(), gtGTL(), and setGtGTL().
|
private |
pointer to a L1GtMuonTemplate
Definition at line 116 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 122 of file L1GtMuonCondition.h.
Referenced by copy(), evaluateCondition(), gtIfMuEtaNumberBits(), print(), and setGtIfMuEtaNumberBits().