22 std::unique_ptr<SiStripBadStrip>
getNewObject()
override;
39 edm::LogInfo(
"SiStripBadFiberBuilder") <<
"... creating dummy SiStripBadStrip Data" << std::endl;
41 auto obj = std::make_unique<SiStripBadStrip>();
46 uint32_t BadModule_ = iBadComponent->getParameter<uint32_t>(
"BadModule");
47 std::vector<uint32_t> BadApvList_ = iBadComponent->getParameter<std::vector<uint32_t> >(
"BadApvList");
49 std::vector<unsigned int> theSiStripVector;
51 unsigned short firstBadStrip = 0, NconsecutiveBadStrips = 0;
52 unsigned int theBadStripRange;
54 for (std::vector<uint32_t>::const_iterator is = BadApvList_.begin(); is != BadApvList_.end(); ++is) {
55 firstBadStrip = (*is) * 128;
56 NconsecutiveBadStrips = 128;
58 theBadStripRange =
obj->encode(firstBadStrip, NconsecutiveBadStrips);
61 ss <<
"detid " << BadModule_ <<
" \t" 62 <<
" firstBadStrip " << firstBadStrip <<
"\t " 63 <<
" NconsecutiveBadStrips " << NconsecutiveBadStrips <<
"\t " 64 <<
" packed integer " << std::hex << theBadStripRange <<
std::dec << std::endl;
66 theSiStripVector.push_back(theBadStripRange);
71 edm::LogError(
"SiStripBadFiberBuilder") <<
"[SiStripBadFiberBuilder::analyze] detid already exists" << std::endl;
std::unique_ptr< SiStripBadStrip > getNewObject() override
SiStripBadFiberBuilder(const edm::ParameterSet &)
T getUntrackedParameter(std::string const &, T const &) const
Parameters BadComponentList_
~SiStripBadFiberBuilder() override
std::vector< edm::ParameterSet > Parameters
#define DEFINE_FWK_MODULE(type)
Log< level::Info, false > LogInfo
std::pair< ContainerIterator, ContainerIterator > Range