22 edm::LogInfo(
"SiStripBadFiberBuilder") <<
"... creating dummy SiStripBadStrip Data" << std::endl;
24 auto obj = std::make_unique<SiStripBadStrip>();
31 uint32_t BadModule_ = iBadComponent->getParameter<uint32_t>(
"BadModule");
32 std::vector<uint32_t> BadApvList_ = iBadComponent->getParameter<std::vector<uint32_t> >(
"BadApvList");
34 std::vector<unsigned int> theSiStripVector;
36 unsigned short firstBadStrip=0, NconsecutiveBadStrips=0;
37 unsigned int theBadStripRange;
39 for(std::vector<uint32_t>::const_iterator is=BadApvList_.begin(); is!=BadApvList_.end(); ++is){
41 firstBadStrip=(*is)*128;
42 NconsecutiveBadStrips=128;
44 theBadStripRange =
obj->encode(firstBadStrip,NconsecutiveBadStrips);
47 ss <<
"detid " << BadModule_ <<
" \t" 48 <<
" firstBadStrip " << firstBadStrip <<
"\t " 49 <<
" NconsecutiveBadStrips " << NconsecutiveBadStrips <<
"\t " 50 <<
" packed integer " << std::hex << theBadStripRange <<
std::dec 53 theSiStripVector.push_back(theBadStripRange);
57 if ( !
obj->put(BadModule_,range) )
58 edm::LogError(
"SiStripBadFiberBuilder")<<
"[SiStripBadFiberBuilder::analyze] detid already exists"<<std::endl;
T getUntrackedParameter(std::string const &, T const &) const
std::unique_ptr< SiStripBadStrip > getNewObject() override
SiStripBadFiberBuilder(const edm::ParameterSet &)
Parameters BadComponentList_
~SiStripBadFiberBuilder() override
std::vector< edm::ParameterSet > Parameters
std::pair< ContainerIterator, ContainerIterator > Range
std::string fullPath() const