-add TPC vertex for AOD event cuts
authorjbook <jbook@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 1 Nov 2012 13:01:19 +0000 (13:01 +0000)
committerjbook <jbook@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 1 Nov 2012 13:01:19 +0000 (13:01 +0000)
PWGDQ/dielectron/AliDielectronEventCuts.cxx

index 79766f1..0699b58 100644 (file)
@@ -199,7 +199,7 @@ Bool_t AliDielectronEventCuts::IsSelectedAOD(TObject* event)
 
   switch(fVtxType){
   case kVtxTracks:         fkVertexAOD=0x0;                       break;
-  case kVtxTPC:            fkVertexAOD=GetPrimaryVertexTPC(ev);   break;
+  case kVtxTPC:            fkVertexAOD=ev->GetVertex(AliAODVertex::kMainTPC);   break;
   case kVtxSPD:
   case kVtxTracksOrSPD:    fkVertexAOD=ev->GetPrimaryVertexSPD(); break;
   case kVtxAny:            fkVertexAOD=ev->GetPrimaryVertex();    break;