Additional protection. The MeanMaterialBudget budget will be upgraded soon (A.Gheata)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 21 Dec 2005 13:55:24 +0000 (13:55 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 21 Dec 2005 13:55:24 +0000 (13:55 +0000)
STEER/AliKalmanTrack.cxx

index 3cfe6a6..95bce32 100644 (file)
@@ -432,6 +432,7 @@ Double_t AliKalmanTrack::MeanMaterialBudget(Double_t *start, Double_t *end, Doub
     bparam[0]    += snext*lparam[0];
 
     if (snext>=length) break;
+    if (!currentnode) break;
     //    printf("%s snext=%f  density=%f bparam[0]=%f\n", gGeoManager->GetPath(),snext,density,bparam[0]);
     if (!gGeoManager->IsEntering()) {
       gGeoManager->SetStep(1.E-3);