CMS 3D CMS Logo

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

L1GtCorrelationTemplate Class Reference

#include <L1GtCorrelationTemplate.h>

Inheritance diagram for L1GtCorrelationTemplate:
L1GtCondition

List of all members.

Classes

struct  CorrelationParameter
 typedef for correlation parameters More...

Public Member Functions

const L1GtConditionCategory cond0Category () const
 get / set the category of the two sub-conditions
const int cond0Index () const
 get / set the index of the two sub-conditions in the cor* vector from menu
const L1GtConditionCategory cond1Category () const
const int cond1Index () const
const CorrelationParametercorrelationParameter () const
 get / set correlation parameters
 L1GtCorrelationTemplate (const std::string &)
 from condition name
 L1GtCorrelationTemplate (const L1GtCorrelationTemplate &)
 copy constructor
 L1GtCorrelationTemplate ()
 L1GtCorrelationTemplate (const std::string &, const L1GtConditionCategory &, const L1GtConditionCategory &, const int, const int)
L1GtCorrelationTemplateoperator= (const L1GtCorrelationTemplate &)
 assign operator
virtual void print (std::ostream &myCout) const
 print the condition
void setCond0Category (const L1GtConditionCategory &)
void setCond0Index (const int &)
void setCond1Category (const L1GtConditionCategory &)
void setCond1Index (const int &)
void setCorrelationParameter (const CorrelationParameter &corrParameter)
virtual ~L1GtCorrelationTemplate ()
 destructor

Private Member Functions

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

Private Attributes

L1GtConditionCategory m_cond0Category
int m_cond0Index
L1GtConditionCategory m_cond1Category
int m_cond1Index
CorrelationParameter m_correlationParameter

Friends

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

Detailed Description

Description: L1 Global Trigger correlation template. Includes spatial correlation for two objects of different type.

Implementation: <TODO: enter implementation details>

Author:
: Vasile Mihai Ghete - HEPHY Vienna

$Date$ $Revision$

Definition at line 37 of file L1GtCorrelationTemplate.h.


Constructor & Destructor Documentation

L1GtCorrelationTemplate::L1GtCorrelationTemplate ( )
L1GtCorrelationTemplate::L1GtCorrelationTemplate ( const std::string &  cName)
L1GtCorrelationTemplate::L1GtCorrelationTemplate ( const std::string &  cName,
const L1GtConditionCategory cond0Cat,
const L1GtConditionCategory cond1Cat,
const int  cond0Index,
const int  cond1index 
)

from condition name, the category of first sub-condition, the category of the second sub-condition, the index of first sub-condition in the cor* vector, the index of second sub-condition in the cor* vector

Definition at line 84 of file L1GtCorrelationTemplate.cc.

References CondCorrelation, L1GtCondition::m_condCategory, L1GtCondition::m_condChipNr, L1GtCondition::m_condType, L1GtCondition::m_objectType, L1GtCondition::nrObjects(), and Type2cor.

                              :
    L1GtCondition(cName),
            m_cond0Category(cond0Cat),
            m_cond1Category(cond1Cat),
            m_cond0Index(cond0Index),
            m_cond1Index(cond1index)

{

    m_condCategory = CondCorrelation;
    m_condType = Type2cor;
    m_condChipNr = -1;

    // there are in fact two objects
    int nObjects = nrObjects();

    if (nObjects> 0) {
        m_objectType.resize(nObjects);
    }
}
L1GtCorrelationTemplate::L1GtCorrelationTemplate ( const L1GtCorrelationTemplate cp)

copy constructor

Definition at line 110 of file L1GtCorrelationTemplate.cc.

References copy().

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

destructor

Definition at line 117 of file L1GtCorrelationTemplate.cc.

{
    // empty now
}

Member Function Documentation

const L1GtConditionCategory L1GtCorrelationTemplate::cond0Category ( ) const [inline]

get / set the category of the two sub-conditions

Definition at line 80 of file L1GtCorrelationTemplate.h.

References m_cond0Category.

Referenced by copy(), L1GtCorrelationCondition::evaluateCondition(), and L1GlobalTriggerGTL::run().

                                                             {
        return m_cond0Category;
    }
