]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
First vertex check, then z of vertex check
authoramarin <amarin@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 27 Aug 2010 13:25:39 +0000 (13:25 +0000)
committeramarin <amarin@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 27 Aug 2010 13:25:39 +0000 (13:25 +0000)
PWG4/GammaConv/AliAnalysisTaskGammaConversion.cxx

index e038b22b757d2b5f6c8fbec0cc35f6e998ea716a..e6e7842e71a8e5a348886469a0ec9abe29564022 100644 (file)
@@ -432,16 +432,18 @@ void AliAnalysisTaskGammaConversion::UserExec(Option_t */*option*/)
   }
   */
 
-  if(!fV0Reader->CheckForPrimaryVertexZ() ){
-    return;
-  }
-
   if(fV0Reader->CheckForPrimaryVertex() == kFALSE){
     //    cout<< "Event not taken"<< endl;
     return; // aborts if the primary vertex does not have contributors.
   }
 
 
+  if(!fV0Reader->CheckForPrimaryVertexZ() ){
+    return;
+  }
+
+
+
   // Process the MC information
   if(fDoMCTruth){
     ProcessMCData();