]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSV0Finder.cxx
cleanup
[u/mrichter/AliRoot.git] / ITS / AliITSV0Finder.cxx
index 67368542eebc96bd9c31e8a5db9cb472986401c6..8e7807f2f3ccb93798adb6fdd35e97faa49645d7 100644 (file)
@@ -32,6 +32,7 @@
 #include "AliESDVertex.h"\r
 #include "AliESDEvent.h"\r
 #include "AliESDtrack.h"\r
+#include "AliESDV0Params.h"\r
 #include "AliV0.h"\r
 #include "AliHelix.h"\r
 #include "AliITSRecPoint.h"\r
@@ -181,6 +182,7 @@ void AliITSV0Finder::FindV02(AliESDEvent *event,
   //          max distance DCA between 2 tracks cut \r
   //          maxDist = TMath::Min(kMaxDist,kMaxDist0+pvertex->GetRr()*kMaxDist);\r
   //\r
+  const Bool_t kCheckPropagate = kFALSE;\r
   const Float_t kMaxDist0 = AliITSReconstructor::GetRecoParam()->GetESDV0Params()->GetMaxDist0();\r
   const Float_t kMaxDist1 = AliITSReconstructor::GetRecoParam()->GetESDV0Params()->GetMaxDist1();\r
   const Float_t kMaxDist = AliITSReconstructor::GetRecoParam()->GetESDV0Params()->GetMaxDist();\r
@@ -359,7 +361,8 @@ void AliITSV0Finder::FindV02(AliESDEvent *event,
 \r
     alpha = TMath::ATan2(yy,xx);    \r
     //    if (!trackat0.Propagate(alpha,0)) continue;    \r
-    trackat0.Propagate(alpha,0); //PH The check on the return value is temporarily disabled (bug 45751) \r
+    //    trackat0.Propagate(alpha,0); //PH The check on the return value is temporarily disabled (bug 45751) \r
+    if(!trackat0.Propagate(alpha,0) && kCheckPropagate)continue;\r
     // calculate normalized distances to the vertex \r
     //\r
     Float_t ptfac  = (1.+100.*TMath::Abs(trackat0.GetC()));\r
@@ -552,7 +555,8 @@ void AliITSV0Finder::FindV02(AliESDEvent *event,
       //\r
       //\r
       //\r
-      Double_t phase[2][2],radius[2];\r
+      Double_t phase[2][2]={{0.,0.},{0.,0.}};\r
+      Double_t radius[2]={0.,0.};\r
       Int_t  points = h1.GetRPHIintersections(h2, phase, radius);\r
       if    (points==0) {\r
        //      cutN=1;\r
@@ -1036,6 +1040,7 @@ void AliITSV0Finder::FindV02(AliESDEvent *event,
   delete[] itsmap;\r
   delete[] helixes;\r
   delete   pvertex;\r
+  delete   dummy;\r
 }\r
 //------------------------------------------------------------------------\r
 void AliITSV0Finder::RefitV02(const AliESDEvent *event,\r