#include <L1GtExternalTemplate.h>
Public Member Functions | |
L1GtExternalTemplate () | |
L1GtExternalTemplate (const std::string &) | |
L1GtExternalTemplate (const L1GtExternalTemplate &) | |
L1GtExternalTemplate (const std::string &, const L1GtConditionType &) | |
L1GtExternalTemplate & | operator= (const L1GtExternalTemplate &) |
virtual void | print (std::ostream &myCout) const |
print the condition | |
virtual | ~L1GtExternalTemplate () |
Private Member Functions | |
void | copy (const L1GtExternalTemplate &cp) |
copy function for copy constructor and operator= | |
Friends | |
std::ostream & | operator<< (std::ostream &, const L1GtExternalTemplate &) |
output stream operator |
Description: L1 Global Trigger external template.
Implementation: Instantiated L1GtCondition. External conditions sends a logical result only. No changes are possible at the L1 GT level. External conditions can be used in physics algorithms in combination with other defined conditions, see L1GtFwd.
It has zero objects associated.
$Date$ $Revision$
Definition at line 37 of file L1GtExternalTemplate.h.
L1GtExternalTemplate::L1GtExternalTemplate | ( | ) |
Definition at line 40 of file L1GtExternalTemplate.cc.
References CondExternal, L1GtCondition::m_condCategory, L1GtCondition::m_condType, and TypeExternal.
: L1GtCondition() { m_condCategory = CondExternal; m_condType = TypeExternal; }
L1GtExternalTemplate::L1GtExternalTemplate | ( | const std::string & | cName | ) |
Definition at line 49 of file L1GtExternalTemplate.cc.
References CondExternal, L1GtCondition::m_condCategory, L1GtCondition::m_condType, and TypeExternal.
: L1GtCondition(cName) { m_condCategory = CondExternal; m_condType = TypeExternal; }
L1GtExternalTemplate::L1GtExternalTemplate | ( | const std::string & | cName, |
const L1GtConditionType & | cType | ||
) |
Definition at line 58 of file L1GtExternalTemplate.cc.
References CondExternal, L1GtCondition::m_condCategory, L1GtCondition::m_condType, L1GtCondition::m_objectType, L1GtCondition::nrObjects(), and TypeExternal.
: L1GtCondition(cName, CondEnergySum, cType) { m_condCategory = CondExternal; m_condType = TypeExternal; // actually no objects are sent by External, only the result of the condition int nObjects = nrObjects(); if (nObjects > 0) { m_objectType.reserve(nObjects); } }
L1GtExternalTemplate::L1GtExternalTemplate | ( | const L1GtExternalTemplate & | cp | ) |
Definition at line 75 of file L1GtExternalTemplate.cc.
References copy().
: L1GtCondition(cp.m_condName) { copy(cp); }
L1GtExternalTemplate::~L1GtExternalTemplate | ( | ) | [virtual] |
Definition at line 82 of file L1GtExternalTemplate.cc.
{
// empty now
}
void L1GtExternalTemplate::copy | ( | const L1GtExternalTemplate & | cp | ) | [private] |
copy function for copy constructor and operator=
Definition at line 108 of file L1GtExternalTemplate.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, L1GtCondition::m_objectType, and L1GtCondition::objectType().
Referenced by L1GtExternalTemplate(), 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(); }
L1GtExternalTemplate & L1GtExternalTemplate::operator= | ( | const L1GtExternalTemplate & | cp | ) |
Definition at line 88 of file L1GtExternalTemplate.cc.
References copy().
{ copy(cp); return *this; }
void L1GtExternalTemplate::print | ( | std::ostream & | myCout | ) | const [virtual] |
print the condition
Reimplemented from L1GtCondition.
Definition at line 96 of file L1GtExternalTemplate.cc.
Referenced by operator<<(), and L1GtExternalCondition::print().
{ myCout << "\n L1GtExternalTemplate print..." << std::endl; L1GtCondition::print(myCout); // reset to decimal output myCout << std::dec << std::endl; }
std::ostream& operator<< | ( | std::ostream & | os, |
const L1GtExternalTemplate & | result | ||
) | [friend] |
output stream operator
Definition at line 121 of file L1GtExternalTemplate.cc.
{ result.print(os); return os; }