Split: fix refs to AddTaskPhysicsSelection.C
[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
4070f709 6 gSystem->Load("libCore");
7 gSystem->Load("libTree");
8 gSystem->Load("libGeom");
9 gSystem->Load("libVMC");
10 gSystem->Load("libPhysics");
11 gSystem->Load("libMinuit");
12 gSystem->Load("libGui");
13 gSystem->Load("libXMLParser");
14 //gSystem->Load("libSTEER");
15 gSystem->Load("libSTEERBase");
16 gSystem->Load("libESD");
17 gSystem->Load("libCDB");
18 gSystem->Load("libAOD");
19 gSystem->Load("libANALYSIS");
20 gSystem->Load("libANALYSISalice");
98727123 21
22 //lib necessary for dielectron
4070f709 23 gSystem->Load("libCORRFW");
98727123 24
af472fff 25 gSystem->Load("libTender");
4070f709 26 gSystem->Load("libProof");
27 gSystem->Load("libRAWDatabase");
28 gSystem->Load("libSTEER");
29 gSystem->Load("libTOFbase");
98727123 30
4070f709 31 gSystem->Load("libTRDbase");
32 gSystem->Load("libVZERObase");
33 gSystem->Load("libPWGHFhfe");
34 //gSystem->Load("libTenderSupplies");
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
63b6cbd0 78 // gROOT->LoadMacro("$ALICE_ROOT/OADB/macros/AddTaskPhysicsSelection.C");
98727123 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};