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)
42 DetIds_.push_back(
p->detid);
51 Registry::const_iterator it =
indexes.begin();
52 for( ; it!=
indexes.end(); ++it ) {
53 summaryBadModules.
add(it->detid);
54 summaryBadStrips.
add(it->iend - it->ibegin);
56 ss <<
"Summary of bad modules in detector:" << std::endl;
57 summaryBadModules.
print(ss,
false);
58 ss <<
"Summary of bad strip in detectors:" << std::endl;
59 summaryBadStrips.
print(ss,
false);
63 ss <<
"Printing all bad strips for all DetIds" << std::endl;
65 Registry::const_iterator it =
indexes.begin();
66 for( ; it!=
indexes.end(); ++it ) {
67 ss <<
"For DetId = " << it->detid << std::endl;
69 for( std::vector<unsigned int>::const_iterator badStrip = range.first;
70 badStrip != range.second; ++badStrip ) {
71 ss <<
"strip: " << *badStrip << std::endl;
void getDetIds(std::vector< uint32_t > &DetIds_) const
void printSummary(std::stringstream &ss) const
Registry::const_iterator RegistryIterator
void printDebug(std::stringstream &ss) const
void print(std::stringstream &ss, const bool mean=true) const
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...