Added flag readMC as an argument of AddTaskDs()
authordainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 14 Jan 2010 01:42:48 +0000 (01:42 +0000)
committerdainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 14 Jan 2010 01:42:48 +0000 (01:42 +0000)
PWG3/vertexingHF/AddTaskDs.C

index fa6739b..55cec4b 100644 (file)
@@ -1,4 +1,4 @@
-AliAnalysisTaskSEDs *AddTaskDs()
+AliAnalysisTaskSEDs *AddTaskDs(Bool_t readMC=kTRUE)
 {
   //                                                                           
   // Test macro for the AliAnalysisTaskSE for Ds candidates 
@@ -13,7 +13,7 @@ AliAnalysisTaskSEDs *AddTaskDs()
 
   // Aanalysis task                                                                                                                     
   AliAnalysisTaskSEDs *dsTask = new AliAnalysisTaskSEDs("DsAnalysis");
-  dsTask->SetReadMC(kTRUE);
+  dsTask->SetReadMC(readMC);
   dsTask->SetDebugLevel(0);
   mgr->AddTask(dsTask);