16 edm::LogInfo(
"SiStripBadFiberBuilder") <<
"... creating dummy SiStripBadStrip Data" << std::endl;
18 auto obj = std::make_unique<SiStripBadStrip>();
23 uint32_t BadModule_ = iBadComponent->getParameter<uint32_t>(
"BadModule");
24 std::vector<uint32_t> BadApvList_ = iBadComponent->getParameter<std::vector<uint32_t> >(
"BadApvList");
26 std::vector<unsigned int> theSiStripVector;
28 unsigned short firstBadStrip = 0, NconsecutiveBadStrips = 0;
29 unsigned int theBadStripRange;
31 for (std::vector<uint32_t>::const_iterator is = BadApvList_.begin(); is != BadApvList_.end(); ++is) {
32 firstBadStrip = (*is) * 128;
33 NconsecutiveBadStrips = 128;
35 theBadStripRange =
obj->encode(firstBadStrip, NconsecutiveBadStrips);
38 ss <<
"detid " << BadModule_ <<
" \t"
39 <<
" firstBadStrip " << firstBadStrip <<
"\t "
40 <<
" NconsecutiveBadStrips " << NconsecutiveBadStrips <<
"\t "
41 <<
" packed integer " << std::hex << theBadStripRange <<
std::dec << std::endl;
43 theSiStripVector.push_back(theBadStripRange);
48 edm::LogError(
"SiStripBadFiberBuilder") <<
"[SiStripBadFiberBuilder::analyze] detid already exists" << std::endl;