10 if (p!=
indexes.end() && p->detid==DetId){
11 edm::LogError(
"SiStripBadStrip") <<
"[" << __PRETTY_FUNCTION__ <<
"] SiStripBadStrip for DetID " << DetId <<
" is already stored. Skippig this put" << std::endl;
15 size_t sd= input.second-input.first;
17 detregistry.
detid=DetId;
30 if (p==
indexes.end()|| p->detid!=DetId)
33 __builtin_prefetch((&
v_badstrips.front())+p->ibegin);
34 __builtin_prefetch((&
v_badstrips.front())+p->ibegin+24);
35 __builtin_prefetch((&
v_badstrips.front())+p->iend-24);
55 DetIds_.push_back(
p->detid);
64 Registry::const_iterator it =
indexes.begin();
65 for( ; it!=
indexes.end(); ++it ) {
66 summaryBadModules.
add(it->detid);
67 summaryBadStrips.
add(it->iend - it->ibegin);
69 ss <<
"Summary of bad modules in detector:" << std::endl;
70 summaryBadModules.
print(ss,
false);
71 ss <<
"Summary of bad strip in detectors:" << std::endl;
72 summaryBadStrips.
print(ss,
false);
76 ss <<
"Printing all bad strips for all DetIds" << std::endl;
78 Registry::const_iterator it =
indexes.begin();
79 for( ; it!=
indexes.end(); ++it ) {
82 for( std::vector<unsigned int>::const_iterator badStrip = range.first;
83 badStrip != range.second; ++badStrip ) {
void getDetIds(std::vector< uint32_t > &DetIds_) const
void printSummary(std::stringstream &ss) const
Range getRangeByPos(unsigned short pos) const
Registry::const_iterator RegistryIterator
static std::string const input
void printDebug(std::stringstream &ss) const
void print(std::stringstream &ss, const bool mean=true) const
unsigned short firstStrip
const Range getRange(const uint32_t detID) const
std::pair< ContainerIterator, ContainerIterator > Range
bool put(const uint32_t &detID, const InputVector &vect)
void add(const DetId &detid, const float &value)
Used to compute the mean value of the value variable divided by subdetector, layer and mono/stereo...
data decode(const unsigned int &value) const