CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Friends

L1GtBptxTemplate Class Reference

#include <L1GtBptxTemplate.h>

Inheritance diagram for L1GtBptxTemplate:
L1GtCondition

List of all members.

Public Member Functions

 L1GtBptxTemplate ()
 L1GtBptxTemplate (const std::string &)
 L1GtBptxTemplate (const L1GtBptxTemplate &)
 L1GtBptxTemplate (const std::string &, const L1GtConditionType &)
L1GtBptxTemplateoperator= (const L1GtBptxTemplate &)
virtual void print (std::ostream &myCout) const
 print the condition
virtual ~L1GtBptxTemplate ()

Private Member Functions

void copy (const L1GtBptxTemplate &cp)
 copy function for copy constructor and operator=

Friends

std::ostream & operator<< (std::ostream &, const L1GtBptxTemplate &)
 output stream operator

Detailed Description

Description: L1 Global Trigger BPTX template.

Implementation: Instantiated L1GtCondition. BPTX conditions sends a logical result only. No changes are possible at the L1 GT level. BPTX 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 L1GtBptxTemplate.h.


Constructor & Destructor Documentation

L1GtBptxTemplate::L1GtBptxTemplate ( )
L1GtBptxTemplate::L1GtBptxTemplate ( const std::string &  cName)
L1GtBptxTemplate::L1GtBptxTemplate ( const std::string &  cName,
const L1GtConditionType cType 
)

Definition at line 58 of file L1GtBptxTemplate.cc.

References CondBptx, L1GtCondition::m_condCategory, L1GtCondition::m_condType, L1GtCondition::m_objectType, L1GtCondition::nrObjects(), and TypeBptx.

        : L1GtCondition(cName, CondEnergySum, cType)
{

    m_condCategory = CondBptx;
    m_condType = TypeBptx;

    // actually no objects are sent by BPTX, only the result of the condition
    int nObjects = nrObjects();

    if (nObjects > 0) {
        m_objectType.reserve(nObjects);
    }

}
L1GtBptxTemplate::L1GtBptxTemplate ( const L1GtBptxTemplate cp)

Definition at line 75 of file L1GtBptxTemplate.cc.

References copy().

        : L1GtCondition(cp.m_condName)
{
    copy(cp);
}
L1GtBptxTemplate::~L1GtBptxTemplate ( ) [virtual]

Definition at line 82 of file L1GtBptxTemplate.cc.

{
    // empty now
}

Member Function Documentation

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

Definition at line 88 of file L1GtBptxTemplate.cc.

References copy().

{

    copy(cp);
    return *this;
}
void L1GtBptxTemplate::print ( std::ostream &  myCout) const [virtual]

print the condition

Reimplemented from L1GtCondition.

Definition at line 96 of file L1GtBptxTemplate.cc.

Referenced by operator<<(), and L1GtBptxCondition::print().

{

    myCout << "\n  L1GtBptxTemplate 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 L1GtBptxTemplate result 
) [friend]

output stream operator

Definition at line 121 of file L1GtBptxTemplate.cc.

{
    result.print(os);
    return os;

}