CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Friends

L1GtExternalTemplate Class Reference

#include <L1GtExternalTemplate.h>

Inheritance diagram for L1GtExternalTemplate:
L1GtCondition

List of all members.

Public Member Functions

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

Detailed Description

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.

Author:
: Vasile Mihai Ghete - HEPHY Vienna

$Date$ $Revision$

Definition at line 37 of file L1GtExternalTemplate.h.


Constructor & Destructor Documentation

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

Member Function Documentation

void L1GtExternalTemplate::copy ( const L1GtExternalTemplate cp) [private]
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;
}

Friends And Related Function Documentation

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;

}