94 : m_rhm(consumesCollector()),
95 _monitoredssq(iConfig.getParameter<
std::vector<
edm::
ParameterSet> >(
"monitoredSiStripQuality")),
96 _mode(iConfig.getUntrackedParameter<unsigned
int>(
"granularityMode",
Module)),
97 m_run(iConfig.getParameter<
bool>(
"runProcess")),
98 m_maxLS(iConfig.getUntrackedParameter<unsigned
int>(
"maxLSBeforeRebin", 100)),
99 m_LSfrac(iConfig.getUntrackedParameter<unsigned
int>(
"startingLSFraction", 4)),
115 sprintf(hrunname,
"badmodrun_%s",
name.c_str());
117 sprintf(hruntitle,
"Number of bad modules %s",
name.c_str());
142 std::vector<SiStripQuality::BadComponent> bads = ssq->getBadComponentList();
144 LogDebug(
"BadComponents") << bads.size() <<
" bad components found";
149 for (std::vector<SiStripQuality::BadComponent>::const_iterator bc = bads.begin(); bc != bads.end(); ++bc) {
154 for (
int fiber = 1; fiber < 5; fiber *= 2) {
155 if ((bc->BadFibers & fiber) > 0)
159 for (
int apv = 1; apv < 33; apv *= 2) {
160 if ((bc->BadApvs & apv) > 0)
169 nbad += ssq->decode(*data).range;
202 LogDebug(
"BadComponents") << bads.size() <<
" bad components found";
207 for (std::vector<SiStripQuality::BadComponent>::const_iterator bc = bads.begin(); bc != bads.end(); ++bc) {
212 for (
int fiber = 1; fiber < 5; fiber *= 2) {
213 if ((bc->BadFibers & fiber) > 0)
217 for (
int apv = 1; apv < 33; apv *= 2) {
218 if ((bc->BadApvs & apv) > 0)
233 sprintf(runname,
"%d", iRun.
run());
234 LogDebug(
"AnalyzedRun") <<
name <<
" " << runname <<
" " << nbad;