46 std::vector<uint32_t> detids;
47 if (wantedIds.empty()) {
50 detids.assign(wantedIds.begin(), wantedIds.end());
53 for (
const auto&
d : detids) {
59 int numberOfRowsToAverageOver =
payload->getNumberOfRowsToAverageOver();
61 int nRocsInRow = (
range.second -
range.first) /
ncols / numberOfRowsToAverageOver;
62 unsigned int nRowsForHLT = 1;
63 int nrows =
std::max((
payload->getNumberOfRowsToAverageOver() * nRocsInRow),
66 auto rangeAndCol =
payload->getRangeAndNCols(
d);
70 COUT <<
"NCOLS: " <<
payload->getNCols(
d) <<
" " << rangeAndCol.second <<
" NROWS:" << nrows
71 <<
", RANGES: " << rangeAndCol.first.second - rangeAndCol.first.first
72 <<
", Ratio: " <<
float(rangeAndCol.first.second - rangeAndCol.first.first) / rangeAndCol.second
78 for (
int row = 0; row < nrows; row++) {
81 quid =
payload->getGain(
col, row, rangeAndCol.first, rangeAndCol.second, isDeadColumn, isNoisyColumn);
84 quid =
payload->getPed(
col, row, rangeAndCol.first, rangeAndCol.second, isDeadColumn, isNoisyColumn);
87 edm::LogError(
"gainCalibPI::fillTheHisto") <<
"Unrecognized type " << theType << std::endl;