]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITStrackerSA.cxx
Activate PureSA tracking in HighFlux configuration for low multiplicity events (Ruben...
[u/mrichter/AliRoot.git] / ITS / AliITStrackerSA.cxx
index d4bbeb84dd499f362c2c95a6ddd0799847eb977b..3e9c5ee4e40dfa5ec14e0d7065581ce5836fab65 100644 (file)
@@ -270,6 +270,7 @@ Int_t AliITStrackerSA::Clusters2Tracks(AliESDEvent *event){
 // is done in the ITS only. In the standard reconstruction chain this option
 // can be set via AliReconstruction::SetOption("ITS","onlyITS")
   Int_t rc=0;
+
   if(!fITSStandAlone){
     rc=AliITStrackerMI::Clusters2Tracks(event);
   }
@@ -278,11 +279,14 @@ Int_t AliITStrackerSA::Clusters2Tracks(AliESDEvent *event){
   }
   if(!rc){ 
     rc=FindTracks(event,kFALSE);
-    if(AliITSReconstructor::GetRecoParam()->GetSAUseAllClusters()==kTRUE) {
+    Int_t nSPDcontr=0;
+    const AliESDVertex *spdv = event->GetPrimaryVertexSPD();
+    if(spdv) nSPDcontr = spdv->GetNContributors();
+    if(AliITSReconstructor::GetRecoParam()->GetSAUseAllClusters()==kTRUE && 
+       nSPDcontr<=AliITSReconstructor::GetRecoParam()->GetMaxSPDcontrForSAToUseAllClusters()) {
       rc=FindTracks(event,kTRUE);
     }
   }
-
   return rc;
 }