- 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 bf7b7f0d43a82243dd81396d1dfe51faee11a903..997693d513d431c57f52d79692787d90c94c74bf 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 8681b4d41b772e29efd2d82694c4b9a457cc595a..d2603a88ded38620bff8ec3b6394db73d278d37b 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 b7e656d56ee75255b205de63c09cd8a77bd0edd8..a0fc173b33f5f4eceec86fcfd066c64dc73608a8 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 9a9c874bda57708332b88cb147ea64169c43ada2..e78f1c43fa38df5e2543876b1e1dfc8a9bd18064 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");