![]() |
![]() |
#include <CorrCondition.h>
Public Member Functions | |
CorrCondition () | |
CorrCondition (const GlobalCondition *, const GlobalCondition *, const GlobalCondition *, const GlobalBoard *) | |
from base template condition (from event setup usually) More... | |
CorrCondition (const CorrCondition &) | |
const bool | evaluateCondition (const int bxEval) const override |
the core function to check if the condition matches More... | |
const GlobalBoard * | getuGtB () const |
get / set the pointer to uGt GlobalBoard More... | |
const CorrelationTemplate * | gtCorrelationTemplate () const |
get / set the pointer to a Condition More... | |
CorrCondition & | operator= (const CorrCondition &) |
void | print (std::ostream &myCout) const override |
print condition More... | |
void | setGtCorrelationTemplate (const CorrelationTemplate *) |
void | setScales (const GlobalScales *) |
void | setuGtB (const GlobalBoard *) |
set the pointer to uGT GlobalBoard More... | |
~CorrCondition () override | |
![]() | |
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::L1Candidate &cand) const |
function to check a single object if it matches a condition More... | |
void | copy (const CorrCondition &cp) |
copy function for copy constructor and operator= More... | |
const l1t::L1Candidate * | getCandidate (const int bx, const int indexCand) const |
load candidates More... | |
Private Attributes | |
const GlobalCondition * | m_gtCond0 |
const GlobalCondition * | m_gtCond1 |
const CorrelationTemplate * | m_gtCorrelationTemplate |
pointer to a CorrelationTemplate More... | |
const GlobalScales * | m_gtScales |
const GlobalBoard * | m_uGtB |
pointer to uGt GlobalBoard, to be able to get the trigger objects More... | |
Additional Inherited Members | |
![]() | |
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... | |
![]() | |
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 38 of file CorrCondition.h.
CorrCondition::CorrCondition | ( | ) |
constructors default
Definition at line 46 of file CorrCondition.cc.
CorrCondition::CorrCondition | ( | const GlobalCondition * | corrTemplate, |
const GlobalCondition * | cond0Condition, | ||
const GlobalCondition * | cond1Condition, | ||
const GlobalBoard * | ptrGTB | ||
) |
from base template condition (from event setup usually)
Definition at line 52 of file CorrCondition.cc.
CorrCondition::CorrCondition | ( | const CorrCondition & | cp | ) |
Definition at line 81 of file CorrCondition.cc.
References copy().
|
override |
Definition at line 89 of file CorrCondition.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 1359 of file CorrCondition.cc.
Referenced by getuGtB().
|
private |
copy function for copy constructor and operator=
Definition at line 68 of file CorrCondition.cc.
References l1t::ConditionEvaluation::condLastResult(), l1t::ConditionEvaluation::condMaxNumberObjects(), l1t::ConditionEvaluation::getCombinationsInCond(), getuGtB(), gtCorrelationTemplate(), l1t::ConditionEvaluation::m_combinationsInCond, l1t::ConditionEvaluation::m_condLastResult, l1t::ConditionEvaluation::m_condMaxNumberObjects, m_gtCorrelationTemplate, m_uGtB, and l1t::ConditionEvaluation::m_verbosity.
Referenced by CorrCondition(), getuGtB(), and operator=().
|
overridevirtual |
the core function to check if the condition matches
Implements l1t::ConditionEvaluation.
Definition at line 124 of file CorrCondition.cc.
References funct::abs(), BXVector< T >::at(), CorrelationTemplate::CorrelationParameter::chargeCorrelation, hitfit::clear(), l1t::ConditionEvaluation::combinationsInCond(), CorrelationTemplate::cond0Category(), CorrelationTemplate::cond1Category(), l1t::CondCalo, l1t::CondEnergySum, l1t::ConditionEvaluation::condLastResult(), l1t::CondMuon, GlobalCondition::condRelativeBx(), CorrelationTemplate::CorrelationParameter::corrCutType, CorrelationTemplate::correlationParameter(), funct::cos(), l1t::GlobalScales::ScaleParameters::etaBins, l1t::GlobalScales::ScaleParameters::etBins, l1t::ConditionEvaluation::evaluateConditionStoreResult(), l1t::GlobalBoard::getCandL1EG(), l1t::GlobalBoard::getCandL1EtSum(), l1t::GlobalBoard::getCandL1Jet(), l1t::GlobalBoard::getCandL1Mu(), l1t::GlobalBoard::getCandL1Tau(), l1t::ConditionEvaluation::getCombinationsInCond(), l1t::GlobalScales::getEGScales(), l1t::GlobalScales::getETMHFScales(), l1t::GlobalScales::getETMScales(), l1t::GlobalScales::getHTMScales(), l1t::GlobalScales::getJETScales(), l1t::GlobalScales::getLUT_CalMuEta(), l1t::GlobalScales::getLUT_CalMuPhi(), l1t::GlobalScales::getLUT_Cos(), l1t::GlobalScales::getLUT_DeltaEta(), l1t::GlobalScales::getLUT_DeltaEta_Cosh(), l1t::GlobalScales::getLUT_DeltaPhi(), l1t::GlobalScales::getLUT_DeltaPhi_Cos(), l1t::GlobalScales::getLUT_Pt(), l1t::GlobalScales::getLUT_Sin(), l1t::GlobalScales::getMUScales(), l1t::GlobalScales::getPrec_Cos(), l1t::GlobalScales::getPrec_DeltaEta(), l1t::GlobalScales::getPrec_DeltaEta_Cosh(), l1t::GlobalScales::getPrec_DeltaPhi(), l1t::GlobalScales::getPrec_DeltaPhi_Cos(), l1t::GlobalScales::getPrec_Pt(), l1t::GlobalScales::getPrec_Sin(), l1t::GlobalScales::getTAUScales(), l1t::gtEG, l1t::gtETM, l1t::gtETMHF, l1t::gtETT, l1t::gtETTem, l1t::gtHTM, l1t::gtHTT, l1t::gtJet, l1t::gtMinBiasHFM0, l1t::gtMinBiasHFM1, l1t::gtMinBiasHFP0, l1t::gtMinBiasHFP1, l1t::gtTau, createfilelist::int, L1Analysis::kMinBiasHFP0, L1Analysis::kMissingEt, L1Analysis::kMissingEtHF, L1Analysis::kMissingHt, L1Analysis::kTotalEt, L1Analysis::kTotalEtEm, L1Analysis::kTotalHt, l1t::l1TGtObjectEnumToString(), LogDebug, LogTrace, m_gtCond0, m_gtCond1, m_gtCorrelationTemplate, m_gtScales, M_PI, m_uGtB, l1t::ConditionEvaluation::m_verbosity, CorrelationTemplate::CorrelationParameter::maxDRCutValue, CorrelationTemplate::CorrelationParameter::maxEtaCutValue, CorrelationTemplate::CorrelationParameter::maxMassCutValue, CorrelationTemplate::CorrelationParameter::maxPhiCutValue, CorrelationTemplate::CorrelationParameter::maxTBPTCutValue, CorrelationTemplate::CorrelationParameter::minDRCutValue, CorrelationTemplate::CorrelationParameter::minEtaCutValue, CorrelationTemplate::CorrelationParameter::minMassCutValue, CorrelationTemplate::CorrelationParameter::minPhiCutValue, CorrelationTemplate::CorrelationParameter::minTBPTCutValue, GlobalCondition::objectType(), l1t::GlobalScales::ScaleParameters::phiBins, l1t::GlobalScales::ScaleParameters::phiMax, l1t::GlobalScales::ScaleParameters::phiMin, l1t::GlobalScales::ScaleParameters::phiStep, funct::pow(), CorrelationTemplate::CorrelationParameter::precDRCut, CorrelationTemplate::CorrelationParameter::precEtaCut, CorrelationTemplate::CorrelationParameter::precMassCut, CorrelationTemplate::CorrelationParameter::precPhiCut, CorrelationTemplate::CorrelationParameter::precTBPTCut, l1t::EnergySumCondition::print(), l1t::MuCondition::print(), l1t::CaloCondition::print(), funct::sin(), BXVector< T >::size(), mathSSE::sqrt(), AlCaHLTBitMon_QueryRunRegistry::string, globals_cff::x1, and globals_cff::x2.
|
private |
load candidates
Definition at line 1325 of file CorrCondition.cc.
References l1t::GlobalBoard::getCandL1EG(), l1t::GlobalBoard::getCandL1Jet(), l1t::GlobalBoard::getCandL1Tau(), l1t::gtEG, l1t::gtJet, l1t::gtTau, m_gtCorrelationTemplate, m_uGtB, and GlobalCondition::objectType().
Referenced by getuGtB().
|
inline |
get / set the pointer to uGt GlobalBoard
Definition at line 82 of file CorrCondition.h.
References checkObjectParameter(), copy(), SimDataFormats::CaloAnalysis::cp, getCandidate(), m_uGtB, setScales(), and setuGtB().
Referenced by copy().
|
inline |
get / set the pointer to a Condition
Definition at line 75 of file CorrCondition.h.
References m_gtCorrelationTemplate, and setGtCorrelationTemplate().
Referenced by copy().
l1t::CorrCondition & CorrCondition::operator= | ( | const CorrCondition & | cp | ) |
Definition at line 96 of file CorrCondition.cc.
References copy().
|
overridevirtual |
print condition
Reimplemented from l1t::ConditionEvaluation.
Definition at line 1365 of file CorrCondition.cc.
References m_gtCorrelationTemplate, l1t::ConditionEvaluation::print(), and CorrelationTemplate::print().
Referenced by l1t::GlobalBoard::runGTL().
void CorrCondition::setGtCorrelationTemplate | ( | const CorrelationTemplate * | caloTempl | ) |
Definition at line 102 of file CorrCondition.cc.
References m_gtCorrelationTemplate.
Referenced by gtCorrelationTemplate().
void CorrCondition::setScales | ( | const GlobalScales * | sc | ) |
Definition at line 116 of file CorrCondition.cc.
References m_gtScales, and SimDataFormats::CaloAnalysis::sc.
Referenced by getuGtB(), and l1t::GlobalBoard::runGTL().
void CorrCondition::setuGtB | ( | const GlobalBoard * | ptrGTB | ) |
set the pointer to uGT GlobalBoard
Definition at line 109 of file CorrCondition.cc.
References m_uGtB.
Referenced by getuGtB().
|
private |
Definition at line 125 of file CorrCondition.h.
Referenced by evaluateCondition().
|
private |
Definition at line 126 of file CorrCondition.h.
Referenced by evaluateCondition().
|
private |
pointer to a CorrelationTemplate
Definition at line 121 of file CorrCondition.h.
Referenced by copy(), evaluateCondition(), getCandidate(), gtCorrelationTemplate(), print(), and setGtCorrelationTemplate().
|
private |
Definition at line 131 of file CorrCondition.h.
Referenced by evaluateCondition(), and setScales().
|
private |
pointer to uGt GlobalBoard, to be able to get the trigger objects
Definition at line 129 of file CorrCondition.h.
Referenced by copy(), evaluateCondition(), getCandidate(), getuGtB(), and setuGtB().