Protection in Physical node
authordibari <dibari@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 18 Apr 2007 13:24:53 +0000 (13:24 +0000)
committerdibari <dibari@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 18 Apr 2007 13:24:53 +0000 (13:24 +0000)
HMPID/AliHMPIDParam.cxx

index 4e4eacd..5ae43cb 100644 (file)
@@ -45,7 +45,11 @@ AliHMPIDParam::AliHMPIDParam():TNamed("HmpidParam","default version")
         IdealPosition(i,fM[i]);
       } else {
         TGeoPhysicalNode *pnode = pne->GetPhysicalNode();
-        fM[i]=pnode->GetMatrix();
+        if(pnode) fM[i]=pnode->GetMatrix();
+        else {
+          fM[i]=new TGeoHMatrix;
+          IdealPosition(i,fM[i]);
+        }
       }
     } else{
       fM[i]=new TGeoHMatrix;