CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_2_SLHC4_patch1/src/CondFormats/EcalObjects/src/EcalTPGLut.cc

Go to the documentation of this file.
00001 #include "CondFormats/EcalObjects/interface/EcalTPGLut.h"
00002 
00003 EcalTPGLut::EcalTPGLut()
00004 { }
00005 
00006 EcalTPGLut::EcalTPGLut(const EcalTPGLut & tpgLut)
00007 { 
00008   const unsigned int * lut = tpgLut.getLut() ;
00009   for (unsigned int i=0 ; i<1024 ; i++) lut_[i] = lut[i] ;
00010 }
00011 
00012 EcalTPGLut::~EcalTPGLut()
00013 { }
00014 
00015 const unsigned int * EcalTPGLut::getLut() const
00016 { 
00017   return lut_ ;
00018 }
00019 
00020 void EcalTPGLut::setLut(const unsigned int * lut) 
00021 {
00022   for (unsigned int i=0 ; i<1024 ; i++) lut_[i] = lut[i] ;
00023 }
00024 
00025 EcalTPGLut & EcalTPGLut::operator=(const EcalTPGLut & tpgLut) {
00026   const unsigned int * lut = tpgLut.getLut() ;
00027   for (unsigned int i=0 ; i<1024 ; i++) lut_[i] = lut[i] ;
00028   return *this;
00029 }