CMS 3D CMS Logo

L1GtCaloTemplate Class Reference

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

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

Inheritance diagram for L1GtCaloTemplate:

L1GtCondition

List of all members.

Public Member Functions

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

Classes

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


Detailed Description

Description: L1 Global Trigger calo template.

Implementation: <TODO: enter implementation details>

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

Definition at line 34 of file L1GtCaloTemplate.h.


Constructor & Destructor Documentation

L1GtCaloTemplate::L1GtCaloTemplate (  ) 

Definition at line 35 of file L1GtCaloTemplate.cc.

References CondCalo, and L1GtCondition::m_condCategory.

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

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

Definition at line 43 of file L1GtCaloTemplate.cc.

References CondCalo, and L1GtCondition::m_condCategory.

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

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

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

L1GtCaloTemplate::L1GtCaloTemplate ( const L1GtCaloTemplate cp  ) 

Definition at line 66 of file L1GtCaloTemplate.cc.

References copy().

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

L1GtCaloTemplate::~L1GtCaloTemplate (  )  [virtual]

Definition at line 73 of file L1GtCaloTemplate.cc.

00074 {
00075     // empty now
00076 }


Member Function Documentation

void L1GtCaloTemplate::copy ( const L1GtCaloTemplate cp  )  [protected]

copy function for copy constructor and operator=

Definition at line 135 of file L1GtCaloTemplate.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 L1GtCaloTemplate(), and operator=().

00136 {
00137 
00138     m_condName     = cp.condName();
00139     m_condCategory = cp.condCategory();
00140     m_condType     = cp.condType();
00141     m_objectType   = cp.objectType();
00142     m_condGEq      = cp.condGEq();
00143     m_condChipNr   = cp.condChipNr();
00144 
00145     m_objectParameter = *(cp.objectParameter());
00146     m_correlationParameter = *(cp.correlationParameter());
00147 
00148 }

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

Definition at line 84 of file L1GtCaloTemplate.h.

References m_correlationParameter.

Referenced by copy(), L1GtCaloCondition::evaluateCondition(), and L1GtVhdlWriterCore::getCaloSetupContentFromTriggerMenu().

00085     {
00086         return &m_correlationParameter;
00087     }

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

Definition at line 79 of file L1GtCaloTemplate.h.

References m_objectParameter.

Referenced by L1GtCaloCondition::checkObjectParameter(), copy(), L1GtVhdlWriterCore::getCaloSetupContentFromTriggerMenu(), L1GtVhdlWriterCore::getDefValsFromTriggerMenu(), and L1GtVmeWriterCore::writeVME().

00080     {
00081         return &m_objectParameter;
00082     }

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

Definition at line 79 of file L1GtCaloTemplate.cc.

References copy().

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

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

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

00099 {
00100 
00101     myCout << "\n  L1GtCaloTemplate print..." << std::endl;
00102 
00103     L1GtCondition::print(myCout);
00104 
00105     int nObjects = nrObjects();
00106 
00107     for (int i = 0; i < nObjects; i++) {
00108         myCout << std::endl;
00109         myCout << "  Template for object " << i << " [ hex ]" << std::endl;
00110         myCout << "    etThreshold       = "
00111         << std::hex << m_objectParameter[i].etThreshold << std::endl;
00112         myCout << "    etaRange          = "
00113         << std::hex << m_objectParameter[i].etaRange << std::endl;
00114         myCout << "    phiRange          = "
00115         << std::hex << m_objectParameter[i].phiRange << std::endl;
00116     }
00117 
00118     if ( wsc() ) {
00119 
00120         myCout << "  Correlation parameters " << "[ hex ]" <<  std::endl;
00121 
00122         myCout << "    deltaEtaRange     = "
00123         << std::hex << m_correlationParameter.deltaEtaRange << std::endl;
00124         myCout << "    deltaPhiRange     = "
00125         << std::hex << m_correlationParameter.deltaPhiRange << std::endl;
00126         myCout << "    deltaPhiMaxbits   = "
00127         << std::hex << m_correlationParameter.deltaPhiMaxbits << std::endl;
00128     }
00129 
00130     // reset to decimal output
00131     myCout << std::dec << std::endl;
00132     myCout << "\n  ...end L1GtCaloTemplate print." << std::endl;
00133 }

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

set functions

Definition at line 88 of file L1GtCaloTemplate.cc.

References m_correlationParameter, and m_objectParameter.

Referenced by L1GtTriggerMenuXmlParser::parseCalo().

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


Member Data Documentation

CorrelationParameter L1GtCaloTemplate::m_correlationParameter [protected]

Definition at line 108 of file L1GtCaloTemplate.h.

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

std::vector<ObjectParameter> L1GtCaloTemplate::m_objectParameter [protected]

variables containing the parameters

Definition at line 107 of file L1GtCaloTemplate.h.

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


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