facilitates analysis of kine trees without esd
authorsnelling <snelling@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 23 Apr 2011 12:10:50 +0000 (12:10 +0000)
committersnelling <snelling@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 23 Apr 2011 12:10:50 +0000 (12:10 +0000)
PWG2/FLOW/AliFlowTasks/AliAnalysisTaskFlowEvent.cxx

index 84e97f1..981162f 100644 (file)
@@ -304,7 +304,7 @@ void AliAnalysisTaskFlowEvent::UserExec(Option_t *)
   if (fAnalysisType == "AUTOMATIC")
   {
     //check event cuts
-    if (!fCutsEvent->IsSelected(InputEvent())) return;
+    if (InputEvent() && !fCutsEvent->IsSelected(InputEvent())) return;
 
     //first attach all possible information to the cuts
     fCutsRP->SetEvent( InputEvent(), MCEvent() );  //attach event