Fixes for cmake
[u/mrichter/AliRoot.git] / ANALYSIS / runKineProof.C
index 9a9c874..e78f1c4 100644 (file)
@@ -1,7 +1,7 @@
 {
     gSystem->Load("libPhysics.so");
     // Connecting to the PROOF cluster
-    TProof::Open("elopez@lxb6046");
+    TProof::Open("alicecaf");
 
     // Clear packages if changing ROOT version on CAF or local
     //gProof->ClearPackages();
 
     //
     // Create containers for input/output                  
-    AliAnalysisDataContainer *cinput1 = mgr->CreateContainer("cchain",TChain::Class(), 
-                                                             AliAnalysisManager::kInputContainer);
+    AliAnalysisDataContainer *cinput1 = mgr->GetCommonInputContainer();
+    if (!cinput1) cinput1 = mgr->CreateContainer("cchain",TChain::Class(), 
+                                      AliAnalysisManager::kInputContainer);
 
-    AliAnalysisDataContainer *coutput1 = mgr->CreateContainer("tree", TTree::Class(),
-                                                              AliAnalysisManager::kOutputContainer, "default");
+    AliAnalysisDataContainer *coutput1 = mgr->GetCommonOutputContainer();
     AliAnalysisDataContainer *coutput2 = mgr->CreateContainer("histos", TList::Class(),
                                                               AliAnalysisManager::kOutputContainer, "histos.root");