25 int col = di->column();
27 if (
isDead(detID,col,row) ||
isNoisy(detID,col,row) ) electron[i++] =0;
29 float DBgain =
getGain(detID, col, row);
30 float DBpedestal =
getPedestal(detID, col, row) * DBgain;
31 float vcal = di->adc() * DBgain - DBpedestal;
33 electron[i++] =
int( vcal * conversionFactor + offset);
45 float pedestalValue = this->getPedestalByPixel(detID, col, row, isDead, isNoisy);
46 if (isDead || isNoisy)
48 this->throwExepctionForBadRead(
"FullCalibration getPedestal()",detID, col, row, pedestalValue);
58 float gainValue = this->getGainByColumn(detID, col, row, isDead, isNoisy);
59 if (isDead || isNoisy)
61 this->throwExepctionForBadRead(
"FullCalibration getGain()",detID, col, row, gainValue);
73 this->getPedestalByPixel(detID, col, row, isDead, isNoisy);
78 edm::LogInfo(
"SiPixelGainCalibrationService") <<
"Attempting to check if nonexistant pixel is dead. Exception message: " << e.
what();
90 this->getPedestalByPixel(detID, col, row, isDead, isNoisy);
95 edm::LogInfo(
"SiPixelGainCalibrationService") <<
"Attempting to check if nonexistant pixel is noisy. Exception message: " << e.
what();
103 edm::LogError(
"SiPixelGainCalibrationService") <<
"You attempted to check if an entire column was dead with a payload that stores information at pixel granularity. Please check by pixel. THANKS!";
109 edm::LogError(
"SiPixelGainCalibrationService") <<
"You attempted to check if an entire column was noisy with a payload that stores information at pixel granularity. Please check by pixel. THANKS!";
edm::DetSet< PixelDigi >::const_iterator DigiIterator
bool isNoisyColumn(const uint32_t &detID, const int &col, const int &row) override
char const * what() const override
virtual bool isDead(const uint32_t &detID, const int &col, const int &row)=0
float getGain(const uint32_t &detID, const int &col, const int &row) override
virtual float getPedestal(const uint32_t &detID, const int &col, const int &row)=0
bool isDeadColumn(const uint32_t &detID, const int &col, const int &row) override
float getPedestal(const uint32_t &detID, const int &col, const int &row) override
virtual float getGain(const uint32_t &detID, const int &col, const int &row)=0
virtual bool isNoisy(const uint32_t &detID, const int &col, const int &row)=0
bool isDead(const uint32_t &detID, const int &col, const int &row) override
virtual void calibrate(uint32_t detID, DigiIterator b, DigiIterator e, float conversionFactor, float offset, int *electron)
bool isNoisy(const uint32_t &detID, const int &col, const int &row) override