]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
if mcmode do not check for fast only
authorloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 10 Jan 2012 20:10:25 +0000 (20:10 +0000)
committerloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 10 Jan 2012 20:10:25 +0000 (20:10 +0000)
PWG4/UserTasks/EmcalTasks/AliAnalysisTaskEMCALClusterizeFast.cxx

index 991580c079e8fa59f52fad3091985371bc53ef73..f6bb906d980aacc6fb2f5385e3666c94d77c40da 100644 (file)
@@ -189,9 +189,19 @@ void AliAnalysisTaskEMCALClusterizeFast::UserExec(Option_t *)
   } else if (aodevent) {
     offtrigger =  aodevent->GetHeader()->GetOfflineTrigger();
   }
-  if (offtrigger & AliVEvent::kFastOnly) {
-    AliWarning(Form("EMCAL not in fast only partition"));
-    return;
+
+  if (1) {
+    AliAnalysisManager *am = AliAnalysisManager::GetAnalysisManager();
+    Bool_t mcmode = 0;
+    if (am->GetMCtruthEventHandler())
+      mcmode = 1;
+    if (!mcmode) {
+      UInt_t offtrigger = ((AliInputEventHandler*)(am->GetInputEventHandler()))->IsEventSelected();
+      if (offtrigger & AliVEvent::kFastOnly) {
+        AliWarning(Form("EMCAL not in fast only partition"));
+        return;
+      }
+    }
   }
   
   Init();