CMS 3D CMS Logo

Classes | Public Member Functions | Private Member Functions | Private Attributes | Friends

L1GtJetCountsTemplate Class Reference

#include <L1GtJetCountsTemplate.h>

Inheritance diagram for L1GtJetCountsTemplate:
L1GtCondition

List of all members.

Classes

struct  ObjectParameter
 typedef for a single object template More...

Public Member Functions

 L1GtJetCountsTemplate ()
 L1GtJetCountsTemplate (const std::string &)
 L1GtJetCountsTemplate (const L1GtJetCountsTemplate &)
 L1GtJetCountsTemplate (const std::string &, const L1GtConditionType &)
const std::vector
< ObjectParameter > * 
objectParameter () const
L1GtJetCountsTemplateoperator= (const L1GtJetCountsTemplate &)
virtual void print (std::ostream &myCout) const
 print the condition
void setConditionParameter (const std::vector< ObjectParameter > &)
 set functions
virtual ~L1GtJetCountsTemplate ()

Private Member Functions

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

Private Attributes

std::vector< ObjectParameterm_objectParameter
 variables containing the parameters

Friends

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

Detailed Description

Description: L1 Global Trigger "jet counts" template.

Implementation: <TODO: enter implementation details>

Author:
: Vasile Mihai Ghete - HEPHY Vienna

$Date$ $Revision$

Definition at line 34 of file L1GtJetCountsTemplate.h.


Constructor & Destructor Documentation

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

Definition at line 51 of file L1GtJetCountsTemplate.cc.

References CondJetCounts, JetCounts, L1GtCondition::m_condCategory, m_objectParameter, L1GtCondition::m_objectType, and L1GtCondition::nrObjects().

        : L1GtCondition(cName, CondJetCounts, cType)
{

    m_condCategory = CondJetCounts;

    // should be always 1 - they are global quantities...
    int nObjects = nrObjects();

    if (nObjects > 0) {
        m_objectParameter.reserve(nObjects);

        m_objectType.reserve(nObjects);
        m_objectType.assign(nObjects, JetCounts);
    }

}
L1GtJetCountsTemplate::L1GtJetCountsTemplate ( const L1GtJetCountsTemplate cp)

Definition at line 71 of file L1GtJetCountsTemplate.cc.

References copy().

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

Definition at line 78 of file L1GtJetCountsTemplate.cc.

{
    // empty now
}

Member Function Documentation

void L1GtJetCountsTemplate::copy ( const L1GtJetCountsTemplate cp) [private]
const std::vector<ObjectParameter>* L1GtJetCountsTemplate::objectParameter ( ) const [inline]
L1GtJetCountsTemplate & L1GtJetCountsTemplate::operator= ( const L1GtJetCountsTemplate cp)

Definition at line 84 of file L1GtJetCountsTemplate.cc.

References copy().

{

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

print the condition

Reimplemented from L1GtCondition.

Definition at line 101 of file L1GtJetCountsTemplate.cc.

References i, m_objectParameter, and L1GtCondition::nrObjects().

Referenced by operator<<(), L1GtTriggerMenuXmlParser::parseJetCounts(), and L1GtJetCountsCondition::print().

{

    myCout << "\n  L1GtJetCountsTemplate print..." << std::endl;

    L1GtCondition::print(myCout);

    int nObjects = nrObjects();

    for (int i = 0; i < nObjects; i++) {
        myCout << std::endl;
        myCout << "  Template for object " << i << std::endl;
        myCout << "    countIndex        = "
        << std::hex << m_objectParameter[i].countIndex << " [ dec ]" << std::endl;
        myCout << "    countThreshold    = "
        << std::hex << m_objectParameter[i].countThreshold << " [ hex ]" << std::endl;
        myCout << "    countOverflow     = "
        <<  std::hex << m_objectParameter[0].countOverflow << std::endl;

    }

    // reset to decimal output
    myCout << std::dec << std::endl;
}
void L1GtJetCountsTemplate::setConditionParameter ( const std::vector< ObjectParameter > &  objParameter)

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const L1GtJetCountsTemplate result 
) [friend]

output stream operator

Definition at line 141 of file L1GtJetCountsTemplate.cc.

{
    result.print(os);
    return os;

}

Member Data Documentation

variables containing the parameters

Definition at line 96 of file L1GtJetCountsTemplate.h.

Referenced by copy(), L1GtJetCountsTemplate(), objectParameter(), print(), and setConditionParameter().