TENDER becomes Tender
[u/mrichter/AliRoot.git] / PWGHF / hfe / macros / test / runGridAODpp.C
CommitLineData
98727123 1Bool_t SetupPar(const char *parfile);
2
3void runGridAODpp()
4{
5 // Load common libraries
785288a1 6 gSystem->Load("libCore.so");
98727123 7 gSystem->Load("libTree.so");
8 gSystem->Load("libGeom.so");
9 gSystem->Load("libVMC.so");
10 gSystem->Load("libPhysics.so");
11 gSystem->Load("libMinuit.so");
12 gSystem->Load("libGui.so");
13 gSystem->Load("libXMLParser.so");
785288a1 14 //gSystem->Load("libSTEER.so");
98727123 15 gSystem->Load("libSTEERBase.so");
785288a1 16 gSystem->Load("libESD.so");
98727123 17 gSystem->Load("libCDB.so");
18 gSystem->Load("libAOD.so");
19 gSystem->Load("libANALYSIS.so");
20 gSystem->Load("libANALYSISalice.so");
21
22 //lib necessary for dielectron
23 gSystem->Load("libCORRFW.so");
24
af472fff 25 gSystem->Load("libTender");
98727123 26 gSystem->Load("libProof.so");
27 gSystem->Load("libRAWDatabase.so");
28 gSystem->Load("libSTEER.so");
29 gSystem->Load("libTOFbase.so");
30
31 gSystem->Load("libTRDbase.so");
32 gSystem->Load("libVZERObase.so");
33 gSystem->Load("libPWGHFhfe.so");
af472fff 34 //gSystem->Load("libTenderSupplies.so");
98727123 35
36 // Load common libraries
37
38
39 // Use AliRoot includes to compile our task
40 gROOT->ProcessLine(".include $ALICE_ROOT/include");
41 gROOT->ProcessLine(".include $ALICE_ROOT/PWGHF/");
42 gROOT->ProcessLine(".include $ALICE_ROOT/PWGHF/hfe");
43 gROOT->ProcessLine(".include $ALICE_ROOT/PWG/FLOW");
44 gROOT->ProcessLine(".include $ALICE_ROOT/PWG/FLOW/Base");
45 gROOT->ProcessLine(".include $ALICE_ROOT/PWG/FLOW/Tasks");
46
47 // Create and configure the alien handler plugin
48 gROOT->LoadMacro("CreateAlienHandlerAODpp.C");
49 AliAnalysisGrid *alienHandler = CreateAlienHandlerAODpp();
50 if (!alienHandler) return;
51
52 // Create the analysis manager
53 AliAnalysisManager *mgr = new AliAnalysisManager("tpctofpp");
54
55 // Connect plug-in to the analysis manager
56 mgr->SetGridHandler(alienHandler);
57/*
58 AliESDInputHandler* esdH = new AliESDInputHandler();
59 esdH->SetReadFriends(kFALSE);
60 mgr->SetInputEventHandler(esdH);
61*/
62 // Read AODs
63 aodH = new AliAODInputHandler();
64 mgr->SetInputEventHandler(aodH);
65
66 // // Read MC info // not for real data
67 // mcHandler = new AliMCEventHandler();
68 // mcHandler->SetReadTR(kFALSE);
69 // mgr->SetMCtruthEventHandler(mcHandler);
70
71 //AOD Output Hanlder for Filter:
72 /*
73 AliAODHandler* aodHandler = new AliAODHandler();
74 mgr->SetOutputEventHandler(aodHandler);
75 aodHandler->SetOutputFileName("AliAODs.root");
76 */
77
78 // gROOT->LoadMacro("$ALICE_ROOT/ANALYSIS/macros/AddTaskPhysicsSelection.C");
79 // AliPhysicsSelectionTask* physSelTask = AddTaskPhysicsSelection();
80
81
82
83 //==== Physics Selection ====
84 /* gROOT->LoadMacro("AddTask_tender_PhysicsSelection.C");
85 AddTask_tender_PhysicsSelection();
86
87 //==== Add tender ====
88 gROOT->LoadMacro("AddTaskTender.C");
89 AddTaskTender();
90 */
91
92 gROOT->LoadMacro("$ALICE_ROOT/ANALYSIS/macros/AddTaskPIDResponse.C");
93 //AliAnalysisTaskPIDResponse* aodPIDresponse = AddTaskPIDResponse();
94 AddTaskPIDResponse();
95
96 gROOT->LoadMacro("$ALICE_ROOT/PWGHF/hfe/macros/AddTaskHFEtpctof.C");
97 AliAnalysisTask* anaTask = AddTaskHFEtpctof();
98
99
100
101 // Enable debug printouts
102 mgr->SetDebugLevel(10);
103
104 if (!mgr->InitAnalysis())
105 return;
106
107 mgr->PrintStatus();
108 // Start analysis in grid.
109 mgr->StartAnalysis("grid");
110};