]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG/EMCAL/macros/AddTaskEmcalSetup.C
added geo path and updated macro to be able to specify input
[u/mrichter/AliRoot.git] / PWG / EMCAL / macros / AddTaskEmcalSetup.C
index c58d70b475e062a28f36f96f3da0d11aba393efe..f8eb8ea95280a2d4986b6347cdfdfabfaeb72139 100644 (file)
@@ -1,6 +1,10 @@
 // $Id$
 
-AliEmcalSetupTask* AddTaskEmcalSetup()
+AliEmcalSetupTask* AddTaskEmcalSetup(
+  const char *geop = 0,
+  const char *oadp = 0,
+  const char *ocdp = 0 
+)
 {  
   // Get the pointer to the existing analysis manager via the static access method.
   //==============================================================================
@@ -23,6 +27,9 @@ AliEmcalSetupTask* AddTaskEmcalSetup()
   // Init the task and do settings
   //-------------------------------------------------------
   AliEmcalSetupTask *eTask = new AliEmcalSetupTask("EmcalSetupTask");
+  if (geop) eTask->SetGeoPath(geop);
+  if (oadp) eTask->SetOadbPath(oadp);
+  if (ocdp) eTask->SetOcdbPath(ocdp);
 
   //-------------------------------------------------------
   // Final settings, pass to manager and set the containers