20 std::unique_ptr<SiStripBadStrip>
getNewObject()
override;
38 auto obj = std::make_unique<SiStripBadStrip>();
40 unsigned int firstBadStrip = 0;
41 unsigned short NconsecutiveBadStrips;
42 unsigned int theBadStripRange;
45 std::vector<unsigned int> theSiStripVector;
47 NconsecutiveBadStrips = detInfo.getNumberOfApvsAndStripLength(*it).first * 128;
48 theBadStripRange =
obj->encode(firstBadStrip, NconsecutiveBadStrips);
51 <<
" BadModule " << *
it <<
" \t" 52 <<
" firstBadStrip " << firstBadStrip <<
"\t " 53 <<
" NconsecutiveBadStrips " << NconsecutiveBadStrips <<
"\t " 54 <<
" packed integer " << std::hex << theBadStripRange <<
std::dec << std::endl;
56 theSiStripVector.push_back(theBadStripRange);
60 <<
"[SiStripBadModuleByHandBuilder::analyze] detid already exists" << std::endl;
~SiStripBadModuleByHandBuilder() override=default
T getUntrackedParameter(std::string const &, T const &) const
#define DEFINE_FWK_MODULE(type)
SiStripDetInfo read(std::string filePath)
std::unique_ptr< SiStripBadStrip > getNewObject() override
std::vector< uint32_t > BadModuleList_
Log< level::Info, false > LogInfo
std::pair< ContainerIterator, ContainerIterator > Range
static constexpr char const *const kDefaultFile
const std::string & fullPath() const
SiStripBadModuleByHandBuilder(const edm::ParameterSet &)