Patch to remove global contrained tracks from the calculation of the primary vertex...
authorprino <prino@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 1 Aug 2012 21:57:32 +0000 (21:57 +0000)
committerprino <prino@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 1 Aug 2012 21:57:32 +0000 (21:57 +0000)
PWGHF/vertexingHF/AliAODRecoDecayHF.cxx

index 464d12b..2b928b3 100644 (file)
@@ -293,6 +293,15 @@ 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);