]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSGeoUtils.cxx
Protection agains zero misalignment matrix added
[u/mrichter/AliRoot.git] / PHOS / AliPHOSGeoUtils.cxx
index 9dd7af523f1003656e32cc4f11be7725c0dd8966..cd13736d6834e0135afae9f7b241f8aa09d7b439 100644 (file)
@@ -632,6 +632,8 @@ void AliPHOSGeoUtils::SetMisalMatrix(const TGeoHMatrix * m, Int_t mod){
   if(fPHOSMatrix[mod]){ //have been set already. Can not be changed any more
     return ;
   }
+  if(m==NULL) //Matrix for non-existing modules? Remain zero, no need to re-set
+    return ;
   fPHOSMatrix[mod]= new TGeoHMatrix(*m) ;
 
   //If module does not exist, make sure all its matrices are zero