CMS 3D CMS Logo

L1GtHfRingEtSumsTemplate Class Reference

Description: L1 Global Trigger "HF Ring ET sums" template. More...

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

Inheritance diagram for L1GtHfRingEtSumsTemplate:

L1GtCondition

List of all members.

Public Member Functions

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

Private Member Functions

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

Private Attributes

std::vector< ObjectParameterm_objectParameter
 variables containing the parameters

Friends

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

Classes

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


Detailed Description

Description: L1 Global Trigger "HF Ring ET sums" template.

Implementation: <TODO: enter implementation details>

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

Definition at line 32 of file L1GtHfRingEtSumsTemplate.h.


Constructor & Destructor Documentation

L1GtHfRingEtSumsTemplate::L1GtHfRingEtSumsTemplate (  ) 

Definition at line 35 of file L1GtHfRingEtSumsTemplate.cc.

References CondHfRingEtSums, and L1GtCondition::m_condCategory.

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

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

Definition at line 43 of file L1GtHfRingEtSumsTemplate.cc.

References CondHfRingEtSums, and L1GtCondition::m_condCategory.

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

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

Definition at line 51 of file L1GtHfRingEtSumsTemplate.cc.

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

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

L1GtHfRingEtSumsTemplate::L1GtHfRingEtSumsTemplate ( const L1GtHfRingEtSumsTemplate cp  ) 

Definition at line 71 of file L1GtHfRingEtSumsTemplate.cc.

References copy().

00072         : L1GtCondition(cp.m_condName)
00073 {
00074     copy(cp);
00075 }

L1GtHfRingEtSumsTemplate::~L1GtHfRingEtSumsTemplate (  )  [virtual]

Definition at line 78 of file L1GtHfRingEtSumsTemplate.cc.

00079 {
00080     // empty now
00081 }


Member Function Documentation

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

copy function for copy constructor and operator=

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

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

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

Definition at line 68 of file L1GtHfRingEtSumsTemplate.h.

References m_objectParameter.

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

00069     {
00070         return &m_objectParameter;
00071     }

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

Definition at line 84 of file L1GtHfRingEtSumsTemplate.cc.

References copy().

00085 {
00086 
00087     copy(cp);
00088     return *this;
00089 }

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

print the condition

Reimplemented from L1GtCondition.

Definition at line 101 of file L1GtHfRingEtSumsTemplate.cc.

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

Referenced by operator<<(), L1GtTriggerMenuXmlParser::parseHfRingEtSums(), and L1GtHfRingEtSumsCondition::print().

00102 {
00103 
00104     myCout << "\n  L1GtHfRingEtSumsTemplate print..." << std::endl;
00105 
00106     L1GtCondition::print(myCout);
00107 
00108     int nObjects = nrObjects();
00109 
00110     for (int i = 0; i < nObjects; i++) {
00111         myCout << std::endl;
00112         myCout << "  Template for object " << i << std::endl;
00113         myCout << "    etSumIndex        = "
00114         << std::hex << m_objectParameter[i].etSumIndex << " [ dec ]" << std::endl;
00115         myCout << "    etSumThreshold    = "
00116         << std::hex << m_objectParameter[i].etSumThreshold << " [ hex ]" << std::endl;
00117 
00118     }
00119 
00120     // reset to decimal output
00121     myCout << std::dec << std::endl;
00122     myCout << "\n  ...end L1GtHfRingEtSumsTemplate print." << std::endl;
00123 }

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

set functions

Definition at line 93 of file L1GtHfRingEtSumsTemplate.cc.

References m_objectParameter.

Referenced by L1GtTriggerMenuXmlParser::parseHfRingEtSums().

00095 {
00096 
00097     m_objectParameter = objParameter;
00098 
00099 }


Friends And Related Function Documentation

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

output stream operator

Definition at line 126 of file L1GtHfRingEtSumsTemplate.cc.

00127 {
00128     result.print(os);
00129     return os;
00130 
00131 }


Member Data Documentation

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

variables containing the parameters

Definition at line 93 of file L1GtHfRingEtSumsTemplate.h.

Referenced by copy(), L1GtHfRingEtSumsTemplate(), 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