]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
small change in event selection, enabling MC events
authormcosenti <mcosenti@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 19 Nov 2012 16:25:14 +0000 (16:25 +0000)
committermcosenti <mcosenti@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 19 Nov 2012 16:25:14 +0000 (16:25 +0000)
PWGGA/EMCALTasks/AliAnalysisTaskEMCALPhoton.cxx

index 0381fd548c4f5f3c66dfdff0d7d76bce2533a5df..c502c4a8ed76062c34fa890add8c0540f7e400d5 100644 (file)
@@ -262,8 +262,9 @@ void AliAnalysisTaskEMCALPhoton::UserExec(Option_t *)
       isSelected =  (((AliInputEventHandler*)(AliAnalysisManager::GetAnalysisManager()->GetInputEventHandler()))->IsEventSelected() & AliVEvent::kEMCEGA);
 
   }
-  else
-    isSelected = 1;
+  if(fIsMC)
+    isSelected = kTRUE;
+
 
   // Post output data.
   fESD = dynamic_cast<AliESDEvent*>(InputEvent());