22 unsigned int run=
event.id().run();
24 edm::LogInfo(
"SiStripBadFiberBuilder") <<
"... creating dummy SiStripBadStrip Data for Run " << run <<
"\n " << std::endl;
33 uint32_t BadModule_ = iBadComponent->getParameter<uint32_t>(
"BadModule");
34 std::vector<uint32_t> BadApvList_ = iBadComponent->getParameter<std::vector<uint32_t> >(
"BadApvList");
36 std::vector<unsigned int> theSiStripVector;
38 unsigned short firstBadStrip=0, NconsecutiveBadStrips=0;
39 unsigned int theBadStripRange;
41 for(std::vector<uint32_t>::const_iterator is=BadApvList_.begin(); is!=BadApvList_.end(); ++is){
43 firstBadStrip=(*is)*128;
44 NconsecutiveBadStrips=128;
46 theBadStripRange =
obj->
encode(firstBadStrip,NconsecutiveBadStrips);
49 ss <<
"detid " << BadModule_ <<
" \t" 50 <<
" firstBadStrip " << firstBadStrip <<
"\t " 51 <<
" NconsecutiveBadStrips " << NconsecutiveBadStrips <<
"\t " 52 <<
" packed integer " << std::hex << theBadStripRange <<
std::dec 55 theSiStripVector.push_back(theBadStripRange);
59 if ( !
obj->
put(BadModule_,range) )
60 edm::LogError(
"SiStripBadFiberBuilder")<<
"[SiStripBadFiberBuilder::analyze] detid already exists"<<std::endl;
T getUntrackedParameter(std::string const &, T const &) const
SiStripBadFiberBuilder(const edm::ParameterSet &)
void algoAnalyze(const edm::Event &event, const edm::EventSetup &iSetup) override
Parameters BadComponentList_
~SiStripBadFiberBuilder() override
std::vector< edm::ParameterSet > Parameters
std::pair< ContainerIterator, ContainerIterator > Range
std::string fullPath() const
bool put(const uint32_t &detID, const InputVector &vect)
unsigned int encode(const unsigned short &first, const unsigned short &NconsecutiveBadStrips, const unsigned short &flag=0)