CMS 3D CMS Logo

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

L1GtMuonTemplate Class Reference

#include <L1GtMuonTemplate.h>

Inheritance diagram for L1GtMuonTemplate:
L1GtCondition

List of all members.

Classes

struct  CorrelationParameter
struct  ObjectParameter

Public Member Functions

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

Private Member Functions

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

Private Attributes

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

Friends

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

Detailed Description

Description: L1 Global Trigger muon template.

Implementation: <TODO: enter implementation details>

Author:
: Vasile Mihai Ghete - HEPHY Vienna

$Date$ $Revision$

Definition at line 32 of file L1GtMuonTemplate.h.


Constructor & Destructor Documentation

L1GtMuonTemplate::L1GtMuonTemplate ( )

Definition at line 35 of file L1GtMuonTemplate.cc.

References CondMuon, and L1GtCondition::m_condCategory.

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

Definition at line 43 of file L1GtMuonTemplate.cc.

References CondMuon, and L1GtCondition::m_condCategory.

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

Definition at line 51 of file L1GtMuonTemplate.cc.

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

        : L1GtCondition(cName, CondMuon, cType)
{

    int nObjects = nrObjects();

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

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

}
L1GtMuonTemplate::L1GtMuonTemplate ( const L1GtMuonTemplate cp)

Definition at line 67 of file L1GtMuonTemplate.cc.

References copy().

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

Definition at line 74 of file L1GtMuonTemplate.cc.

{
    // empty now
}

Member Function Documentation

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

Definition at line 80 of file L1GtMuonTemplate.cc.

References copy().

{

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

print the condition

Reimplemented from L1GtCondition.

Definition at line 99 of file L1GtMuonTemplate.cc.

References L1GtMuonTemplate::CorrelationParameter::chargeCorrelation, L1GtMuonTemplate::CorrelationParameter::deltaEtaRange, L1GtMuonTemplate::CorrelationParameter::deltaPhiMaxbits, L1GtMuonTemplate::CorrelationParameter::deltaPhiRange0Word, L1GtMuonTemplate::CorrelationParameter::deltaPhiRange1Word, i, L1GtCondition::m_condType, m_correlationParameter, m_objectParameter, L1GtCondition::nrObjects(), Type1s, and L1GtCondition::wsc().

Referenced by operator<<(), L1GtTriggerMenuXmlParser::parseMuon(), and L1GtMuonCondition::print().

{

    myCout << "\n  L1GtMuonTemplate 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 << "    ptHighThreshold   = "
        << std::hex << m_objectParameter[i].ptHighThreshold << std::endl;
        myCout << "    ptLowThreshold    = "
        << std::hex << m_objectParameter[i].ptLowThreshold << std::endl;
        myCout << "    enableMip         = "
        << std::hex << m_objectParameter[i].enableMip << std::endl;
        myCout << "    enableIso         = "
        << std::hex << m_objectParameter[i].enableIso << std::endl;
        myCout << "    requestIso        = "
        << std::hex << m_objectParameter[i].requestIso << std::endl;
        myCout << "    qualityRange      = "
        << std::hex << m_objectParameter[i].qualityRange << std::endl;
        myCout << "    etaRange          = "
        << std::hex << m_objectParameter[i].etaRange << std::endl;
        myCout << "    phiHigh           = "
        << std::hex << m_objectParameter[i].phiHigh << std::endl;
        myCout << "    phiLow            = "
        << std::hex << m_objectParameter[i].phiLow << std::endl;
    }


    if ( wsc() ) {
        myCout << "  Correlation parameters " << "[ hex ]" <<  std::endl;

        myCout <<     "    chargeCorrelation  = "
        << std::hex << m_correlationParameter.chargeCorrelation
        << std::endl;

        myCout << "    deltaEtaRange      = "
        << std::hex << m_correlationParameter.deltaEtaRange << std::endl;
        myCout << "    deltaPhiRange1Word = "
        << std::hex << m_correlationParameter.deltaPhiRange1Word << std::endl;
        myCout << "    deltaPhiRange0Word = "
        << std::hex << m_correlationParameter.deltaPhiRange0Word << std::endl;
        myCout << "    deltaPhiMaxbits    = "
        << std::hex << m_correlationParameter.deltaPhiMaxbits << std::endl;
    } else {

        if (m_condType == Type1s) {
            myCout << "  Correlation parameters " << "[ hex ]" <<  std::endl;

            myCout <<     "    chargeCorrelation  = "
            << std::hex << m_correlationParameter.chargeCorrelation
            << " (charge sign) " << std::endl;

        } else {

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

            myCout <<     "    chargeCorrelation  = "
            << std::hex << m_correlationParameter.chargeCorrelation
            << std::endl;
        }
    }

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

Friends And Related Function Documentation

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

output stream operator

Definition at line 186 of file L1GtMuonTemplate.cc.

{
    result.print(os);
    return os;

}

Member Data Documentation

Definition at line 119 of file L1GtMuonTemplate.h.

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

variables containing the parameters

Definition at line 118 of file L1GtMuonTemplate.h.

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