Do not skip events with EventType==0 (MC)
authordainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 6 Jul 2010 08:23:13 +0000 (08:23 +0000)
committerdainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 6 Jul 2010 08:23:13 +0000 (08:23 +0000)
PWG1/global/AliAnalysisTaskVertexESD.cxx

index bde90e0f0f2af5d47073dd9f107da69597187638..64be43d34b21639faa85af7714f2384c7ce48e6c 100644 (file)
@@ -175,7 +175,11 @@ void AliAnalysisTaskVertexESD::UserExec(Option_t *)
   }
   AliESDEvent* esdE = (AliESDEvent*) InputEvent();
   
-  if(fCheckEventType && (esdE->GetEventType())!=7) return; 
+  // Select PHYSICS events (type=7, for data) and MC events (type=0)
+  // fCheckEventType is kFALSE if fReadMC is kTRUE, hence check is skipped
+  if(fCheckEventType) {
+    if(esdE->GetEventType()!=7 && esdE->GetEventType()!=0) return; 
+  }
 
 
   TArrayF mcVertex(3);