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) {
42 const std::vector<std::vector<float>>& peds,
43 const std::vector<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 ";
bool isDead(const uint32_t ipix) const
const CTPPSPixelGainCalibration & getGainCalibration(const uint32_t &detid) const
uint32_t getIBegin() const
void setGainCalibrations(const CalibMap &PixGainsCalibs)
uint32_t getDetId() const
void setGainCalibration(const uint32_t &DetId, const CTPPSPixelGainCalibration &PixGains)
uint32_t getNCols() const
std::map< uint32_t, CTPPSPixelGainCalibration > CalibMap
uint32_t getNRows() const
float getPed(const int &col, const int &row) const
bool isNoisy(const uint32_t ipix) const
void setIndexes(const uint32_t &detId)
float getGain(const int &col, const int &row) const