47 theDisabledModules.insert(theDisabledModules.end(), idVector.begin(), idVector.end());
52 std::vector<uint32_t> vdets;
55 std::vector<uint32_t>::const_iterator iter = vdets.begin();
56 std::vector<uint32_t>::const_iterator iterEnd = vdets.end();
58 for (; iter != iterEnd; ++iter) {
60 BadModule.
DetID = *iter;
63 if (IsModuleUsable(BadModule.
DetID))
64 addDisabledModule(BadModule);
81 std::vector<SiPixelQuality::disabledModuleType> disabledModules = theDisabledModules;
83 std::vector<disabledModuleType>::const_iterator iter = std::lower_bound(
85 if (iter != disabledModules.end() && iter->DetID == detid && iter->errorType == 0)
91 std::vector<SiPixelQuality::disabledModuleType> disabledModules = theDisabledModules;
93 return disabledModules.size();
100 std::vector<SiPixelQuality::disabledModuleType> disabledModules = theDisabledModules;
102 std::vector<disabledModuleType>::const_iterator iter = std::lower_bound(
105 if (iter != disabledModules.end() && iter->DetID == detid && iter->errorType == 0)
112 if (IsModuleBad(detid))
114 std::vector<SiPixelQuality::disabledModuleType> disabledModules = theDisabledModules;
116 std::vector<disabledModuleType>::const_iterator iter = std::lower_bound(
118 if (iter != disabledModules.end() && iter->DetID == detid) {
119 return ((iter->BadRocs >> rocNb) & 0x1);
129 int rocfromarea = -1;
139 std::vector<SiPixelQuality::disabledModuleType> disabledModules = theDisabledModules;
141 std::vector<disabledModuleType>::const_iterator iter = std::lower_bound(
143 if (iter != disabledModules.end() && iter->DetID == detid)
144 return iter->BadRocs;
151 std::vector<LocalPoint> badrocpositions(0);
152 for (
unsigned int i = 0;
i < 16;
i++) {
153 if (IsRocBad(detid,
i) ==
true) {
155 typedef std::vector<CablingPathToDetUnit>::const_iterator
IT;
156 for (IT it = path.begin(); it != path.end(); ++it) {
170 badrocpositions.push_back(localpoint);
176 return badrocpositions;
void addDisabledModule(disabledModuleType module)
void add(const SiStripDetVOff *)
virtual std::vector< sipixelobjects::CablingPathToDetUnit > pathToDetUnit(uint32_t rawDetId) const =0
CaloTopology const * topology(0)
bool IsFedBad(const uint32_t &detid) const
bool IsRocBad(const uint32_t &detid, const short &rocNb) const
identify pixel inside single ROC
global coordinates (row and column in DetUnit, as in PixelDigi)
void getDetIds(std::vector< uint32_t > &DetIds_) const
const std::vector< LocalPoint > getBadRocPositions(const uint32_t &detid, const TrackerGeometry &theTracker, const SiPixelFedCabling *map) const
unsigned int idInDetUnit() const
id of this ROC in DetUnit etermined by token path
std::vector< LinkConnSpec >::const_iterator IT
bool IsModuleUsable(const uint32_t &detid) const
bool IsModuleBad(const uint32_t &detid) const
short findRocInDet(uint32_t detId, sipixelobjects::GlobalPixel global)
virtual const sipixelobjects::PixelROC * findItem(const sipixelobjects::CablingPathToDetUnit &) const =0
virtual const PixelTopology & specificTopology() const
Returns a reference to the pixel proxy topology.
row and collumn in ROC representation
virtual LocalPoint localPosition(const MeasurementPoint &) const =0
short getBadRocs(const uint32_t &detid) const
bool IsAreaBad(uint32_t detid, sipixelobjects::GlobalPixel global, const edm::EventSetup &es, const SiPixelFedCabling *map) const
const TrackerGeomDet * idToDet(DetId) const override
GlobalPixel toGlobal(const LocalPixel &loc) const