]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Additional protection
authormarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 17 Feb 2011 01:42:04 +0000 (01:42 +0000)
committermarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 17 Feb 2011 01:42:04 +0000 (01:42 +0000)
(Failed strss test with high statics)

TPC/AliTPCseed.cxx

index b5587d9a4f316b0c2b3cbd7a3f22662c40d06c7c..c05f1f82c3e87ef25a1c15ac7fd931ef895a4627 100644 (file)
@@ -1183,7 +1183,7 @@ Float_t  AliTPCseed::CookdEdxAnalytical(Double_t low, Double_t up, Int_t type, I
   //
   for (Int_t irow=i1; irow<i2; irow++){
     AliTPCclusterMI* cluster = GetClusterPointer(irow);
-    if (!cluster) {
+    if (!cluster && irow > 1 && irow < 157) {
       Bool_t isClBefore = kFALSE;
       Bool_t isClAfter  = kFALSE;
       for(Int_t ithres = 1; ithres <= rowThres; ithres++) {
@@ -1193,8 +1193,8 @@ Float_t  AliTPCseed::CookdEdxAnalytical(Double_t low, Double_t up, Int_t type, I
        if (clusterAfter) isClAfter = kTRUE;
       }
       if (isClBefore && isClAfter) nclBelowThr++;
-      continue;
     }
+    if (!cluster) continue;
     //
     //
     if (TMath::Abs(cluster->GetY())>cluster->GetX()*ktany-kedgey) continue; // edge cluster