10 if (p !=
indexes.end() && p->detid == DetId) {
11 edm::LogError(
"SiStripBadStrip") <<
"[" << __PRETTY_FUNCTION__ <<
"] SiStripBadStrip for DetID " << DetId
12 <<
" is already stored. Skipping this put" << std::endl;
16 size_t sd = input.second - input.first;
18 detregistry.
detid = DetId;
31 if (p ==
indexes.end() || p->detid != DetId)
34 __builtin_prefetch((&
v_badstrips.front()) + p->ibegin);
35 __builtin_prefetch((&
v_badstrips.front()) + p->ibegin + 24);
36 __builtin_prefetch((&
v_badstrips.front()) + p->iend - 24);
46 __builtin_prefetch((&
v_badstrips.front()) +
p->ibegin + 24);
47 __builtin_prefetch((&
v_badstrips.front()) +
p->iend - 24);
56 DetIds_.push_back(
p->detid);
65 Registry::const_iterator it =
indexes.begin();
66 for (; it !=
indexes.end(); ++it) {
67 summaryBadModules.add(it->detid);
68 summaryBadStrips.add(it->iend - it->ibegin);
70 ss <<
"Summary of bad modules in detector:" << std::endl;
71 summaryBadModules.print(ss,
false);
72 ss <<
"Summary of bad strip in detectors:" << std::endl;
73 summaryBadStrips.print(ss,
false);
77 ss <<
"Printing all bad strips for all DetIds" << std::endl;
79 Registry::const_iterator it =
indexes.begin();
80 for (; it !=
indexes.end(); ++it) {
83 for (std::vector<unsigned int>::const_iterator badStrip = range.first; badStrip != range.second; ++badStrip) {
85 <<
" flag=" <<
decode(*badStrip).
flag << std::endl;
void getDetIds(std::vector< uint32_t > &DetIds_) const
Range getRangeByPos(unsigned short pos) const
Registry::const_iterator RegistryIterator
Log< level::Error, false > LogError
void printDebug(std::stringstream &ss, const TrackerTopology *trackerTopo) const
static std::string const input
const uint16_t range(const Frame &aFrame)
unsigned short firstStrip
const Range getRange(const uint32_t detID) const
__host__ __device__ constexpr RandomIt lower_bound(RandomIt first, RandomIt last, const T &value, Compare comp={})
std::pair< ContainerIterator, ContainerIterator > Range
bool put(const uint32_t &detID, const InputVector &vect)
void printSummary(std::stringstream &ss, const TrackerTopology *trackerTopo) const
data decode(const unsigned int &value) const