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.

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

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

◆ ~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.

References lut_.

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

13 { return lut_; }
unsigned int lut_[1024]
Definition: EcalTPGLut.h:18

◆ operator=()

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

Definition at line 20 of file EcalTPGLut.cc.

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

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 }
const unsigned int * getLut() const
Definition: EcalTPGLut.cc:13
unsigned int lut_[1024]
Definition: EcalTPGLut.h:18

◆ 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.

References mps_fire::i, and lut_.

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

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

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