51 theDisabledModules.insert(theDisabledModules.end(),
60 std::vector<uint32_t> vdets;
63 std::vector<uint32_t>::const_iterator iter=vdets.begin();
64 std::vector<uint32_t>::const_iterator iterEnd=vdets.end();
66 for(;iter!=iterEnd;++iter){
68 BadModule.
DetID = *iter;
71 if(IsModuleUsable(BadModule.
DetID))
72 addDisabledModule(BadModule);
90 std::vector<SiPixelQuality::disabledModuleType>disabledModules = theDisabledModules;
93 if (iter != disabledModules.end() && iter->DetID==detid && iter->errorType ==0)
99 std::vector<SiPixelQuality::disabledModuleType>disabledModules = theDisabledModules;
101 return disabledModules.size();
108 std::vector<SiPixelQuality::disabledModuleType>disabledModules = theDisabledModules;
111 if (iter != disabledModules.end() && iter->DetID==detid && iter->errorType == 0)
118 if(IsModuleBad(detid))
120 std::vector<SiPixelQuality::disabledModuleType>disabledModules = theDisabledModules;
123 if (iter != disabledModules.end() && iter->DetID == detid){
124 return ((iter->BadRocs >> rocNb)&0x1);}
131 int rocfromarea = -1;
142 std::vector<SiPixelQuality::disabledModuleType>disabledModules = theDisabledModules;
145 if (iter != disabledModules.end() && iter->DetID==detid)
146 return iter->BadRocs;
151 std::vector<LocalPoint> badrocpositions (0);
152 std::pair<uint8_t, uint8_t> coord(1,1);
153 for(
unsigned int i = 0;
i < 16;
i++){
154 if (IsRocBad(detid,
i) ==
true){
156 typedef std::vector<CablingPathToDetUnit>::const_iterator
IT;
157 for (IT it = path.begin(); it != path.end(); ++it) {
171 badrocpositions.push_back(localpoint);
177 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
GlobalPixel toGlobal(const LocalPixel &loc) const