Correctly passing the input arg
authorcoppedis <coppedis@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 11 Feb 2013 21:59:28 +0000 (21:59 +0000)
committercoppedis <coppedis@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 11 Feb 2013 21:59:28 +0000 (21:59 +0000)
PWGLF/FORWARD/macros/AddTaskZDCpAcalib.C

index df90887..e94c276 100644 (file)
@@ -26,13 +26,13 @@ AliAnalysisTaskSE* AddTaskZDCpAcalib(Bool_t  applyPS = kTRUE,
    AliAnalysisTaskZDCpAcalib* task = new AliAnalysisTaskZDCpAcalib("taskZDCpA");
 
    if(inputDataType.CompareTo("ESD")==0){
-      task->SetInput(1);
+      task->SetInput("ESD");
       //
       // apply physics selection
       if(applyPS) task->SelectCollisionCandidates();
    }
    else if(inputDataType.CompareTo("AOD")==0){
-      task->SetInput(2);
+      task->SetInput("AOD");
       //printf("  AliAnalysisTaskZDCpAcalib initialized for AOD analysis\n");
    }