12 "file",
edm::FileInPath(
"CalibTracker/SiStripCommon/data/SiStripDetInfo.dat"));
20 edm::LogInfo(
"SiStripBadFiberBuilder") <<
"... creating dummy SiStripBadStrip Data" << std::endl;
22 auto obj = std::make_unique<SiStripBadStrip>();
29 uint32_t BadModule_ = iBadComponent->getParameter<uint32_t>(
"BadModule");
30 std::vector<uint32_t> BadApvList_ = iBadComponent->getParameter<std::vector<uint32_t> >(
"BadApvList");
32 std::vector<unsigned int> theSiStripVector;
34 unsigned short firstBadStrip = 0, NconsecutiveBadStrips = 0;
35 unsigned int theBadStripRange;
37 for (std::vector<uint32_t>::const_iterator is = BadApvList_.begin(); is != BadApvList_.end(); ++is) {
38 firstBadStrip = (*is) * 128;
39 NconsecutiveBadStrips = 128;
41 theBadStripRange =
obj->encode(firstBadStrip, NconsecutiveBadStrips);
44 ss <<
"detid " << BadModule_ <<
" \t" 45 <<
" firstBadStrip " << firstBadStrip <<
"\t " 46 <<
" NconsecutiveBadStrips " << NconsecutiveBadStrips <<
"\t " 47 <<
" packed integer " << std::hex << theBadStripRange <<
std::dec << std::endl;
49 theSiStripVector.push_back(theBadStripRange);
54 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