CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes | Friends
EcalTPGLut Class Reference

#include <EcalTPGLut.h>

Public Member Functions

 EcalTPGLut ()
 
 EcalTPGLut (const EcalTPGLut &)
 
const unsigned int * getLut () const
 
EcalTPGLutoperator= (const EcalTPGLut &)
 
void setLut (const unsigned int *lut)
 
 ~EcalTPGLut ()
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

unsigned int lut_ [1024]
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 

Detailed Description

Definition at line 6 of file EcalTPGLut.h.

Constructor & Destructor Documentation

◆ EcalTPGLut() [1/2]

EcalTPGLut::EcalTPGLut ( )

Definition at line 3 of file EcalTPGLut.cc.

3 {}

◆ EcalTPGLut() [2/2]

EcalTPGLut::EcalTPGLut ( const EcalTPGLut tpgLut)

Definition at line 5 of file EcalTPGLut.cc.

5  {
6  const unsigned int* lut = tpgLut.getLut();
7  for (unsigned int i = 0; i < 1024; i++)
8  lut_[i] = lut[i];
9 }

References getLut(), mps_fire::i, and lut_.

◆ ~EcalTPGLut()

EcalTPGLut::~EcalTPGLut ( )

Definition at line 11 of file EcalTPGLut.cc.

11 {}

Member Function Documentation

◆ getLut()

const unsigned int * EcalTPGLut::getLut ( ) const

Definition at line 13 of file EcalTPGLut.cc.

13 { return lut_; }

References lut_.

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

◆ operator=()

EcalTPGLut & EcalTPGLut::operator= ( const EcalTPGLut tpgLut)

Definition at line 20 of file EcalTPGLut.cc.

20  {
21  const unsigned int* lut = tpgLut.getLut();
22  for (unsigned int i = 0; i < 1024; i++)
23  lut_[i] = lut[i];
24  return *this;
25 }

References getLut(), mps_fire::i, and lut_.

◆ serialize()

template<class Archive >
void EcalTPGLut::serialize ( Archive &  ar,
const unsigned int  version 
)
private

◆ setLut()

void EcalTPGLut::setLut ( const unsigned int *  lut)

Definition at line 15 of file EcalTPGLut.cc.

15  {
16  for (unsigned int i = 0; i < 1024; i++)
17  lut_[i] = lut[i];
18 }

References mps_fire::i, and lut_.

Referenced by popcon::EcalTPGLutIdMapHandler::getNewObjects(), and EcalTrigPrimESProducer::produceLUT().

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 20 of file EcalTPGLut.h.

◆ cond::serialization::access

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 20 of file EcalTPGLut.h.

Member Data Documentation

◆ lut_

unsigned int EcalTPGLut::lut_[1024]
private

Definition at line 18 of file EcalTPGLut.h.

Referenced by EcalTPGLut(), getLut(), operator=(), and setLut().

mps_fire.i
i
Definition: mps_fire.py:428
EcalTPGLut::getLut
const unsigned int * getLut() const
Definition: EcalTPGLut.cc:13
EcalTPGLut::lut_
unsigned int lut_[1024]
Definition: EcalTPGLut.h:18