#include <L1GtMuonTemplate.h>
Classes | |
struct | CorrelationParameter |
struct | ObjectParameter |
Public Member Functions | |
const CorrelationParameter * | correlationParameter () const |
L1GtMuonTemplate () | |
L1GtMuonTemplate (const std::string &) | |
L1GtMuonTemplate (const L1GtMuonTemplate &) | |
L1GtMuonTemplate (const std::string &, const L1GtConditionType &) | |
const std::vector < ObjectParameter > * | objectParameter () const |
L1GtMuonTemplate & | operator= (const L1GtMuonTemplate &) |
virtual void | print (std::ostream &myCout) const |
print the condition | |
void | setConditionParameter (const std::vector< ObjectParameter > &objParameter, const CorrelationParameter &corrParameter) |
set functions | |
virtual | ~L1GtMuonTemplate () |
Private Member Functions | |
void | copy (const L1GtMuonTemplate &cp) |
copy function for copy constructor and operator= | |
Private Attributes | |
CorrelationParameter | m_correlationParameter |
std::vector< ObjectParameter > | m_objectParameter |
variables containing the parameters | |
Friends | |
std::ostream & | operator<< (std::ostream &, const L1GtMuonTemplate &) |
output stream operator |
Description: L1 Global Trigger muon template.
Implementation: <TODO: enter implementation details>
$Date$ $Revision$
Definition at line 32 of file L1GtMuonTemplate.h.
L1GtMuonTemplate::L1GtMuonTemplate | ( | ) |
Definition at line 35 of file L1GtMuonTemplate.cc.
References CondMuon, and L1GtCondition::m_condCategory.
: L1GtCondition() { m_condCategory = CondMuon; }
L1GtMuonTemplate::L1GtMuonTemplate | ( | const std::string & | cName | ) |
Definition at line 43 of file L1GtMuonTemplate.cc.
References CondMuon, and L1GtCondition::m_condCategory.
: L1GtCondition(cName) { m_condCategory = CondMuon; }
L1GtMuonTemplate::L1GtMuonTemplate | ( | const std::string & | cName, |
const L1GtConditionType & | cType | ||
) |
Definition at line 51 of file L1GtMuonTemplate.cc.
References m_objectParameter, L1GtCondition::m_objectType, Mu, and L1GtCondition::nrObjects().
: L1GtCondition(cName, CondMuon, cType) { int nObjects = nrObjects(); if (nObjects > 0) { m_objectParameter.reserve(nObjects); m_objectType.reserve(nObjects); m_objectType.assign(nObjects, Mu); } }
L1GtMuonTemplate::L1GtMuonTemplate | ( | const L1GtMuonTemplate & | cp | ) |
Definition at line 67 of file L1GtMuonTemplate.cc.
References copy().
: L1GtCondition(cp.m_condName) { copy(cp); }
L1GtMuonTemplate::~L1GtMuonTemplate | ( | ) | [virtual] |
Definition at line 74 of file L1GtMuonTemplate.cc.
{
// empty now
}
void L1GtMuonTemplate::copy | ( | const L1GtMuonTemplate & | cp | ) | [private] |
copy function for copy constructor and operator=
Definition at line 170 of file L1GtMuonTemplate.cc.
References L1GtCondition::condCategory(), L1GtCondition::condChipNr(), L1GtCondition::condGEq(), L1GtCondition::condName(), L1GtCondition::condType(), correlationParameter(), L1GtCondition::m_condCategory, L1GtCondition::m_condChipNr, L1GtCondition::m_condGEq, L1GtCondition::m_condName, L1GtCondition::m_condType, m_correlationParameter, m_objectParameter, L1GtCondition::m_objectType, objectParameter(), and L1GtCondition::objectType().
Referenced by L1GtMuonTemplate(), and operator=().
{ m_condName = cp.condName(); m_condCategory = cp.condCategory(); m_condType = cp.condType(); m_objectType = cp.objectType(); m_condGEq = cp.condGEq(); m_condChipNr = cp.condChipNr(); m_objectParameter = *(cp.objectParameter()); m_correlationParameter = *(cp.correlationParameter()); }
const CorrelationParameter* L1GtMuonTemplate::correlationParameter | ( | ) | const [inline] |
Definition at line 91 of file L1GtMuonTemplate.h.
References m_correlationParameter.
Referenced by copy(), L1GtMuonCondition::evaluateCondition(), L1GtVhdlWriterCore::getMuonSetupContentFromTriggerMenu(), and L1GtVmeWriterCore::writeVME().
{ return &m_correlationParameter; }
const std::vector<ObjectParameter>* L1GtMuonTemplate::objectParameter | ( | ) | const [inline] |
Definition at line 86 of file L1GtMuonTemplate.h.
References m_objectParameter.
Referenced by L1GtMuonCondition::checkObjectParameter(), copy(), L1TMenuHelper::getLUSOTrigger(), L1GtVhdlWriterCore::getMuonSetupContentFromTriggerMenu(), and L1GtVmeWriterCore::writeVME().
{ return &m_objectParameter; }
L1GtMuonTemplate & L1GtMuonTemplate::operator= | ( | const L1GtMuonTemplate & | cp | ) |
void L1GtMuonTemplate::print | ( | std::ostream & | myCout | ) | const [virtual] |
print the condition
Reimplemented from L1GtCondition.
Definition at line 99 of file L1GtMuonTemplate.cc.
References L1GtMuonTemplate::CorrelationParameter::chargeCorrelation, L1GtMuonTemplate::CorrelationParameter::deltaEtaRange, L1GtMuonTemplate::CorrelationParameter::deltaPhiMaxbits, L1GtMuonTemplate::CorrelationParameter::deltaPhiRange0Word, L1GtMuonTemplate::CorrelationParameter::deltaPhiRange1Word, i, L1GtCondition::m_condType, m_correlationParameter, m_objectParameter, L1GtCondition::nrObjects(), Type1s, and L1GtCondition::wsc().
Referenced by operator<<(), L1GtTriggerMenuXmlParser::parseMuon(), and L1GtMuonCondition::print().
{ myCout << "\n L1GtMuonTemplate print..." << std::endl; L1GtCondition::print(myCout); int nObjects = nrObjects(); for (int i = 0; i < nObjects; i++) { myCout << std::endl; myCout << " Template for object " << i << " [ hex ]" << std::endl; myCout << " ptHighThreshold = " << std::hex << m_objectParameter[i].ptHighThreshold << std::endl; myCout << " ptLowThreshold = " << std::hex << m_objectParameter[i].ptLowThreshold << std::endl; myCout << " enableMip = " << std::hex << m_objectParameter[i].enableMip << std::endl; myCout << " enableIso = " << std::hex << m_objectParameter[i].enableIso << std::endl; myCout << " requestIso = " << std::hex << m_objectParameter[i].requestIso << std::endl; myCout << " qualityRange = " << std::hex << m_objectParameter[i].qualityRange << std::endl; myCout << " etaRange = " << std::hex << m_objectParameter[i].etaRange << std::endl; myCout << " phiHigh = " << std::hex << m_objectParameter[i].phiHigh << std::endl; myCout << " phiLow = " << std::hex << m_objectParameter[i].phiLow << std::endl; } if ( wsc() ) { myCout << " Correlation parameters " << "[ hex ]" << std::endl; myCout << " chargeCorrelation = " << std::hex << m_correlationParameter.chargeCorrelation << std::endl; myCout << " deltaEtaRange = " << std::hex << m_correlationParameter.deltaEtaRange << std::endl; myCout << " deltaPhiRange1Word = " << std::hex << m_correlationParameter.deltaPhiRange1Word << std::endl; myCout << " deltaPhiRange0Word = " << std::hex << m_correlationParameter.deltaPhiRange0Word << std::endl; myCout << " deltaPhiMaxbits = " << std::hex << m_correlationParameter.deltaPhiMaxbits << std::endl; } else { if (m_condType == Type1s) { myCout << " Correlation parameters " << "[ hex ]" << std::endl; myCout << " chargeCorrelation = " << std::hex << m_correlationParameter.chargeCorrelation << " (charge sign) " << std::endl; } else { myCout << "\n Correlation parameters " << "[ hex ]" << std::endl; myCout << " chargeCorrelation = " << std::hex << m_correlationParameter.chargeCorrelation << std::endl; } } // reset to decimal output myCout << std::dec << std::endl; }
void L1GtMuonTemplate::setConditionParameter | ( | const std::vector< ObjectParameter > & | objParameter, |
const CorrelationParameter & | corrParameter | ||
) |
set functions
Definition at line 89 of file L1GtMuonTemplate.cc.
References m_correlationParameter, and m_objectParameter.
Referenced by L1GtTriggerMenuConfigOnlineProd::addCorrelationCondition(), L1GtTriggerMenuConfigOnlineProd::addMuonCondition(), and L1GtTriggerMenuXmlParser::parseMuon().
{ m_objectParameter = objParameter; m_correlationParameter = corrParameter; }
std::ostream& operator<< | ( | std::ostream & | os, |
const L1GtMuonTemplate & | result | ||
) | [friend] |
output stream operator
Definition at line 186 of file L1GtMuonTemplate.cc.
{ result.print(os); return os; }
Definition at line 119 of file L1GtMuonTemplate.h.
Referenced by copy(), correlationParameter(), print(), and setConditionParameter().
std::vector<ObjectParameter> L1GtMuonTemplate::m_objectParameter [private] |
variables containing the parameters
Definition at line 118 of file L1GtMuonTemplate.h.
Referenced by copy(), L1GtMuonTemplate(), objectParameter(), print(), and setConditionParameter().