]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliReconstruction.cxx
Keep also the events with cosmic tracks (Marian)
[u/mrichter/AliRoot.git] / STEER / AliReconstruction.cxx
index e7dce40f16730a22869bb9a039c6efd8359e3a45..5103a0b668718efef70d8fbc1e197b47968db031 100644 (file)
@@ -3943,6 +3943,10 @@ Bool_t AliReconstruction::IsHighPt() const {
   ULong_t mask = 0;
   mask |= (AliESDtrack::kITSrefit);
   mask |= (AliESDtrack::kTPCrefit);
+  const Double_t pTminCosmic = 5.;
+  const Double_t pTmaxCosmic = 100;
+  ULong_t maskCosmic = 0;
+  maskCosmic |= (AliESDtrack::kTPCrefit);
 
   Bool_t isOK = kFALSE;
 
@@ -3960,6 +3964,15 @@ Bool_t AliReconstruction::IsHighPt() const {
        isOK = kTRUE;
        break;
       }
+      if (trk 
+         && trk->GetInnerParam()
+         && trk->GetInnerParam()->Pt() > pTminCosmic 
+         && trk->GetInnerParam()->Pt() < pTmaxCosmic
+         && (trk->GetStatus() & maskCosmic) == maskCosmic ) {
+       
+       isOK = kTRUE;
+       break;
+      }
     }
   }
   return isOK;