TENDER becomes Tender
[u/mrichter/AliRoot.git] / PWGPP / macros / runGlobalQA.C
CommitLineData
16f48098 1void runLocal() {
2/*
3 gSystem->Load("libTree.so");
4 gSystem->Load("libGeom.so");
5 gSystem->Load("libVMC.so");
6 gSystem->Load("libPhysics.so");
7
8 gSystem->Load("libSTEERBase");
9 gSystem->Load("libESD");
10 gSystem->Load("libAOD");
11*/
12 gSystem->Load("libANALYSIS");
13 gSystem->Load("libANALYSISalice");
af472fff 14 gSystem->Load("libTender");
2bfe5463 15 gSystem->Load("libPWGPP");
16f48098 16
17 AliAnalysisManager *mgr = new AliAnalysisManager("TestManager");
18
19
20 //gROOT->LoadMacro("AliAnalysisTaskGlobalQA.cxx++g");
21 AliAnalysisTask *task = new AliAnalysisTaskGlobalQA();
22 mgr->AddTask(task);
23
24 AliESDInputHandler* esdH = new AliESDInputHandler;
25 mgr->SetInputEventHandler(esdH);
26
27 AliMCEventHandler *mc = new AliMCEventHandler();
28 mgr->SetMCtruthEventHandler(mc);
29
30 gROOT->LoadMacro("$ALICE_ROOT/PWG0/CreateESDChain.C");
31 chain=CreateESDChain("list.txt",1);
32
33 // Create containers for input/output
34 mgr->ConnectInput(task, 0, mgr->GetCommonInputContainer());
35
36 AliAnalysisDataContainer *coutput =
37 mgr->CreateContainer("coutput", TObjArray::Class(),
38 AliAnalysisManager::kOutputContainer, "GlobalQA.root" );
39 mgr->ConnectOutput(task,1,coutput);
40
41 mgr->SetDebugLevel(0);
42
43 if (!mgr->InitAnalysis()) return;
44 //mgr->PrintStatus();
45
46 mgr->StartAnalysis("local",chain);
47}
48
49void runProof() {
50 TProof::Open("belikov@localhost");
51 /*
52 gSystem->Load("libTree.so");
53 gSystem->Load("libGeom.so");
54 gSystem->Load("libVMC.so");
55 gSystem->Load("libPhysics.so");
56 */
57 gProof->UploadPackage("STEERBase");
58 gProof->EnablePackage("STEERBase");
59 gProof->UploadPackage("ESD");
60 gProof->EnablePackage("ESD");
61 gProof->UploadPackage("AOD");
62 gProof->EnablePackage("AOD");
63 gProof->UploadPackage("ANALYSIS");
64 gProof->EnablePackage("ANALYSIS");
65 gProof->UploadPackage("ANALYSISalice");
66 gProof->EnablePackage("ANALYSISalice");
67
68 gROOT->ProcessLine(".include $ALICE_ROOT/include");
69
70 AliAnalysisManager *mgr = new AliAnalysisManager("TestManager");
71
2bfe5463 72 gProof->Load("$ALICE_ROOT/PWGPP/global/AliAnalysisTaskGlobalQA.cxx++g");
16f48098 73 AliAnalysisTask *task = new AliAnalysisTaskGlobalQA();
74 mgr->AddTask(task);
75
76 AliESDInputHandler* esdH = new AliESDInputHandler;
77 mgr->SetInputEventHandler(esdH);
78
79 mgr->ConnectInput(task, 0, mgr->GetCommonInputContainer());
80
81 AliAnalysisDataContainer *coutput =
82 mgr->CreateContainer("coutput", TObjArray::Class(),
83 AliAnalysisManager::kOutputContainer, "GlobalQA.root" );
84 mgr->ConnectOutput(task,1,coutput);
85
86 if (!mgr->InitAnalysis()) return;
87
88 mgr->StartAnalysis("proof","/COMMON/COMMON/LHC09d5_0.9TeV_0T",3000);
89
90}
91