#include <L1GtCastorTemplate.h>
Public Member Functions | |
L1GtCastorTemplate () | |
L1GtCastorTemplate (const std::string &) | |
L1GtCastorTemplate (const L1GtCastorTemplate &) | |
L1GtCastorTemplate (const std::string &, const L1GtConditionType &) | |
L1GtCastorTemplate & | operator= (const L1GtCastorTemplate &) |
virtual void | print (std::ostream &myCout) const |
print the condition | |
virtual | ~L1GtCastorTemplate () |
Private Member Functions | |
void | copy (const L1GtCastorTemplate &cp) |
copy function for copy constructor and operator= | |
Friends | |
std::ostream & | operator<< (std::ostream &, const L1GtCastorTemplate &) |
output stream operator |
Description: L1 Global Trigger CASTOR template.
Implementation: Instantiated L1GtCondition. CASTOR conditions sends a logical result only. No changes are possible at the L1 GT level. CASTOR conditions can be used in physics algorithms in combination with muon, calorimeter, energy sum and jet-counts conditions. It has zero objects.
$Date$ $Revision$
Definition at line 36 of file L1GtCastorTemplate.h.
L1GtCastorTemplate::L1GtCastorTemplate | ( | ) |
Definition at line 39 of file L1GtCastorTemplate.cc.
References CondCastor, L1GtCondition::m_condCategory, L1GtCondition::m_condType, and TypeCastor.
: L1GtCondition() { m_condCategory = CondCastor; m_condType = TypeCastor; }
L1GtCastorTemplate::L1GtCastorTemplate | ( | const std::string & | cName | ) |
Definition at line 48 of file L1GtCastorTemplate.cc.
References CondCastor, L1GtCondition::m_condCategory, L1GtCondition::m_condType, and TypeCastor.
: L1GtCondition(cName) { m_condCategory = CondCastor; m_condType = TypeCastor; }
L1GtCastorTemplate::L1GtCastorTemplate | ( | const std::string & | cName, |
const L1GtConditionType & | cType | ||
) |
Definition at line 57 of file L1GtCastorTemplate.cc.
References CondCastor, L1GtCondition::m_condCategory, L1GtCondition::m_condType, L1GtCondition::m_objectType, L1GtCondition::nrObjects(), and TypeCastor.
: L1GtCondition(cName, CondEnergySum, cType) { m_condCategory = CondCastor; m_condType = TypeCastor; // actually no objects are sent by CASTOR, only the result of the condition int nObjects = nrObjects(); if (nObjects > 0) { m_objectType.reserve(nObjects); } }
L1GtCastorTemplate::L1GtCastorTemplate | ( | const L1GtCastorTemplate & | cp | ) |
Definition at line 74 of file L1GtCastorTemplate.cc.
References copy().
: L1GtCondition(cp.m_condName) { copy(cp); }
L1GtCastorTemplate::~L1GtCastorTemplate | ( | ) | [virtual] |
Definition at line 81 of file L1GtCastorTemplate.cc.
{
// empty now
}
void L1GtCastorTemplate::copy | ( | const L1GtCastorTemplate & | cp | ) | [private] |
copy function for copy constructor and operator=
Definition at line 107 of file L1GtCastorTemplate.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 L1GtCastorTemplate(), 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(); }
L1GtCastorTemplate & L1GtCastorTemplate::operator= | ( | const L1GtCastorTemplate & | cp | ) |
void L1GtCastorTemplate::print | ( | std::ostream & | myCout | ) | const [virtual] |
print the condition
Reimplemented from L1GtCondition.
Definition at line 95 of file L1GtCastorTemplate.cc.
Referenced by operator<<(), L1GtTriggerMenuXmlParser::parseCastor(), and L1GtCastorCondition::print().
{ myCout << "\n L1GtCastorTemplate print..." << std::endl; L1GtCondition::print(myCout); // reset to decimal output myCout << std::dec << std::endl; }
std::ostream& operator<< | ( | std::ostream & | os, |
const L1GtCastorTemplate & | result | ||
) | [friend] |
output stream operator
Definition at line 120 of file L1GtCastorTemplate.cc.
{ result.print(os); return os; }