]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Exclude global constrained and TPC only tracks (filter bits 128 and 512) of the prima...
authorzconesa <zconesa@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 4 Feb 2013 14:12:48 +0000 (14:12 +0000)
committerzconesa <zconesa@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 4 Feb 2013 14:12:48 +0000 (14:12 +0000)
PWGHF/vertexingHF/AliAODRecoDecayHF.cxx
STEER/ESD/AliVertexerTracks.cxx

index 2b928b369ab964ffcc38a402ad8e196b711742c9..5779e2fe06d8cc646343258b61447e3eddd51e47 100644 (file)
@@ -293,16 +293,6 @@ AliAODVertex* AliAODRecoDecayHF::RemoveDaughtersFromPrimaryVtx(AliAODEvent *aod)
     skipped[nTrksToSkip++] = id;
   }
 
-  // exclude tracks with global constrained parameters
-  Int_t nTracks=aod->GetNumberOfTracks();
-  for(Int_t i=0; i<nTracks; i++){
-    t = aod->GetTrack(i);
-    if(t->TestFilterMask(512)){
-      id = (Int_t)t->GetID();
-      skipped[nTrksToSkip++] = id;
-    }
-  }
-
   vertexer->SetSkipTracks(nTrksToSkip,skipped);
   AliESDVertex *vtxESDNew = vertexer->FindPrimaryVertex(aod);
 
index b5619809a1ae89ff2fd7274aba975590b8d8cc24..a1e4ca54aeaa442d5d49e3adf356313c812197d9 100644 (file)
@@ -239,6 +239,7 @@ AliESDVertex* AliVertexerTracks::FindPrimaryVertex(const AliVEvent *vEvent)
        if(!PropagateTrackTo(t,radius)) continue;
       }
     } else {          // AOD (only ITS mode)
+      if(track->GetID()<0) continue; // exclude global constrained and TPC only tracks (filter bits 128 and 512)
       Int_t ncls0=0;
       for(Int_t l=0;l<6;l++) if(TESTBIT(track->GetITSClusterMap(),l)) ncls0++;
       if(ncls0 < fMinClusters) continue;