CMS 3D CMS Logo

L1GtEnergySumTemplate Class Reference

Description: L1 Global Trigger energy-sum template. More...

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

Inheritance diagram for L1GtEnergySumTemplate:

L1GtCondition

List of all members.

Public Member Functions

 L1GtEnergySumTemplate (const L1GtEnergySumTemplate &)
 L1GtEnergySumTemplate (const std::string &, const L1GtConditionType &)
 L1GtEnergySumTemplate (const std::string &)
 L1GtEnergySumTemplate ()
const std::vector
< ObjectParameter > * 
objectParameter () const
L1GtEnergySumTemplateoperator= (const L1GtEnergySumTemplate &)
virtual void print (std::ostream &myCout) const
 print the condition
void setConditionParameter (const std::vector< ObjectParameter > &)
 set functions
virtual ~L1GtEnergySumTemplate ()

Private Member Functions

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

Private Attributes

std::vector< ObjectParameterm_objectParameter
 variables containing the parameters

Classes

struct  ObjectParameter
 typedef for a single object template More...


Detailed Description

Description: L1 Global Trigger energy-sum template.

Implementation: <TODO: enter implementation details>

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

Definition at line 34 of file L1GtEnergySumTemplate.h.


Constructor & Destructor Documentation

L1GtEnergySumTemplate::L1GtEnergySumTemplate (  ) 

Definition at line 35 of file L1GtEnergySumTemplate.cc.

References CondEnergySum, and L1GtCondition::m_condCategory.

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

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

Definition at line 43 of file L1GtEnergySumTemplate.cc.

References CondEnergySum, and L1GtCondition::m_condCategory.

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

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

Definition at line 51 of file L1GtEnergySumTemplate.cc.

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

00052         : L1GtCondition(cName, CondEnergySum, cType)
00053 {
00054 
00055     m_condCategory = CondEnergySum;
00056 
00057     // should be always 1 - they are global quantities...
00058     int nObjects = nrObjects();
00059 
00060     if (nObjects > 0) {
00061         m_objectParameter.reserve(nObjects);
00062         m_objectType.reserve(nObjects);
00063     }
00064 
00065 }

L1GtEnergySumTemplate::L1GtEnergySumTemplate ( const L1GtEnergySumTemplate cp  ) 

Definition at line 68 of file L1GtEnergySumTemplate.cc.

References copy().

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

L1GtEnergySumTemplate::~L1GtEnergySumTemplate (  )  [virtual]

Definition at line 75 of file L1GtEnergySumTemplate.cc.

00076 {
00077     // empty now
00078 }


Member Function Documentation

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

copy function for copy constructor and operator=

Definition at line 129 of file L1GtEnergySumTemplate.cc.

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

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

00130 {
00131 
00132     m_condName     = cp.condName();
00133     m_condCategory = cp.condCategory();
00134     m_condType     = cp.condType();
00135     m_objectType   = cp.objectType();
00136     m_condGEq      = cp.condGEq();
00137     m_condChipNr   = cp.condChipNr();
00138 
00139     m_objectParameter = *(cp.objectParameter());
00140 
00141 }

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

Definition at line 72 of file L1GtEnergySumTemplate.h.

References m_objectParameter.

Referenced by copy(), L1GtEnergySumCondition::evaluateCondition(), L1GtVhdlWriterCore::getEsumsSetupContentFromTriggerMenu(), and L1GtVmeWriterCore::writeVME().

00072                                                                      {
00073         return &m_objectParameter;
00074     }

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

Definition at line 81 of file L1GtEnergySumTemplate.cc.

References copy().

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

void L1GtEnergySumTemplate::print ( std::ostream &  myCout  )  const [virtual]

print the condition

Reimplemented from L1GtCondition.

Definition at line 98 of file L1GtEnergySumTemplate.cc.

References lat::endl(), i, L1GtCondition::m_condType, m_objectParameter, L1GtCondition::nrObjects(), L1GtCondition::print(), and TypeETM.

Referenced by L1GtTriggerMenuXmlParser::parseEnergySum(), and L1GtEnergySumCondition::print().

00099 {
00100 
00101     myCout << "\n  L1GtEnergySumTemplate 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 << "    energyOverflow    = "
00113         <<  std::hex << m_objectParameter[0].energyOverflow << std::endl;
00114 
00115         if (m_condType == TypeETM) {
00116             myCout << "    phi               = "
00117             << std::hex << m_objectParameter[i].phiRange1Word
00118             << std::hex << m_objectParameter[i].phiRange0Word
00119             << std::endl;
00120         }
00121 
00122     }
00123 
00124     // reset to decimal output
00125     myCout << std::dec << std::endl;
00126     myCout << "\n  ...end L1GtEnergySumTemplate print." << std::endl;
00127 }

void L1GtEnergySumTemplate::setConditionParameter ( const std::vector< ObjectParameter > &  objParameter  ) 

set functions

Definition at line 90 of file L1GtEnergySumTemplate.cc.

References m_objectParameter.

Referenced by L1GtTriggerMenuXmlParser::parseEnergySum().

00092 {
00093 
00094     m_objectParameter = objParameter;
00095 
00096 }


Member Data Documentation

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

variables containing the parameters

Definition at line 90 of file L1GtEnergySumTemplate.h.

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


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