#include <L1GtHfBitCountsTemplate.h>
Classes | |
struct | ObjectParameter |
typedef for a single object template More... | |
Public Member Functions | |
L1GtHfBitCountsTemplate () | |
L1GtHfBitCountsTemplate (const std::string &) | |
L1GtHfBitCountsTemplate (const L1GtHfBitCountsTemplate &) | |
L1GtHfBitCountsTemplate (const std::string &, const L1GtConditionType &) | |
const std::vector < ObjectParameter > * | objectParameter () const |
L1GtHfBitCountsTemplate & | operator= (const L1GtHfBitCountsTemplate &) |
virtual void | print (std::ostream &myCout) const |
print the condition | |
void | setConditionParameter (const std::vector< ObjectParameter > &) |
set functions | |
virtual | ~L1GtHfBitCountsTemplate () |
Private Member Functions | |
void | copy (const L1GtHfBitCountsTemplate &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 L1GtHfBitCountsTemplate &) |
output stream operator |
Description: L1 Global Trigger "HF bit counts" template.
Implementation: <TODO: enter implementation details>
$Date$ $Revision$
Definition at line 32 of file L1GtHfBitCountsTemplate.h.
L1GtHfBitCountsTemplate::L1GtHfBitCountsTemplate | ( | ) |
Definition at line 35 of file L1GtHfBitCountsTemplate.cc.
References CondHfBitCounts, and L1GtCondition::m_condCategory.
: L1GtCondition() { m_condCategory = CondHfBitCounts; }
L1GtHfBitCountsTemplate::L1GtHfBitCountsTemplate | ( | const std::string & | cName | ) |
Definition at line 43 of file L1GtHfBitCountsTemplate.cc.
References CondHfBitCounts, and L1GtCondition::m_condCategory.
: L1GtCondition(cName) { m_condCategory = CondHfBitCounts; }
L1GtHfBitCountsTemplate::L1GtHfBitCountsTemplate | ( | const std::string & | cName, |
const L1GtConditionType & | cType | ||
) |
Definition at line 51 of file L1GtHfBitCountsTemplate.cc.
References CondHfBitCounts, HfBitCounts, L1GtCondition::m_condCategory, m_objectParameter, L1GtCondition::m_objectType, and L1GtCondition::nrObjects().
: L1GtCondition(cName, CondHfBitCounts, cType) { m_condCategory = CondHfBitCounts; // should be always 1 - they are global quantities... int nObjects = nrObjects(); if (nObjects > 0) { m_objectParameter.reserve(nObjects); m_objectType.reserve(nObjects); m_objectType.assign(nObjects, HfBitCounts); } }
L1GtHfBitCountsTemplate::L1GtHfBitCountsTemplate | ( | const L1GtHfBitCountsTemplate & | cp | ) |
Definition at line 71 of file L1GtHfBitCountsTemplate.cc.
References copy().
: L1GtCondition(cp.m_condName) { copy(cp); }
L1GtHfBitCountsTemplate::~L1GtHfBitCountsTemplate | ( | ) | [virtual] |
Definition at line 78 of file L1GtHfBitCountsTemplate.cc.
{
// empty now
}
void L1GtHfBitCountsTemplate::copy | ( | const L1GtHfBitCountsTemplate & | cp | ) | [private] |
copy function for copy constructor and operator=
Definition at line 132 of file L1GtHfBitCountsTemplate.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 L1GtHfBitCountsTemplate(), 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>* L1GtHfBitCountsTemplate::objectParameter | ( | ) | const [inline] |
Definition at line 68 of file L1GtHfBitCountsTemplate.h.
References m_objectParameter.
Referenced by copy(), and L1GtHfBitCountsCondition::evaluateCondition().
{ return &m_objectParameter; }
L1GtHfBitCountsTemplate & L1GtHfBitCountsTemplate::operator= | ( | const L1GtHfBitCountsTemplate & | cp | ) |
Definition at line 84 of file L1GtHfBitCountsTemplate.cc.
References copy().
{ copy(cp); return *this; }
void L1GtHfBitCountsTemplate::print | ( | std::ostream & | myCout | ) | const [virtual] |
print the condition
Reimplemented from L1GtCondition.
Definition at line 101 of file L1GtHfBitCountsTemplate.cc.
References i, m_objectParameter, and L1GtCondition::nrObjects().
Referenced by operator<<(), L1GtTriggerMenuXmlParser::parseHfBitCounts(), and L1GtHfBitCountsCondition::print().
{ myCout << "\n L1GtHfBitCountsTemplate print..." << std::endl; L1GtCondition::print(myCout); int nObjects = nrObjects(); for (int i = 0; i < nObjects; i++) { myCout << std::endl; myCout << " Template for object " << i << std::endl; myCout << " countIndex = " << std::hex << m_objectParameter[i].countIndex << " [ dec ]" << std::endl; myCout << " countThreshold = " << std::hex << m_objectParameter[i].countThreshold << " [ hex ]" << std::endl; } // reset to decimal output myCout << std::dec << std::endl; }
void L1GtHfBitCountsTemplate::setConditionParameter | ( | const std::vector< ObjectParameter > & | objParameter | ) |
set functions
Definition at line 93 of file L1GtHfBitCountsTemplate.cc.
References m_objectParameter.
Referenced by L1GtTriggerMenuConfigOnlineProd::addHfBitCountsCondition(), and L1GtTriggerMenuXmlParser::parseHfBitCounts().
{ m_objectParameter = objParameter; }
std::ostream& operator<< | ( | std::ostream & | os, |
const L1GtHfBitCountsTemplate & | result | ||
) | [friend] |
output stream operator
Definition at line 125 of file L1GtHfBitCountsTemplate.cc.
{ result.print(os); return os; }
std::vector<ObjectParameter> L1GtHfBitCountsTemplate::m_objectParameter [private] |
variables containing the parameters
Definition at line 93 of file L1GtHfBitCountsTemplate.h.
Referenced by copy(), L1GtHfBitCountsTemplate(), objectParameter(), print(), and setConditionParameter().