43 auto SiStripBadStrip_ = std::make_unique<SiStripBadStrip>();
47 if(!infile){
std::cout <<
"Problem while trying to open File: " << (
fp_.
fullPath()).c_str() << std::endl;}
58 std::vector<unsigned int> theSiStripVector;
69 infile >> detid >> channel;
72 unsigned int theBadStripRange=0;
85 if (channel!=tempchannel+count || flag != tempflag){
87 theBadStripRange = SiStripBadStrip_->encode(tempchannel-1, count, tempflag);
89 edm::LogInfo(
"SiStripBadStripFromASCIIFile")<<
"detid " << tempdetid <<
" \t" 90 <<
" firstBadStrip " << tempchannel <<
"\t " 91 <<
" NconsecutiveBadStrips " << count <<
"\t " 92 <<
"flag " << tempflag <<
"\t" 93 <<
" packed integer " << std::hex << theBadStripRange <<
std::dec 96 theSiStripVector.push_back(theBadStripRange);
100 if ( ! SiStripBadStrip_->put(tempdetid,range) )
101 edm::LogError(
"SiStripBadStripFromASCIIFile")<<
"[SiStripBadStripFromASCIIFile::GetNewObject] detid already exists"<<std::endl;
102 theSiStripVector.clear();
112 if(detid!=tempdetid){
114 theBadStripRange = SiStripBadStrip_->encode(tempchannel-1, count, tempflag);
116 edm::LogInfo(
"SiStripBadStripFromASCIIFile")<<
"detid " << tempdetid <<
" \t" 117 <<
" firstBadStrip " << tempchannel <<
"\t " 118 <<
" NconsecutiveBadStrips " << count <<
"\t " 119 <<
"flag " << tempflag <<
"\t" 120 <<
" packed integer " << std::hex << theBadStripRange <<
std::dec 123 theSiStripVector.push_back(theBadStripRange);
127 if ( ! SiStripBadStrip_->put(tempdetid,range) )
128 edm::LogError(
"SiStripBadStripFromASCIIFile")<<
"[SiStripBadStripFromASCIIFile::GetNewObject] detid already exists"<<std::endl;
129 theSiStripVector.clear();
138 return SiStripBadStrip_;
std::pair< ContainerIterator, ContainerIterator > Range
std::string fullPath() const