CMS 3D CMS Logo

Classes | Public Member Functions | Protected Member Functions | Protected Attributes | Friends

L1GtCaloTemplate Class Reference

#include <L1GtCaloTemplate.h>

Inheritance diagram for L1GtCaloTemplate:
L1GtCondition

List of all members.

Classes

struct  CorrelationParameter
 typedef for correlation parameters More...
struct  ObjectParameter
 typedef for a single object template More...

Public Member Functions

const CorrelationParametercorrelationParameter () const
 L1GtCaloTemplate ()
 L1GtCaloTemplate (const std::string &)
 L1GtCaloTemplate (const L1GtCaloTemplate &)
 L1GtCaloTemplate (const std::string &, const L1GtConditionType &)
const std::vector
< ObjectParameter > * 
objectParameter () const
L1GtCaloTemplateoperator= (const L1GtCaloTemplate &)
virtual void print (std::ostream &myCout) const
 print the condition
void setConditionParameter (const std::vector< ObjectParameter > &objParameter, const CorrelationParameter &corrParameter)
 set functions
virtual ~L1GtCaloTemplate ()

Protected Member Functions

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

Protected Attributes

CorrelationParameter m_correlationParameter
std::vector< ObjectParameterm_objectParameter
 variables containing the parameters

Friends

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

Detailed Description

Description: L1 Global Trigger calo template.

Implementation: <TODO: enter implementation details>

Author:
: Vasile Mihai Ghete - HEPHY Vienna

$Date$ $Revision$

Definition at line 32 of file L1GtCaloTemplate.h.


Constructor & Destructor Documentation

L1GtCaloTemplate::L1GtCaloTemplate ( )

Definition at line 35 of file L1GtCaloTemplate.cc.

References CondCalo, and L1GtCondition::m_condCategory.

L1GtCaloTemplate::L1GtCaloTemplate ( const std::string &  cName)

Definition at line 43 of file L1GtCaloTemplate.cc.

References CondCalo, and L1GtCondition::m_condCategory.

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

Definition at line 51 of file L1GtCaloTemplate.cc.

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

        : L1GtCondition(cName, CondCalo, cType)
{

    int nObjects = nrObjects();

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

        m_objectType.reserve(nObjects);
    }

}
L1GtCaloTemplate::L1GtCaloTemplate ( const L1GtCaloTemplate cp)

Definition at line 66 of file L1GtCaloTemplate.cc.

References copy().

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

Definition at line 73 of file L1GtCaloTemplate.cc.

{
    // empty now
}

Member Function Documentation

void L1GtCaloTemplate::copy ( const L1GtCaloTemplate cp) [protected]
const CorrelationParameter* L1GtCaloTemplate::correlationParameter ( ) const [inline]
const std::vector<ObjectParameter>* L1GtCaloTemplate::objectParameter ( ) const [inline]
L1GtCaloTemplate & L1GtCaloTemplate::operator= ( const L1GtCaloTemplate cp)

Definition at line 79 of file L1GtCaloTemplate.cc.

References copy().

{

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

print the condition

Reimplemented from L1GtCondition.

Definition at line 98 of file L1GtCaloTemplate.cc.

References L1GtCaloTemplate::CorrelationParameter::deltaEtaRange, L1GtCaloTemplate::CorrelationParameter::deltaPhiMaxbits, L1GtCaloTemplate::CorrelationParameter::deltaPhiRange, i, m_correlationParameter, m_objectParameter, L1GtCondition::nrObjects(), and L1GtCondition::wsc().

Referenced by operator<<(), L1GtTriggerMenuXmlParser::parseCalo(), and L1GtCaloCondition::print().

{

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

    L1GtCondition::print(myCout);

    int nObjects = nrObjects();

    for (int i = 0; i < nObjects; i++) {
        myCout << std::endl;
        myCout << "  Template for object " << i << " [ hex ]" << std::endl;
        myCout << "    etThreshold       = "
        << std::hex << m_objectParameter[i].etThreshold << std::endl;
        myCout << "    etaRange          = "
        << std::hex << m_objectParameter[i].etaRange << std::endl;
        myCout << "    phiRange          = "
        << std::hex << m_objectParameter[i].phiRange << std::endl;
    }

    if ( wsc() ) {

        myCout << "  Correlation parameters " << "[ hex ]" <<  std::endl;

        myCout << "    deltaEtaRange     = "
        << std::hex << m_correlationParameter.deltaEtaRange << std::endl;
        myCout << "    deltaPhiRange     = "
        << std::hex << m_correlationParameter.deltaPhiRange << std::endl;
        myCout << "    deltaPhiMaxbits   = "
        << std::hex << m_correlationParameter.deltaPhiMaxbits << std::endl;
    }

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

Friends And Related Function Documentation

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

output stream operator

Definition at line 150 of file L1GtCaloTemplate.cc.

{
    result.print(os);
    return os;

}

Member Data Documentation

Definition at line 109 of file L1GtCaloTemplate.h.

Referenced by copy(), correlationParameter(), print(), and setConditionParameter().

variables containing the parameters

Definition at line 108 of file L1GtCaloTemplate.h.

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