const int L1GtCorrelationTemplate::cond0Index ( ) const [inline]

get / set the index of the two sub-conditions in the cor* vector from menu

Definition at line 92 of file L1GtCorrelationTemplate.h.

References m_cond0Index.

Referenced by copy(), and L1GlobalTriggerGTL::run().

                                        {
        return m_cond0Index;
    }
const L1GtConditionCategory L1GtCorrelationTemplate::cond1Category ( ) const [inline]
const int L1GtCorrelationTemplate::cond1Index ( ) const [inline]

Definition at line 96 of file L1GtCorrelationTemplate.h.

References m_cond1Index.

Referenced by copy(), and L1GlobalTriggerGTL::run().

                                        {
        return m_cond1Index;
    }
void L1GtCorrelationTemplate::copy ( const L1GtCorrelationTemplate cp) [private]
const CorrelationParameter* L1GtCorrelationTemplate::correlationParameter ( ) const [inline]

get / set correlation parameters

Definition at line 105 of file L1GtCorrelationTemplate.h.

References m_correlationParameter.

Referenced by copy(), and L1GtCorrelationCondition::evaluateCondition().

    {
        return &m_correlationParameter;
    }
L1GtCorrelationTemplate & L1GtCorrelationTemplate::operator= ( const L1GtCorrelationTemplate cp)

assign operator

Definition at line 123 of file L1GtCorrelationTemplate.cc.

References copy().

{

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

print the condition

Reimplemented from L1GtCondition.

Definition at line 162 of file L1GtCorrelationTemplate.cc.

References L1GtCorrelationTemplate::CorrelationParameter::deltaEtaRange, L1GtCorrelationTemplate::CorrelationParameter::deltaPhiMaxbits, L1GtCorrelationTemplate::CorrelationParameter::deltaPhiRange, m_cond0Category, m_cond0Index, m_cond1Category, m_cond1Index, and m_correlationParameter.

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

{

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

    L1GtCondition::print(myCout);

    myCout << "\n  First sub-condition category:  " << m_cond0Category <<  std::endl;
    myCout <<   "  Second sub-condition category: " << m_cond1Category <<  std::endl;

    myCout << "\n  First sub-condition index:  " << m_cond0Index <<  std::endl;
    myCout <<   "  Second sub-condition index: " << m_cond1Index <<  std::endl;

    myCout << "\n  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 L1GtCorrelationTemplate::setCond0Category ( const L1GtConditionCategory condCateg)

Definition at line 131 of file L1GtCorrelationTemplate.cc.

References m_cond0Category.

Referenced by L1GtTriggerMenuConfigOnlineProd::addCorrelationCondition().

                                                {

    m_cond0Category = condCateg;
}
void L1GtCorrelationTemplate::setCond0Index ( const int &  condIndex)

Definition at line 145 of file L1GtCorrelationTemplate.cc.

References m_cond0Index.

Referenced by L1GtTriggerMenuConfigOnlineProd::addCorrelationCondition().

                                                                {
    m_cond0Index = condIndex;
}
void L1GtCorrelationTemplate::setCond1Category ( const L1GtConditionCategory condCateg)

Definition at line 137 of file L1GtCorrelationTemplate.cc.

References m_cond1Category.

Referenced by L1GtTriggerMenuConfigOnlineProd::addCorrelationCondition().

                                                {

    m_cond1Category = condCateg;
}
void L1GtCorrelationTemplate::setCond1Index ( const int &  condIndex)

Definition at line 149 of file L1GtCorrelationTemplate.cc.

References m_cond1Index.

Referenced by L1GtTriggerMenuConfigOnlineProd::addCorrelationCondition().

                                                                {
    m_cond1Index = condIndex;
}
void L1GtCorrelationTemplate::setCorrelationParameter ( const CorrelationParameter corrParameter)

Friends And Related Function Documentation

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

output stream operator

Definition at line 209 of file L1GtCorrelationTemplate.cc.

{
    result.print(os);
    return os;

}

Member Data Documentation