- Common input/output containers are retrieved from the manager
authoragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 18 Feb 2009 10:06:01 +0000 (10:06 +0000)
committeragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 18 Feb 2009 10:06:01 +0000 (10:06 +0000)
ANALYSIS/AliPriorsTask.C
ANALYSIS/DphiAnalysis.C
ANALYSIS/runAODFilterMC.C
ANALYSIS/runKineProof.C

index bf7b7f0..997693d 100644 (file)
@@ -32,7 +32,7 @@ Bool_t AliPriorsTask()
 
 
   // Create and connect containers for input/output
-  AliAnalysisDataContainer *cinput0  = mgr->CreateContainer("cchain0",TChain::Class(),AliAnalysisManager::kInputContainer);
+  AliAnalysisDataContainer *cinput0  = mgr->GetCommonInputContainer();
   //slot 0 : default output tree (by default handled by AliAnalysisTaskSE)
   AliAnalysisDataContainer *coutput0 = mgr->CreateContainer("ctree0", TTree::Class(),AliAnalysisManager::kOutputContainer,"output.root");
   // output TH1I for event counting
index 8681b4d..d2603a8 100644 (file)
@@ -43,11 +43,10 @@ void DphiAnalysis()
     
     //
     // Create containers for input/output
-    AliAnalysisDataContainer *cinput1 = mgr->CreateContainer("cchain",TChain::Class(), 
-                                                            AliAnalysisManager::kInputContainer);
+    AliAnalysisDataContainer *cinput1 = mgr->GetCommonInputContainer();
 
-    AliAnalysisDataContainer *coutput1 = mgr->CreateContainer("tree", TTree::Class(),
-                                                             AliAnalysisManager::kOutputContainer, "default");
+//    AliAnalysisDataContainer *coutput1 = mgr->CreateContainer("tree", TTree::Class(),
+//                                                           AliAnalysisManager::kOutputContainer, "default");
     AliAnalysisDataContainer *coutput2 = mgr->CreateContainer("histos", TList::Class(),
                                                              AliAnalysisManager::kOutputContainer, "histos.root");
 
index b7e656d..a0fc173 100644 (file)
@@ -83,11 +83,8 @@ void runAODFilterMC()
     
       //
       // Create containers for input/output
-      AliAnalysisDataContainer *cinput1 = mgr->CreateContainer("cchain",TChain::Class(), 
-                                                              AliAnalysisManager::kInputContainer);
-      
-      AliAnalysisDataContainer *coutput1 = mgr->CreateContainer("tree", TTree::Class(),
-                                                             AliAnalysisManager::kOutputContainer, "default");
+      AliAnalysisDataContainer *cinput1 = mgr->GetCommonInputContainer();
+      AliAnalysisDataContainer *coutput1 = mgr->GetCommonOutputContainer();
       
       coutput1->SetSpecialOutput();
 
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");