Fix to make the macro working both with AOD and ESD
authorshahoian <ruben.shahoyan@cern.ch>
Tue, 8 Apr 2014 19:01:27 +0000 (21:01 +0200)
committershahoian <ruben.shahoyan@cern.ch>
Tue, 8 Apr 2014 19:01:27 +0000 (21:01 +0200)
PWGPP/PilotTrain/AddTaskCDBconnect.C

index 72da863..bddc245 100644 (file)
@@ -6,11 +6,12 @@ AliTaskCDBconnect* AddTaskCDBconnect(const char *path="raw://", Int_t run=0)
        return NULL;
     }   
     TString inputDataType = mgr->GetInputEventHandler()->GetDataType(); // can be "ESD" or "AOD"
+    /*
     if (inputDataType != "ESD") {
        ::Error("AddTaskCDBconnect", "Can only run with ESD input handler");
        return NULL;
     }   
-    
+    */
     AliTaskCDBconnect *task= new AliTaskCDBconnect("CDBconnect", path, run);
     mgr->AddTask(task);
     AliAnalysisDataContainer *cinput1 = mgr->GetCommonInputContainer();