24 int col = di->column();
29 float DBgain =
getGain(detID, col, row);
30 float DBpedestal =
getPedestal(detID, col, row) * DBgain;
31 float vcal = float(di->adc()) * DBgain - DBpedestal;
32 electron[i++] = int(vcal * conversionFactor + offset);
42 if (isDead || isNoisy) {
52 float gainValue = this->
getGainByColumn(detID, col, row, isDead, isNoisy);
53 if (isDead || isNoisy) {
68 <<
"Attempting to check if nonexistant pixel is dead. Exception message: " << e.
what();
82 <<
"Attempting to check if nonexistant pixel is noisy. Exception message: " << e.
what();
90 <<
"You attempted to check if an entire column was dead with a payload that stores information at pixel "
91 "granularity. Please check by pixel. THANKS!";
97 <<
"You attempted to check if an entire column was noisy with a payload that stores information at pixel "
98 "granularity. Please check by pixel. THANKS!";
edm::DetSet< PixelDigi >::const_iterator DigiIterator
float getPedestalByPixel(const uint32_t &detID, const int &col, const int &row, bool &isDeadPixel, bool &isNoisyPixel)
bool isNoisyColumn(const uint32_t &detID, const int &col, const int &row) override
virtual bool isDead(const uint32_t &detID, const int &col, const int &row)=0
Log< level::Error, false > LogError
float getGainByColumn(const uint32_t &detID, const int &col, const int &row, bool &isDeadColumn, bool &isNoisyColumn)
float getGain(const uint32_t &detID, const int &col, const int &row) override
void throwExepctionForBadRead(std::string payload, const uint32_t &detID, const int &col, const int &row, double value=-1) const
char const * what() const noexceptoverride
virtual float getPedestal(const uint32_t &detID, const int &col, const int &row)=0
Log< level::Info, false > LogInfo
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