28 int oldCol = -1, oldAveragedBlock = -1;
31 int col = di->column();
33 if ((col != oldCol) | (averagedBlock != oldAveragedBlock)) {
35 oldAveragedBlock = averagedBlock;
41 float vcal = float(di->adc()) * gain - pedestal * gain;
42 electron[i++] = int(vcal * conversionFactor + offset);
52 if (isDead || isNoisy) {
62 float gainValue = this->
getGainByColumn(detID, col, row, isDead, isNoisy);
63 if (isDead || isNoisy) {
78 <<
"Attempting to check if nonexistant pixel is dead. Exception message: " << e.
what();
92 <<
"Attempting to check if nonexistant pixel is noisy. Exception message: " << e.
what();
106 <<
"Attempting to check if nonexistant pixel is dead. Exception message: " << e.
what();
120 <<
"Attempting to check if nonexistant pixel is noisy. Exception message: " << e.
what();
std::pair< float, float > getPedAndGain(const int &col, const int &row, const Range &range, const int &nCols, bool &isDeadColumn, bool &isNoisyColumn) const
int numberOfRowsAveragedOver_
edm::DetSet< PixelDigi >::const_iterator DigiIterator
void calibrate(uint32_t detID, DigiIterator b, DigiIterator e, float conversionFactor, float offset, int *electron) override
float getPedestal(const uint32_t &detID, const int &col, const int &row) override
bool isNoisy(const uint32_t &detID, const int &col, const int &row) override
const std::pair< const Range, const int > getRangeAndNCols(const uint32_t &detID) const
std::pair< ContainerIterator, ContainerIterator > Range
const uint16_t range(const Frame &aFrame)
float getPedestalByColumn(const uint32_t &detID, const int &col, const int &row, bool &isDeadColumn, bool &isNoisyColumn)
float getGainByColumn(const uint32_t &detID, const int &col, const int &row, bool &isDeadColumn, bool &isNoisyColumn)
const SiPixelGainCalibrationForHLT * ped
void throwExepctionForBadRead(std::string payload, const uint32_t &detID, const int &col, const int &row, double value=-1) const
float getGain(const uint32_t &detID, const int &col, const int &row) override
char const * what() const noexceptoverride
bool isDead(const uint32_t &detID, const int &col, const int &row) override
Log< level::Info, false > LogInfo
bool isDeadColumn(const uint32_t &detID, const int &col, const int &row) override
bool isNoisyColumn(const uint32_t &detID, const int &col, const int &row) override