#include <MuonShowerCondition.h>
Public Member Functions | |
const bool | evaluateCondition (const int bxEval) const override |
the core function to check if the condition matches More... | |
const GlobalBoard * | gtGTL () const |
get / set the pointer to GTL More... | |
const MuonShowerTemplate * | gtMuonShowerTemplate () const |
get / set the pointer to a Condition More... | |
MuonShowerCondition () | |
MuonShowerCondition (const GlobalCondition *, const GlobalBoard *, const int nrL1MuShower) | |
from base template condition (from event setup usually) More... | |
MuonShowerCondition (const MuonShowerCondition &) | |
MuonShowerCondition & | operator= (const MuonShowerCondition &) |
void | print (std::ostream &myCout) const override |
print condition More... | |
void | setGtGTL (const GlobalBoard *) |
Set the pointer to GTL. More... | |
void | setGtMuonShowerTemplate (const MuonShowerTemplate *) |
~MuonShowerCondition () 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::MuonShower &cand, const unsigned int index) const |
function to check a single object if it matches a condition More... | |
void | copy (const MuonShowerCondition &cp) |
copy function for copy constructor and operator= More... | |
const l1t::MuonShower * | getCandidate (const int bx, const int indexCand) const |
load muon candidates More... | |
Private Attributes | |
const GlobalBoard * | m_gtGTL |
pointer to GTL, to be able to get the trigger objects More... | |
const MuonShowerTemplate * | m_gtMuonShowerTemplate |
pointer to a MuonShowerTemplate 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 deltaEta 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 deltaPhi range More... | |
template<class Type1 > | |
const bool | checkRangeEta (const unsigned int bitNumber, const std::vector< Type1 > &windows, const unsigned int nEtaBits) const |
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 phi range and outside of a veto range More... | |
template<class Type1 > | |
const bool | checkRangeTfMuonIndex (const unsigned int bitNumber, const std::vector< Type1 > &windows) const |
check if a value is in a given muon track finder index range More... | |
template<class Type1 , class Type2 > | |
const bool | checkThreshold (const Type1 &thresholdL, const Type1 &thresholdH, const Type2 &value, bool condGEqValue) const |
template<class Type1 , class Type2 > | |
const bool | checkUnconstrainedPt (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 29 of file MuonShowerCondition.h.
MuonShowerCondition::MuonShowerCondition | ( | ) |
constructors default
Definition at line 45 of file MuonShowerCondition.cc.
MuonShowerCondition::MuonShowerCondition | ( | const GlobalCondition * | muonShowerTemplate, |
const GlobalBoard * | ptrGTL, | ||
const int | nrL1MuShower | ||
) |
from base template condition (from event setup usually)
Definition at line 50 of file MuonShowerCondition.cc.
References l1t::ConditionEvaluation::m_condMaxNumberObjects.
MuonShowerCondition::MuonShowerCondition | ( | const MuonShowerCondition & | cp | ) |
Definition at line 71 of file MuonShowerCondition.cc.
References copy().
|
override |
Definition at line 74 of file MuonShowerCondition.cc.
|
private |
function to check a single object if it matches a condition
checkObjectParameter - Check if the bit associated to the type of shower is set to 1
iCondition | The number of the condition. |
cand | The candidate to compare. |
Definition at line 168 of file MuonShowerCondition.cc.
References LogDebug, MuonShowerTemplate::ObjectParameter::MuonShower0, MuonShowerTemplate::ObjectParameter::MuonShower1, MuonShowerTemplate::ObjectParameter::MuonShower2, MuonShowerTemplate::ObjectParameter::MuonShowerOutOfTime0, and MuonShowerTemplate::ObjectParameter::MuonShowerOutOfTime1.
|
private |
copy function for copy constructor and operator=
Definition at line 60 of file MuonShowerCondition.cc.
Referenced by MuonShowerCondition().
|
overridevirtual |
the core function to check if the condition matches
Implements l1t::ConditionEvaluation.
Definition at line 93 of file MuonShowerCondition.cc.
References BXVector< T >::at(), BXVector< T >::getLastBX(), mps_fire::i, LogDebug, push_back(), and BXVector< T >::size().
|
private |
load muon candidates
|
inline |
get / set the pointer to GTL
Definition at line 59 of file MuonShowerCondition.h.
References m_gtGTL.
|
inline |
get / set the pointer to a Condition
Definition at line 54 of file MuonShowerCondition.h.
References m_gtMuonShowerTemplate.
l1t::MuonShowerCondition & MuonShowerCondition::operator= | ( | const MuonShowerCondition & | cp | ) |
Definition at line 79 of file MuonShowerCondition.cc.
References filterCSVwithJSON::copy.
|
overridevirtual |
print condition
Reimplemented from l1t::ConditionEvaluation.
Definition at line 220 of file MuonShowerCondition.cc.
References l1t::ConditionEvaluation::print().
Referenced by l1t::GlobalBoard::runGTL().
void MuonShowerCondition::setGtGTL | ( | const GlobalBoard * | ptrGTL | ) |
Set the pointer to GTL.
Definition at line 90 of file MuonShowerCondition.cc.
void MuonShowerCondition::setGtMuonShowerTemplate | ( | const MuonShowerTemplate * | muonTempl | ) |
Definition at line 85 of file MuonShowerCondition.cc.
|
private |
pointer to GTL, to be able to get the trigger objects
Definition at line 77 of file MuonShowerCondition.h.
Referenced by gtGTL().
|
private |
pointer to a MuonShowerTemplate
Definition at line 74 of file MuonShowerCondition.h.
Referenced by gtMuonShowerTemplate().