74 std::vector<edm::ESGetToken<SiPixelQuality, SiPixelQualityRcd>>
m_spqTokens;
96 : m_rhm(consumesCollector()),
98 m_mode(iConfig.getUntrackedParameter<unsigned
int>(
"granularityMode", Module)),
99 m_run(iConfig.getParameter<
bool>(
"runProcess")),
100 m_maxLS(iConfig.getUntrackedParameter<unsigned
int>(
"maxLSBeforeRebin", 100)),
101 m_LSfrac(iConfig.getUntrackedParameter<unsigned
int>(
"startingLSFraction", 4)),
118 sprintf(hrunname,
"badmodrun_%s",
name.c_str());
120 sprintf(hruntitle,
"Number of bad modules %s",
name.c_str());
138 for (std::size_t iMon = 0; iMon !=
m_monitoredspq.size(); ++iMon) {
148 std::vector<SiPixelQuality::disabledModuleType> bads = spq.getBadComponentList();
150 LogDebug(
"BadComponents") << bads.size() <<
" bad components found";
152 for (
const auto& bc : bads) {
154 if (spq.IsModuleBad(bc.DetID))
158 for (
int roc = 1;
roc < 2 * 2 * 2 * 2 * 2 * 2 * 2 + 1;
roc *= 2) {
159 if ((bc.BadRocs &
roc) > 0)
175 for (std::size_t iMon = 0; iMon !=
m_monitoredspq.size(); ++iMon) {
196 std::vector<SiPixelQuality::disabledModuleType> bads = spq.getBadComponentList();
198 LogDebug(
"BadComponents") << bads.size() <<
" bad components found";
200 for (
const auto& bc : bads) {
202 if (spq.IsModuleBad(bc.DetID))
206 for (
int roc = 1;
roc < 2 * 2 * 2 * 2 * 2 * 2 * 2 + 1;
roc *= 2) {
207 if ((bc.BadRocs &
roc) > 0)
214 sprintf(runname,
"%d", iRun.
run());
215 LogDebug(
"AnalyzedRun") <<
name <<
" " << runname <<
" " << nbad;