Quick fix for bug 71658
authorhdalsgaa <hdalsgaa@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 23 Aug 2010 08:58:50 +0000 (08:58 +0000)
committerhdalsgaa <hdalsgaa@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 23 Aug 2010 08:58:50 +0000 (08:58 +0000)
PWG2/FORWARD/analysis/AddTaskFMD.C

index 544f2e4..83c1ae2 100644 (file)
@@ -22,6 +22,10 @@ AliFMDAnalysisTaskSE* AddTaskFMD() {
   pars->SetProcessPrimary(kTRUE);
   pars->SetProcessHits(kFALSE);
   
+  pars->SetRealData(kTRUE);
+  AliMCEventHandler* eventHandler = dynamic_cast<AliMCEventHandler*> (AliAnalysisManager::GetAnalysisManager()->GetMCtruthEventHandler());
+  if(eventHandler) pars->SetRealData(kFALSE);
+  
   TString outputfile = AliAnalysisManager::GetCommonFileName();
   outputfile += Form(":%s",pars->GetDndetaAnalysisName());