#include <L1GtCaloTemplate.h>
Classes | |
struct | CorrelationParameter |
typedef for correlation parameters More... | |
struct | ObjectParameter |
typedef for a single object template More... | |
Public Member Functions | |
const CorrelationParameter * | correlationParameter () const |
L1GtCaloTemplate () | |
L1GtCaloTemplate (const std::string &) | |
L1GtCaloTemplate (const L1GtCaloTemplate &) | |
L1GtCaloTemplate (const std::string &, const L1GtConditionType &) | |
const std::vector < ObjectParameter > * | objectParameter () const |
L1GtCaloTemplate & | operator= (const L1GtCaloTemplate &) |
virtual void | print (std::ostream &myCout) const |
print the condition | |
void | setConditionParameter (const std::vector< ObjectParameter > &objParameter, const CorrelationParameter &corrParameter) |
set functions | |
virtual | ~L1GtCaloTemplate () |
Protected Member Functions | |
void | copy (const L1GtCaloTemplate &cp) |
copy function for copy constructor and operator= | |
Protected Attributes | |
CorrelationParameter | m_correlationParameter |
std::vector< ObjectParameter > | m_objectParameter |
variables containing the parameters | |
Friends | |
std::ostream & | operator<< (std::ostream &, const L1GtCaloTemplate &) |
output stream operator |
Description: L1 Global Trigger calo template.
Implementation: <TODO: enter implementation details>
$Date$ $Revision$
Definition at line 32 of file L1GtCaloTemplate.h.
L1GtCaloTemplate::L1GtCaloTemplate | ( | ) |
Definition at line 35 of file L1GtCaloTemplate.cc.
References CondCalo, and L1GtCondition::m_condCategory.
: L1GtCondition() { m_condCategory = CondCalo; }
L1GtCaloTemplate::L1GtCaloTemplate | ( | const std::string & | cName | ) |
Definition at line 43 of file L1GtCaloTemplate.cc.
References CondCalo, and L1GtCondition::m_condCategory.
: L1GtCondition(cName) { m_condCategory = CondCalo; }
L1GtCaloTemplate::L1GtCaloTemplate | ( | const std::string & | cName, |
const L1GtConditionType & | cType | ||
) |
Definition at line 51 of file L1GtCaloTemplate.cc.
References m_objectParameter, L1GtCondition::m_objectType, and L1GtCondition::nrObjects().
: L1GtCondition(cName, CondCalo, cType) { int nObjects = nrObjects(); if (nObjects > 0) { m_objectParameter.reserve(nObjects); m_objectType.reserve(nObjects); } }
L1GtCaloTemplate::L1GtCaloTemplate | ( | const L1GtCaloTemplate & | cp | ) |
Definition at line 66 of file L1GtCaloTemplate.cc.
References copy().
: L1GtCondition(cp.m_condName) { copy(cp); }
L1GtCaloTemplate::~L1GtCaloTemplate | ( | ) | [virtual] |
Definition at line 73 of file L1GtCaloTemplate.cc.
{
// empty now
}
void L1GtCaloTemplate::copy | ( | const L1GtCaloTemplate & | cp | ) | [protected] |
copy function for copy constructor and operator=
Definition at line 134 of file L1GtCaloTemplate.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 L1GtCaloTemplate(), 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* L1GtCaloTemplate::correlationParameter | ( | ) | const [inline] |
Definition at line 82 of file L1GtCaloTemplate.h.
References m_correlationParameter.
Referenced by copy(), L1GtCaloCondition::evaluateCondition(), and L1GtVhdlWriterCore::getCaloSetupContentFromTriggerMenu().
{ return &m_correlationParameter; }
const std::vector<ObjectParameter>* L1GtCaloTemplate::objectParameter | ( | ) | const [inline] |
Definition at line 77 of file L1GtCaloTemplate.h.
References m_objectParameter.
Referenced by L1GtCaloCondition::checkObjectParameter(), copy(), L1GtVhdlWriterCore::getCaloSetupContentFromTriggerMenu(), L1GtVhdlWriterCore::getDefValsFromTriggerMenu(), and L1GtVmeWriterCore::writeVME().
{ return &m_objectParameter; }
L1GtCaloTemplate & L1GtCaloTemplate::operator= | ( | const L1GtCaloTemplate & | cp | ) |
void L1GtCaloTemplate::print | ( | std::ostream & | myCout | ) | const [virtual] |
print the condition
Reimplemented from L1GtCondition.
Definition at line 98 of file L1GtCaloTemplate.cc.
References L1GtCaloTemplate::CorrelationParameter::deltaEtaRange, L1GtCaloTemplate::CorrelationParameter::deltaPhiMaxbits, L1GtCaloTemplate::CorrelationParameter::deltaPhiRange, i, m_correlationParameter, m_objectParameter, L1GtCondition::nrObjects(), and L1GtCondition::wsc().
Referenced by operator<<(), L1GtTriggerMenuXmlParser::parseCalo(), and L1GtCaloCondition::print().
{ myCout << "\n L1GtCaloTemplate 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 << " etThreshold = " << std::hex << m_objectParameter[i].etThreshold << std::endl; myCout << " etaRange = " << std::hex << m_objectParameter[i].etaRange << std::endl; myCout << " phiRange = " << std::hex << m_objectParameter[i].phiRange << std::endl; } if ( wsc() ) { myCout << " Correlation parameters " << "[ hex ]" << std::endl; myCout << " deltaEtaRange = " << std::hex << m_correlationParameter.deltaEtaRange << std::endl; myCout << " deltaPhiRange = " << std::hex << m_correlationParameter.deltaPhiRange << std::endl; myCout << " deltaPhiMaxbits = " << std::hex << m_correlationParameter.deltaPhiMaxbits << std::endl; } // reset to decimal output myCout << std::dec << std::endl; }
void L1GtCaloTemplate::setConditionParameter | ( | const std::vector< ObjectParameter > & | objParameter, |
const CorrelationParameter & | corrParameter | ||
) |
set functions
Definition at line 88 of file L1GtCaloTemplate.cc.
References m_correlationParameter, and m_objectParameter.
Referenced by L1GtTriggerMenuConfigOnlineProd::addCaloCondition(), L1GtTriggerMenuConfigOnlineProd::addCorrelationCondition(), and L1GtTriggerMenuXmlParser::parseCalo().
{ m_objectParameter = objParameter; m_correlationParameter = corrParameter; }
std::ostream& operator<< | ( | std::ostream & | os, |
const L1GtCaloTemplate & | result | ||
) | [friend] |
output stream operator
Definition at line 150 of file L1GtCaloTemplate.cc.
{ result.print(os); return os; }
Definition at line 109 of file L1GtCaloTemplate.h.
Referenced by copy(), correlationParameter(), print(), and setConditionParameter().
std::vector<ObjectParameter> L1GtCaloTemplate::m_objectParameter [protected] |
variables containing the parameters
Definition at line 108 of file L1GtCaloTemplate.h.
Referenced by copy(), L1GtCaloTemplate(), objectParameter(), print(), and setConditionParameter().