TENDER becomes Tender
[u/mrichter/AliRoot.git] / PWGHF / hfe / macros / test / runGridPbPb.C
CommitLineData
664d4a93 1//Replace User Task with your Add Task and appropriate parameters
2
3Bool_t SetupPar(const char *parfile);
4
5void runGridPbPb()
6{
7 // Load common libraries
8 gSystem->Load("libCore.so");
9 gSystem->Load("libTree.so");
10 gSystem->Load("libGeom.so");
11 gSystem->Load("libVMC.so");
12 gSystem->Load("libPhysics.so");
13 gSystem->Load("libMinuit.so");
14 gSystem->Load("libGui.so");
15 gSystem->Load("libXMLParser.so");
16 gSystem->Load("libSTEERBase.so");
17 gSystem->Load("libESD.so");
18 gSystem->Load("libCDB.so");
19 gSystem->Load("libAOD.so");
20 gSystem->Load("libANALYSIS.so");
21 gSystem->Load("libANALYSISalice.so");
22
23 //lib necessary for dielectron
24 gSystem->Load("libCORRFW.so");
25 gSystem->Load("libPWGflowBase.so");
26 gSystem->Load("libPWGflowTasks.so");
27
af472fff 28 gSystem->Load("libTender");
29 gSystem->Load("libTenderSupplies");
664d4a93 30 gSystem->Load("libProof.so");
31 gSystem->Load("libRAWDatabase.so");
32 gSystem->Load("libSTEER.so");
33 gSystem->Load("libTOFbase.so");
34
35 gSystem->Load("libTRDbase.so");
36 gSystem->Load("libVZERObase.so");
37 gSystem->Load("libPWGHFbase.so");
38 gSystem->Load("libPWGHFhfe.so");
af472fff 39 gSystem->Load("libTenderSupplies.so");
664d4a93 40
41 // Load common libraries
42
43 // Use AliRoot includes to compile our task
44 gROOT->ProcessLine(".include $ALICE_ROOT/include");
45 gROOT->ProcessLine(".include $ALICE_ROOT/PWGHF/");
46 gROOT->ProcessLine(".include $ALICE_ROOT/PWGHF/hfe");
47 gROOT->ProcessLine(".include $ALICE_ROOT/PWG/FLOW");
48 gROOT->ProcessLine(".include $ALICE_ROOT/PWG/FLOW/Base");
49 gROOT->ProcessLine(".include $ALICE_ROOT/PWG/FLOW/Tasks");
50
51 // Create and configure the alien handler plugin
52 gROOT->LoadMacro("CreateAlienHandlerPbPb.C");
53 AliAnalysisGrid *alienHandler = CreateAlienHandlerPbPb();
54 if (!alienHandler) return;
55
56 // Create the analysis manager
57 AliAnalysisManager *mgr = new AliAnalysisManager("tpctofv2Analysis");
58
59 // Connect plug-in to the analysis manager
60 mgr->SetGridHandler(alienHandler);
61
62 AliESDInputHandler* esdH = new AliESDInputHandler();
63 esdH->SetReadFriends(kFALSE);
64 mgr->SetInputEventHandler(esdH);
65
66
67
68 //==== Physics Selection ====
69 gROOT->LoadMacro("$ALICE_ROOT/ANALYSIS/macros/AddTaskPhysicsSelection.C");
70 AliPhysicsSelectionTask* physSelTask = AddTaskPhysicsSelection();
71
72 //==== Add tender ====
73
74// gROOT->LoadMacro("AddTaskTender.C");
75// AddTaskTender();
76
77 //===== ADD PID RESPONSE: ===
78
79 gROOT->LoadMacro("$ALICE_ROOT/ANALYSIS/macros/AddTaskPIDResponse.C");
80 AddTaskPIDResponse();
81
82 //===== ADD CENTRALITY: ===
83 gROOT->LoadMacro("$ALICE_ROOT/ANALYSIS/macros/AddTaskCentrality.C");
84 AddTaskCentrality();
6733d981 85
86 //===== ADD VZERO event plane: ===
87 gROOT->LoadMacro("$ALICE_ROOT/ANALYSIS/macros/AddTaskVZEROEPSelection.C");
88 AddTaskVZEROEPSelection();
89
90 //===== ADD TPC event plane: ===
91 gROOT->LoadMacro("$ALICE_ROOT/PWGHF/hfe/macros/AddTaskEventPlaneTPC.C");
92 AddTaskEventPlaneTPC();
664d4a93 93
94
95 //===== ADD TASK::
96
3203bacc 97 gROOT->LoadMacro("$ALICE_ROOT/PWGHF/hfe/macros/AddTaskHFEFlowTPCTOFEPSP.C");
98 AddTaskHFEFlowTPCTOFEPSP();
664d4a93 99
100
101
102 // Enable debug printouts
103 mgr->SetDebugLevel(10);
104
105 if (!mgr->InitAnalysis())
106 return;
107
108 mgr->PrintStatus();
109 // Start analysis in grid.
110 mgr->StartAnalysis("grid");
111};