const AliMpSlatSegmentation* seg = static_cast<const AliMpSlatSegmentation*>
(AliMpSegmentation::Instance()->GetMpSegmentationByElectronics(detElemId,manuId));
+ if (!seg) return -1;
+
const AliMpSlat* slat = seg->Slat();
return slat->FindPCBIndexByMotifPositionID(manuId);
const AliMpSectorSegmentation* seg = static_cast<const AliMpSectorSegmentation*>
(AliMpSegmentation::Instance()->GetMpSegmentationByElectronics(detElemId,manuId));
+ if (!seg) return -1;
+
const AliMpSector* sector = seg->GetSector();
const AliMpMotifMap* motifMap = sector->GetMotifMap();
const AliMpMotifPosition* motifPos = motifMap->FindMotifPosition(manuId);