CMS 3D CMS Logo

L1GtJetCountsTemplate Class Reference

Description: L1 Global Trigger "jet counts" template. More...

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

Inheritance diagram for L1GtJetCountsTemplate:

L1GtCondition

List of all members.

Public Member Functions

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

Private Member Functions

void copy (const L1GtJetCountsTemplate &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 "jet counts" template.

Implementation: <TODO: enter implementation details>

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

Definition at line 34 of file L1GtJetCountsTemplate.h.


Constructor & Destructor Documentation

L1GtJetCountsTemplate::L1GtJetCountsTemplate (  ) 

Definition at line 35 of file L1GtJetCountsTemplate.cc.

References CondJetCounts, and L1GtCondition::m_condCategory.

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

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

Definition at line 43 of file L1GtJetCountsTemplate.cc.

References CondJetCounts, and L1GtCondition::m_condCategory.

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

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

Definition at line 51 of file L1GtJetCountsTemplate.cc.

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

00053         : L1GtCondition(cName, CondJetCounts, cType)
00054 {
00055 
00056     m_condCategory = CondJetCounts;
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, JetCounts);
00066     }
00067 
00068 }

L1GtJetCountsTemplate::L1GtJetCountsTemplate ( const L1GtJetCountsTemplate cp  ) 

Definition at line 71 of file L1GtJetCountsTemplate.cc.

References copy().

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

L1GtJetCountsTemplate::~L1GtJetCountsTemplate (  )  [virtual]

Definition at line 78 of file L1GtJetCountsTemplate.cc.

00079 {
00080     // empty now
00081 }


Member Function Documentation

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

copy function for copy constructor and operator=

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

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

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

Definition at line 71 of file L1GtJetCountsTemplate.h.

References m_objectParameter.

Referenced by L1GtVhdlWriterCore::addJetCountsToCond2IntMap(), copy(), L1GtJetCountsCondition::evaluateCondition(), L1GtVhdlWriterCore::getCondChipVhdContentFromTriggerMenu(), and L1GtVmeWriterCore::writeVME().

00072     {
00073         return &m_objectParameter;
00074     }

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

Definition at line 84 of file L1GtJetCountsTemplate.cc.

References copy().

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

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

print the condition

Reimplemented from L1GtCondition.

Definition at line 101 of file L1GtJetCountsTemplate.cc.

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

Referenced by L1GtTriggerMenuXmlParser::parseJetCounts(), and L1GtJetCountsCondition::print().

00102 {
00103 
00104     myCout << "\n  L1GtJetCountsTemplate 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 << "    countIndex        = "
00114         << std::hex << m_objectParameter[i].countIndex << " [ dec ]" << std::endl;
00115         myCout << "    countThreshold    = "
00116         << std::hex << m_objectParameter[i].countThreshold << " [ hex ]" << std::endl;
00117         myCout << "    countOverflow     = "
00118         <<  std::hex << m_objectParameter[0].countOverflow << std::endl;
00119 
00120     }
00121 
00122     // reset to decimal output
00123     myCout << std::dec << std::endl;
00124     myCout << "\n  ...end L1GtJetCountsTemplate print." << std::endl;
00125 }

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

set functions

Definition at line 93 of file L1GtJetCountsTemplate.cc.

References m_objectParameter.

Referenced by L1GtTriggerMenuXmlParser::parseJetCounts().

00095 {
00096 
00097     m_objectParameter = objParameter;
00098 
00099 }


Member Data Documentation

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

variables containing the parameters

Definition at line 93 of file L1GtJetCountsTemplate.h.

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