10 <<
"newPixGains detId = " << newPixGains.
getDetId() <<
" ; iBegin = " << newPixGains.
getIBegin()
11 <<
" ; iEnd = " << newPixGains.
getIEnd() <<
" ; nCols = " << newPixGains.
getNCols()
12 <<
" ; nRows =" << newPixGains.
getNRows();
14 int npix = newPixGains.
getIEnd();
18 <<
"newPixGains Ped[0] = " << newPixGains.
getPed(0) <<
" ; Gain[0] = " << newPixGains.
getGain(0)
19 <<
" ; dead = " << newPixGains.
isDead(0) <<
" ; noisy = " << newPixGains.
isNoisy(0);
22 <<
"looks like setting gain calibrations did not work, npix is " << npix;
32 const std::vector<float>& peds,
33 const std::vector<float>&
gains) {
44 int nids = detidlist.size();
45 for (
int detid = 0; detid < nids; ++detid) {
46 const std::vector<float>& pedsvec = peds[detid];
47 const std::vector<float>& gainsvec =
gains[detid];
53 const uint32_t& detid)
const {
56 throw cms::Exception(
"CTPPSPixelGainCalibrations: ") <<
" No gain calibrations defined for detid ";
float getPed(const int &col, const int &row) const
void setGainCalibrations(const CalibMap &PixGainsCalibs)
Log< level::Error, false > LogError
bool isNoisy(const uint32_t ipix) const
uint32_t getIBegin() const
uint32_t getNCols() const
float getGain(const int &col, const int &row) const
uint32_t getDetId() const
void setGainCalibration(const uint32_t &DetId, const CTPPSPixelGainCalibration &PixGains)
uint32_t getNRows() const
std::map< uint32_t, CTPPSPixelGainCalibration > CalibMap
constexpr float gains[NGAINS]
Log< level::Info, false > LogInfo
bool isDead(const uint32_t ipix) const
const CTPPSPixelGainCalibration & getGainCalibration(const uint32_t &detid) const
void setIndexes(const uint32_t &detId)