#include <CondFormats/L1TObjects/interface/L1GtHfBitCountsTemplate.h>
Public Member Functions | |
L1GtHfBitCountsTemplate (const L1GtHfBitCountsTemplate &) | |
L1GtHfBitCountsTemplate (const std::string &, const L1GtConditionType &) | |
L1GtHfBitCountsTemplate (const std::string &) | |
L1GtHfBitCountsTemplate () | |
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 | |
Classes | |
struct | ObjectParameter |
typedef for a single object template More... |
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.
00036 : L1GtCondition() 00037 { 00038 00039 m_condCategory = CondHfBitCounts; 00040 00041 }
L1GtHfBitCountsTemplate::L1GtHfBitCountsTemplate | ( | const std::string & | cName | ) |
Definition at line 43 of file L1GtHfBitCountsTemplate.cc.
References CondHfBitCounts, and L1GtCondition::m_condCategory.
00044 : L1GtCondition(cName) 00045 { 00046 00047 m_condCategory = CondHfBitCounts; 00048 00049 }
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().
00053 : L1GtCondition(cName, CondHfBitCounts, cType) 00054 { 00055 00056 m_condCategory = CondHfBitCounts; 00057 00058 // should be always 1 - they are global quantities... 00059 int nObjects = nrObjects(); 00060 00061 if (nObjects > 0) { 00062 m_objectParameter.reserve(nObjects); 00063 00064 m_objectType.reserve(nObjects); 00065 m_objectType.assign(nObjects, HfBitCounts); 00066 } 00067 00068 }
L1GtHfBitCountsTemplate::L1GtHfBitCountsTemplate | ( | const L1GtHfBitCountsTemplate & | cp | ) |
Definition at line 71 of file L1GtHfBitCountsTemplate.cc.
References copy().
00072 : L1GtCondition(cp.m_condName) 00073 { 00074 copy(cp); 00075 }
L1GtHfBitCountsTemplate::~L1GtHfBitCountsTemplate | ( | ) | [virtual] |
void L1GtHfBitCountsTemplate::copy | ( | const L1GtHfBitCountsTemplate & | cp | ) | [private] |
copy function for copy constructor and operator=
Definition at line 133 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=().
00134 { 00135 00136 m_condName = cp.condName(); 00137 m_condCategory = cp.condCategory(); 00138 m_condType = cp.condType(); 00139 m_objectType = cp.objectType(); 00140 m_condGEq = cp.condGEq(); 00141 m_condChipNr = cp.condChipNr(); 00142 00143 m_objectParameter = *(cp.objectParameter()); 00144 00145 }
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().
00069 { 00070 return &m_objectParameter; 00071 }
L1GtHfBitCountsTemplate & L1GtHfBitCountsTemplate::operator= | ( | const L1GtHfBitCountsTemplate & | cp | ) |
Definition at line 84 of file L1GtHfBitCountsTemplate.cc.
References copy().
00085 { 00086 00087 copy(cp); 00088 return *this; 00089 }
void L1GtHfBitCountsTemplate::print | ( | std::ostream & | myCout | ) | const [virtual] |
print the condition
Reimplemented from L1GtCondition.
Definition at line 101 of file L1GtHfBitCountsTemplate.cc.
References lat::endl(), i, m_objectParameter, L1GtCondition::nrObjects(), and L1GtCondition::print().
Referenced by operator<<(), L1GtTriggerMenuXmlParser::parseHfBitCounts(), and L1GtHfBitCountsCondition::print().
00102 { 00103 00104 myCout << "\n L1GtHfBitCountsTemplate print..." << std::endl; 00105 00106 L1GtCondition::print(myCout); 00107 00108 int nObjects = nrObjects(); 00109 00110 for (int i = 0; i < nObjects; i++) { 00111 myCout << std::endl; 00112 myCout << " Template for object " << i << std::endl; 00113 myCout << " countIndex = " 00114 << std::hex << m_objectParameter[i].countIndex << " [ dec ]" << std::endl; 00115 myCout << " countThreshold = " 00116 << std::hex << m_objectParameter[i].countThreshold << " [ hex ]" << std::endl; 00117 00118 } 00119 00120 // reset to decimal output 00121 myCout << std::dec << std::endl; 00122 myCout << "\n ...end L1GtHfBitCountsTemplate print." << std::endl; 00123 }
void L1GtHfBitCountsTemplate::setConditionParameter | ( | const std::vector< ObjectParameter > & | objParameter | ) |
set functions
Definition at line 93 of file L1GtHfBitCountsTemplate.cc.
References m_objectParameter.
Referenced by L1GtTriggerMenuXmlParser::parseHfBitCounts().
00095 { 00096 00097 m_objectParameter = objParameter; 00098 00099 }
std::ostream& operator<< | ( | std::ostream & | os, | |
const L1GtHfBitCountsTemplate & | result | |||
) | [friend] |
output stream operator
Definition at line 126 of file L1GtHfBitCountsTemplate.cc.
00127 { 00128 result.print(os); 00129 return os; 00130 00131 }
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().