Using the AliOADHandler now.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 4 Jun 2007 17:01:00 +0000 (17:01 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 4 Jun 2007 17:01:00 +0000 (17:01 +0000)
JETAN/JetAnalysisManagerCAF.C
JETAN/JetAnalysisManagerLoc.C

index 472d79ab4acc77f3d835eb788be41b7440e176b5..3916ea09f0be119d495164b08b5a07f5439fab57 100644 (file)
@@ -5,13 +5,14 @@ void JetAnalysisManagerCAF()
     gROOT->LoadMacro("CreateESDChain.C");
     //
     // Connect to proof
-    //
+
+    TProof::Reset("proof://morsch@lxb6046.cern.ch"); 
     TProof::Open("proof://morsch@lxb6046.cern.ch"); 
 
-//    gProof->SetParallel(1);
-//    gProof->ClearPackage("ESD");
-//    gProof->ClearPackage("JETAN");
-//    gProof->ClearPackage("ANALYSIS");
+    //gProof->SetParallel(3);
+    gProof->ClearPackage("ESD");
+    gProof->ClearPackage("JETAN");
+    gProof->ClearPackage("ANALYSIS");
     
     gProof->ShowEnabledPackages();
     // Enable the ESD Package
@@ -32,15 +33,16 @@ void JetAnalysisManagerCAF()
     //
     // Create the chain
     //
-    TChain* chain = CreateESDChain("ESD100_110_v3.txt");
-    // TChain* chain = CreateESDChain("test.txt", 100);  
+    TChain* chain = CreateESDChain("test.txt", 200);
     //
     // Make the analysis manager
     //
     AliAnalysisManager *mgr     = new AliAnalysisManager("Jet Manager", "Jet Manager");
+    AliAODHandler* aodHandler   = new AliAODHandler();
+    mgr->SetEventHandler(aodHandler);
     mgr-> SetDebugLevel(10);
+    
     AliAnalysisTaskJets *jetana = new AliAnalysisTaskJets("JetAnalysis");
-    jetana->Init();
     jetana->SetDebugLevel(10);
     mgr->AddTask(jetana);
     //
@@ -49,7 +51,7 @@ void JetAnalysisManagerCAF()
                                                             AliAnalysisManager::kInputContainer);
 
     AliAnalysisDataContainer *coutput1 = mgr->CreateContainer("tree", TTree::Class(),
-                                                             AliAnalysisManager::kOutputContainer, "jets.root");
+                                                             AliAnalysisManager::kOutputContainer, "aod.root");
 
     mgr->ConnectInput (jetana, 0, cinput1);
     mgr->ConnectOutput(jetana, 0, coutput1);
@@ -58,6 +60,5 @@ void JetAnalysisManagerCAF()
     //    
     mgr->InitAnalysis();
     mgr->PrintStatus();
-    mgr->StartAnalysis("proof", chain);
-    
+    mgr->StartAnalysis("proof",chain);
 }
index 5f1099074d5d8ddcb2a2379e57ed4f48031119d7..e9598015d66ad2adf7bbe0a952980a4dcc97d14b 100644 (file)
@@ -16,21 +16,25 @@ void JetAnalysisManagerLoc()
     //
     // Make the analysis manager
     //
-    AliAnalysisManager *mgr     = new AliAnalysisManager("Jet Manager", "Jet Manager");
+    AliAnalysisManager *mgr  = new AliAnalysisManager("Jet Manager", "Jet Manager");
+    AliAODHandler* aodHandler   = new AliAODHandler();
+    mgr->SetEventHandler(aodHandler);
     mgr-> SetDebugLevel(10);
+
     AliAnalysisTaskJets *jetana = new AliAnalysisTaskJets("JetAnalysis");
     jetana->SetDebugLevel(10);
     mgr->AddTask(jetana);
+
     //
     // Create containers for input/output
     AliAnalysisDataContainer *cinput1 = mgr->CreateContainer("cchain",TChain::Class(), 
                                                             AliAnalysisManager::kInputContainer);
 
     AliAnalysisDataContainer *coutput1 = mgr->CreateContainer("tree", TTree::Class(),
-                                                             AliAnalysisManager::kOutputContainer, "jets.root");
+                                                             AliAnalysisManager::kOutputContainer, "aod.root");
 
-    mgr->ConnectInput (jetana, 0, cinput1);
-    mgr->ConnectOutput(jetana, 0, coutput1);
+    mgr->ConnectInput  (jetana,  0, cinput1 );
+    mgr->ConnectOutput (jetana,  0, coutput1 );
     //
     // Run the analysis
     //