]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/mapping/AliMpHVNamer.cxx
bugfix: stopwatches for HLT benchmarks had been resumed at wrong point and measuremen...
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpHVNamer.cxx
index 7d18c431e4a5b62a062738ecb207980eb6ca6683..0e9e93b90f1831dfaf1e394f1496eabc1a2b43d0 100644 (file)
@@ -507,6 +507,8 @@ AliMpHVNamer::ManuId2PCBIndex(Int_t detElemId, Int_t manuId) const
   
   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);
@@ -522,6 +524,8 @@ AliMpHVNamer::ManuId2Sector(Int_t detElemId, Int_t manuId) const
   
   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);