Adding protection in case of missing TPC seed (M.Ivanov)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 22 Feb 2004 17:32:24 +0000 (17:32 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 22 Feb 2004 17:32:24 +0000 (17:32 +0000)
TPC/AliTPCtrackerMI.cxx

index b20ff81..c781370 100644 (file)
@@ -2472,6 +2472,7 @@ Int_t AliTPCtrackerMI::PropagateBack(AliESD *event)
   Int_t ntracks=0;
   for (Int_t i=0;i<nseed;i++){
     AliTPCseed * seed = (AliTPCseed*) fSeeds->UncheckedAt(i);
+    if (!seed) continue;
     AliESDtrack *esd=event->GetTrack(i);
     seed->CookdEdx(0.02,0.6);
     CookLabel(seed,0.1); //For comparison only