CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Friends

L1GtCastorTemplate Class Reference

#include <L1GtCastorTemplate.h>

Inheritance diagram for L1GtCastorTemplate:
L1GtCondition

List of all members.

Public Member Functions

 L1GtCastorTemplate ()
 L1GtCastorTemplate (const std::string &)
 L1GtCastorTemplate (const L1GtCastorTemplate &)
 L1GtCastorTemplate (const std::string &, const L1GtConditionType &)
L1GtCastorTemplateoperator= (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

Detailed Description

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.

Author:
: Vasile Mihai Ghete - HEPHY Vienna

$Date$ $Revision$

Definition at line 36 of file L1GtCastorTemplate.h.


Constructor & Destructor Documentation

L1GtCastorTemplate::L1GtCastorTemplate ( )
L1GtCastorTemplate::L1GtCastorTemplate ( const std::string &  cName)
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
}

Member Function Documentation

void L1GtCastorTemplate::copy ( const L1GtCastorTemplate cp) [private]
L1GtCastorTemplate & L1GtCastorTemplate::operator= ( const L1GtCastorTemplate cp)

Definition at line 87 of file L1GtCastorTemplate.cc.

References copy().

{

    copy(cp);
    return *this;
}
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;
}

Friends And Related Function Documentation

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;

}