CMS 3D CMS Logo

L1GtMuonTemplate Class Reference

Description: L1 Global Trigger muon template. More...

#include <CondFormats/L1TObjects/interface/L1GtMuonTemplate.h>

Inheritance diagram for L1GtMuonTemplate:

L1GtCondition

List of all members.

Public Member Functions

const CorrelationParametercorrelationParameter () const
 L1GtMuonTemplate (const L1GtMuonTemplate &)
 L1GtMuonTemplate (const std::string &, const L1GtConditionType &)
 L1GtMuonTemplate (const std::string &)
 L1GtMuonTemplate ()
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

Classes

struct  CorrelationParameter
struct  ObjectParameter


Detailed Description

Description: L1 Global Trigger muon template.

Implementation: <TODO: enter implementation details>

Author:
: Vasile Mihai Ghete - HEPHY Vienna
$Date$ $Revision$

Definition at line 34 of file L1GtMuonTemplate.h.


Constructor & Destructor Documentation

L1GtMuonTemplate::L1GtMuonTemplate (  ) 

Definition at line 35 of file L1GtMuonTemplate.cc.

References CondMuon, and L1GtCondition::m_condCategory.

00036         : L1GtCondition()
00037 {
00038 
00039     m_condCategory = CondMuon;
00040 
00041 }

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

Definition at line 43 of file L1GtMuonTemplate.cc.

References CondMuon, and L1GtCondition::m_condCategory.

00044         : L1GtCondition(cName)
00045 {
00046 
00047     m_condCategory = CondMuon;
00048 
00049 }

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().

00052         : L1GtCondition(cName, CondMuon, cType)
00053 {
00054 
00055     int nObjects = nrObjects();
00056 
00057     if (nObjects > 0) {
00058         m_objectParameter.reserve(nObjects);
00059 
00060         m_objectType.reserve(nObjects);
00061         m_objectType.assign(nObjects, Mu);
00062     }
00063 
00064 }

L1GtMuonTemplate::L1GtMuonTemplate ( const L1GtMuonTemplate cp  ) 

Definition at line 67 of file L1GtMuonTemplate.cc.

References copy().

00068         : L1GtCondition(cp.m_condName)
00069 {
00070     copy(cp);
00071 }

L1GtMuonTemplate::~L1GtMuonTemplate (  )  [virtual]

Definition at line 74 of file L1GtMuonTemplate.cc.

00075 {
00076     // empty now
00077 }


Member Function Documentation

void L1GtMuonTemplate::copy ( const L1GtMuonTemplate cp  )  [private]

copy function for copy constructor and operator=

Definition at line 171 of file L1GtMuonTemplate.cc.

References L1GtCondition::condCategory(), L1GtCondition::condChipNr(), L1GtCondition::condGEq(), L1GtCondition::condName(), L1GtCondition::condType(), correlationParameter(), L1GtCondition::m_condCategory, L1GtCondition::m_condChipNr, L1GtCondition::m_condGEq, L1GtCondition::m_condName, L1GtCondition::m_condType, m_correlationParameter, m_objectParameter, L1GtCondition::m_objectType, objectParameter(), and L1GtCondition::objectType().

Referenced by L1GtMuonTemplate(), and operator=().

00172 {
00173 
00174     m_condName     = cp.condName();
00175     m_condCategory = cp.condCategory();
00176     m_condType     = cp.condType();
00177     m_objectType   = cp.objectType();
00178     m_condGEq      = cp.condGEq();
00179     m_condChipNr   = cp.condChipNr();
00180 
00181     m_objectParameter = *(cp.objectParameter());
00182     m_correlationParameter = *(cp.correlationParameter());
00183 
00184 }

const CorrelationParameter* L1GtMuonTemplate::correlationParameter (  )  const [inline]

Definition at line 93 of file L1GtMuonTemplate.h.

References m_correlationParameter.

Referenced by copy(), L1GtMuonCondition::evaluateCondition(), L1GtVhdlWriterCore::getMuonSetupContentFromTriggerMenu(), and L1GtVmeWriterCore::writeVME().

00094     {
00095         return &m_correlationParameter;
00096     }

const std::vector<ObjectParameter>* L1GtMuonTemplate::objectParameter (  )  const [inline]

Definition at line 88 of file L1GtMuonTemplate.h.

References m_objectParameter.

Referenced by L1GtMuonCondition::checkObjectParameter(), copy(), L1GtVhdlWriterCore::getMuonSetupContentFromTriggerMenu(), and L1GtVmeWriterCore::writeVME().

00089     {
00090         return &m_objectParameter;
00091     }

