1 #ifndef CondFormats_PPSObjects_CTPPSPixelGainCalibration_h
2 #define CondFormats_PPSObjects_CTPPSPixelGainCalibration_h
45 const std::vector<float>& peds,
46 const std::vector<float>& gains,
50 float maxGain = 255.);
55 void setGainsPeds(
const uint32_t& detId,
const std::vector<float>& peds,
const std::vector<float>& gains);
67 void putData(uint32_t ipix,
float ped,
float gain);
69 float getPed(
const int&
col,
const int& row)
const;
70 float getGain(
const int&
col,
const int& row)
const;
74 bool isNoisy(
const uint32_t ipix)
const {
return (
v_gains[ipix] == -9999.); }
double getGainLow() const
float getPed(const uint32_t ipix) const
float getGain(const uint32_t ipix) const
bool isDead(const uint32_t ipix) const
double getPedHigh() const
void resetPixData(uint32_t ipix, float ped, float gain)
uint32_t getIBegin() const
CTPPSPixelGainCalibration()
double getGainHigh() const
uint32_t getDetId() const
std::vector< float > v_pedestals
void setGainsPeds(const uint32_t &detId, const std::vector< float > &peds, const std::vector< float > &gains)
uint32_t getNCols() const
std::vector< float > v_gains
~CTPPSPixelGainCalibration()
uint32_t getNRows() const
#define COND_SERIALIZABLE
void setDeadPixel(int ipix)
void setNoisyPixel(int ipix)
float getPed(const int &col, const int &row) const
bool isNoisy(const uint32_t ipix) const
void setIndexes(const uint32_t &detId)
void putData(uint32_t ipix, float ped, float gain)
float getGain(const int &col, const int &row) const