-- modified cut analysis for Pb-Pb
[u/mrichter/AliRoot.git] / PWG2 / runAODAnalysisExample.C
index 1af7df3..e6172b4 100644 (file)
@@ -69,12 +69,10 @@ void produceAOD()
 
     // Create containers for input/output
     // Top ESD container
-    AliAnalysisDataContainer *cin_esd = mgr->CreateContainer("cchain",TChain::Class(), 
-                                                            AliAnalysisManager::kInputContainer);
+    AliAnalysisDataContainer *cin_esd = mgr->GetCommonInputContainer();
 
     // Output AOD container
-    AliAnalysisDataContainer *cout_aod = mgr->CreateContainer("tree", TTree::Class(),
-                                                             AliAnalysisManager::kOutputContainer, "default");
+    AliAnalysisDataContainer *cout_aod = mgr->GetCommonOutputContainer();
 
     mgr->ConnectInput  (esdfilter,  0, cin_esd  );
     mgr->ConnectOutput (esdfilter,  0, cout_aod );
@@ -155,8 +153,7 @@ void runPWG2()
   mgr->AddTask(taskproton);
     // Create containers for input/output
     // Top AOD container
-    AliAnalysisDataContainer *cin_aod = mgr->CreateContainer("cchain",TChain::Class(), 
-                                                            AliAnalysisManager::kInputContainer);
+    AliAnalysisDataContainer *cin_aod = mgr->GetCommonInputContainer();
 
     // Output histogram container
     AliAnalysisDataContainer *cout_hist = mgr->CreateContainer("protonhistos", TList::Class(),AliAnalysisManager::kOutputContainer,"protonhistos.root");