File indexing completed on 2024-04-06 12:02:10
0001 #include "CondFormats/EcalObjects/interface/EcalTPGLut.h"
0002
0003 EcalTPGLut::EcalTPGLut() {}
0004
0005 EcalTPGLut::EcalTPGLut(const EcalTPGLut& tpgLut) {
0006 const unsigned int* lut = tpgLut.getLut();
0007 for (unsigned int i = 0; i < 1024; i++)
0008 lut_[i] = lut[i];
0009 }
0010
0011 EcalTPGLut::~EcalTPGLut() {}
0012
0013 const unsigned int* EcalTPGLut::getLut() const { return lut_; }
0014
0015 void EcalTPGLut::setLut(const unsigned int* lut) {
0016 for (unsigned int i = 0; i < 1024; i++)
0017 lut_[i] = lut[i];
0018 }
0019
0020 EcalTPGLut& EcalTPGLut::operator=(const EcalTPGLut& tpgLut) {
0021 const unsigned int* lut = tpgLut.getLut();
0022 for (unsigned int i = 0; i < 1024; i++)
0023 lut_[i] = lut[i];
0024 return *this;
0025 }