#include <L1GtEnergySumTemplate.h>
Classes | |
struct | ObjectParameter |
typedef for a single object template More... | |
Public Member Functions | |
L1GtEnergySumTemplate () | |
L1GtEnergySumTemplate (const std::string &) | |
L1GtEnergySumTemplate (const L1GtEnergySumTemplate &) | |
L1GtEnergySumTemplate (const std::string &, const L1GtConditionType &) | |
const std::vector < ObjectParameter > * | objectParameter () const |
L1GtEnergySumTemplate & | operator= (const L1GtEnergySumTemplate &) |
virtual void | print (std::ostream &myCout) const |
print the condition | |
void | setConditionParameter (const std::vector< ObjectParameter > &) |
set functions | |
virtual | ~L1GtEnergySumTemplate () |
Private Member Functions | |
void | copy (const L1GtEnergySumTemplate &cp) |
copy function for copy constructor and operator= | |
Private Attributes | |
std::vector< ObjectParameter > | m_objectParameter |
variables containing the parameters | |
Friends | |
std::ostream & | operator<< (std::ostream &, const L1GtEnergySumTemplate &) |
output stream operator |
Description: L1 Global Trigger energy-sum template.
Implementation: <TODO: enter implementation details>
$Date$ $Revision$
Definition at line 34 of file L1GtEnergySumTemplate.h.
L1GtEnergySumTemplate::L1GtEnergySumTemplate | ( | ) |
Definition at line 35 of file L1GtEnergySumTemplate.cc.
References CondEnergySum, and L1GtCondition::m_condCategory.
: L1GtCondition() { m_condCategory = CondEnergySum; }
L1GtEnergySumTemplate::L1GtEnergySumTemplate | ( | const std::string & | cName | ) |
Definition at line 43 of file L1GtEnergySumTemplate.cc.
References CondEnergySum, and L1GtCondition::m_condCategory.
: L1GtCondition(cName) { m_condCategory = CondEnergySum; }
L1GtEnergySumTemplate::L1GtEnergySumTemplate | ( | const std::string & | cName, |
const L1GtConditionType & | cType | ||
) |
Definition at line 51 of file L1GtEnergySumTemplate.cc.
References CondEnergySum, L1GtCondition::m_condCategory, m_objectParameter, L1GtCondition::m_objectType, and L1GtCondition::nrObjects().
: L1GtCondition(cName, CondEnergySum, cType) { m_condCategory = CondEnergySum; // should be always 1 - they are global quantities... int nObjects = nrObjects(); if (nObjects > 0) { m_objectParameter.reserve(nObjects); m_objectType.reserve(nObjects); } }
L1GtEnergySumTemplate::L1GtEnergySumTemplate | ( | const L1GtEnergySumTemplate & | cp | ) |
Definition at line 68 of file L1GtEnergySumTemplate.cc.
References copy().
: L1GtCondition(cp.m_condName) { copy(cp); }
L1GtEnergySumTemplate::~L1GtEnergySumTemplate | ( | ) | [virtual] |
Definition at line 75 of file L1GtEnergySumTemplate.cc.
{
// empty now
}
void L1GtEnergySumTemplate::copy | ( | const L1GtEnergySumTemplate & | cp | ) | [private] |
copy function for copy constructor and operator=
Definition at line 132 of file L1GtEnergySumTemplate.cc.
References L1GtCondition::condCategory(), L1GtCondition::condChipNr(), L1GtCondition::condGEq(), L1GtCondition::condName(), L1GtCondition::condType(), L1GtCondition::m_condCategory, L1GtCondition::m_condChipNr, L1GtCondition::m_condGEq, L1GtCondition::m_condName, L1GtCondition::m_condType, m_objectParameter, L1GtCondition::m_objectType, objectParameter(), and L1GtCondition::objectType().
Referenced by L1GtEnergySumTemplate(), 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()); }
const std::vector<ObjectParameter>* L1GtEnergySumTemplate::objectParameter | ( | ) | const [inline] |
Definition at line 73 of file L1GtEnergySumTemplate.h.
References m_objectParameter.
Referenced by copy(), L1GtEnergySumCondition::evaluateCondition(), L1GtVhdlWriterCore::getEsumsSetupContentFromTriggerMenu(), and L1GtVmeWriterCore::writeVME().
{ return &m_objectParameter; }
L1GtEnergySumTemplate & L1GtEnergySumTemplate::operator= | ( | const L1GtEnergySumTemplate & | cp | ) |
Definition at line 81 of file L1GtEnergySumTemplate.cc.
References copy().
{ copy(cp); return *this; }
void L1GtEnergySumTemplate::print | ( | std::ostream & | myCout | ) | const [virtual] |
print the condition
Reimplemented from L1GtCondition.
Definition at line 98 of file L1GtEnergySumTemplate.cc.
References i, L1GtCondition::m_condType, m_objectParameter, L1GtCondition::nrObjects(), TypeETM, and TypeHTM.
Referenced by operator<<(), L1GtTriggerMenuXmlParser::parseEnergySum(), and L1GtEnergySumCondition::print().
{ myCout << "\n L1GtEnergySumTemplate 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 << " energyOverflow = " << std::hex << m_objectParameter[0].energyOverflow << std::endl; if (m_condType == TypeETM) { myCout << " phi = " << std::hex << m_objectParameter[i].phiRange1Word << std::hex << m_objectParameter[i].phiRange0Word << std::endl; } else if (m_condType == TypeHTM) { myCout << " phi = " << std::hex << m_objectParameter[i].phiRange0Word << std::endl; } } // reset to decimal output myCout << std::dec << std::endl; }
void L1GtEnergySumTemplate::setConditionParameter | ( | const std::vector< ObjectParameter > & | objParameter | ) |
set functions
Definition at line 90 of file L1GtEnergySumTemplate.cc.
References m_objectParameter.
Referenced by L1GtTriggerMenuConfigOnlineProd::addCorrelationCondition(), L1GtTriggerMenuConfigOnlineProd::addEnergySumCondition(), and L1GtTriggerMenuXmlParser::parseEnergySum().
{ m_objectParameter = objParameter; }
std::ostream& operator<< | ( | std::ostream & | os, |
const L1GtEnergySumTemplate & | result | ||
) | [friend] |
output stream operator
Definition at line 147 of file L1GtEnergySumTemplate.cc.
{ result.print(os); return os; }
std::vector<ObjectParameter> L1GtEnergySumTemplate::m_objectParameter [private] |
variables containing the parameters
Definition at line 94 of file L1GtEnergySumTemplate.h.
Referenced by copy(), L1GtEnergySumTemplate(), objectParameter(), print(), and setConditionParameter().