L1GtMuonTemplate & L1GtMuonTemplate::operator= ( const L1GtMuonTemplate cp  ) 

Definition at line 80 of file L1GtMuonTemplate.cc.

References copy().

00081 {
00082 
00083     copy(cp);
00084     return *this;
00085 }

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, lat::endl(), i, L1GtCondition::m_condType, m_correlationParameter, m_objectParameter, L1GtCondition::nrObjects(), L1GtCondition::print(), Type1s, and L1GtCondition::wsc().

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

00100 {
00101 
00102     myCout << "\n  L1GtMuonTemplate print..." << std::endl;
00103 
00104     L1GtCondition::print(myCout);
00105 
00106     int nObjects = nrObjects();
00107 
00108     for (int i = 0; i < nObjects; i++) {
00109         myCout << std::endl;
00110         myCout << "  Template for object " << i << " [ hex ]" << std::endl;
00111         myCout << "    ptHighThreshold   = "
00112         << std::hex << m_objectParameter[i].ptHighThreshold << std::endl;
00113         myCout << "    ptLowThreshold    = "
00114         << std::hex << m_objectParameter[i].ptLowThreshold << std::endl;
00115         myCout << "    enableMip         = "
00116         << std::hex << m_objectParameter[i].enableMip << std::endl;
00117         myCout << "    enableIso         = "
00118         << std::hex << m_objectParameter[i].enableIso << std::endl;
00119         myCout << "    requestIso        = "
00120         << std::hex << m_objectParameter[i].requestIso << std::endl;
00121         myCout << "    qualityRange      = "
00122         << std::hex << m_objectParameter[i].qualityRange << std::endl;
00123         myCout << "    etaRange          = "
00124         << std::hex << m_objectParameter[i].etaRange << std::endl;
00125         myCout << "    phiHigh           = "
00126         << std::hex << m_objectParameter[i].phiHigh << std::endl;
00127         myCout << "    phiLow            = "
00128         << std::hex << m_objectParameter[i].phiLow << std::endl;
00129     }
00130 
00131 
00132     if ( wsc() ) {
00133         myCout << "  Correlation parameters " << "[ hex ]" <<  std::endl;
00134 
00135         myCout <<     "    chargeCorrelation  = "
00136         << std::hex << m_correlationParameter.chargeCorrelation
00137         << std::endl;
00138 
00139         myCout << "    deltaEtaRange      = "
00140         << std::hex << m_correlationParameter.deltaEtaRange << std::endl;
00141         myCout << "    deltaPhiRange1Word = "
00142         << std::hex << m_correlationParameter.deltaPhiRange1Word << std::endl;
00143         myCout << "    deltaPhiRange0Word = "
00144         << std::hex << m_correlationParameter.deltaPhiRange0Word << std::endl;
00145         myCout << "    deltaPhiMaxbits    = "
00146         << std::hex << m_correlationParameter.deltaPhiMaxbits << std::endl;
00147     } else {
00148 
00149         if (m_condType == Type1s) {
00150             myCout << "  Correlation parameters " << "[ hex ]" <<  std::endl;
00151 
00152             myCout <<     "    chargeCorrelation  = "
00153             << std::hex << m_correlationParameter.chargeCorrelation
00154             << " (charge sign) " << std::endl;
00155 
00156         } else {
00157 
00158             myCout << "\n  Correlation parameters " << "[ hex ]" <<  std::endl;
00159 
00160             myCout <<     "    chargeCorrelation  = "
00161             << std::hex << m_correlationParameter.chargeCorrelation
00162             << std::endl;
00163         }
00164     }
00165 
00166     // reset to decimal output
00167     myCout << std::dec << std::endl;
00168     myCout << "\n  ...end L1GtMuonTemplate print." << std::endl;
00169 }

void L1GtMuonTemplate::setConditionParameter ( const std::vector< ObjectParameter > &  objParameter,
const CorrelationParameter corrParameter 
)

set functions

Definition at line 89 of file L1GtMuonTemplate.cc.

References m_correlationParameter, and m_objectParameter.

Referenced by L1GtTriggerMenuXmlParser::parseMuon().

00092 {
00093 
00094     m_objectParameter = objParameter;
00095     m_correlationParameter = corrParameter;
00096 
00097 }


Member Data Documentation

CorrelationParameter L1GtMuonTemplate::m_correlationParameter [private]

Definition at line 117 of file L1GtMuonTemplate.h.

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

std::vector<ObjectParameter> L1GtMuonTemplate::m_objectParameter [private]

variables containing the parameters

Definition at line 116 of file L1GtMuonTemplate.h.

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


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:26:44 2009 for CMSSW by  doxygen 1.5.4