Corrected to work with the pi0 calibration library in the trunk
authorpolicheh <policheh@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 9 Jul 2009 17:03:25 +0000 (17:03 +0000)
committerpolicheh <policheh@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 9 Jul 2009 17:03:25 +0000 (17:03 +0000)
PHOS/macros/pi0Calib/anaTask.C

index 60efb0d..798066b 100644 (file)
@@ -1,12 +1,13 @@
 void anaTask()
 {
 
-  AliCDBManager::Instance()->SetDefaultStorage("local://$ALICE_ROOT");
+  AliCDBManager::Instance()->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
   AliCDBManager::Instance()->SetSpecificStorage("PHOS/*","local://./");
 
   // load analysis framework
   gSystem->Load("libANALYSIS");
   gSystem->Load("libANALYSISalice"); //AliAnalysisTaskSE
+  gSystem->Load("libPHOSpi0Calib");
 
   gROOT->LoadMacro("$ALICE_ROOT/PWG0/CreateESDChain.C");
   TChain* chain = CreateESDChain("list.txt", 300);
@@ -26,7 +27,6 @@ void anaTask()
 
   // Create task
 
-  gROOT->LoadMacro("AliAnalysisTaskPi0CalibSelection.cxx+g");
   AliAnalysisTaskPi0CalibSelection *task = new AliAnalysisTaskPi0CalibSelection("Pi0CalibSelection");
   //task->SetClusterMinEnergy(0.4); 
 
@@ -34,7 +34,7 @@ void anaTask()
   mgr->AddTask(task);
 
   // Create containers for input/output
-  AliAnalysisDataContainer *cinput = mgr->CreateContainer("cchain", TChain::Class(), AliAnalysisManager::kInputContainer);
+  AliAnalysisDataContainer *cinput  = mgr->GetCommonInputContainer();
   AliAnalysisDataContainer *coutput = mgr->CreateContainer("histos", TList::Class(),  AliAnalysisManager::kOutputContainer, "histos.root");
 
   // Connect input/output