]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGDQ/dielectron/macrosLMEE/testing/runGridPbPb.C
63f68927cf8698f2a77f09e55681c77073a73d17
[u/mrichter/AliRoot.git] / PWGDQ / dielectron / macrosLMEE / testing / runGridPbPb.C
1 //Replace User Task with your Add Task and appropriate parameters
2
3 Bool_t SetupPar(const char *parfile);
4
5 void 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
26    gSystem->Load("libTENDER"); 
27    gSystem->Load("libTENDERSupplies"); 
28    gSystem->Load("libProof.so");
29    gSystem->Load("libRAWDatabase.so");
30    gSystem->Load("libSTEER.so");
31    gSystem->Load("libTOFbase.so");
32
33    gSystem->Load("libTRDbase.so");
34    gSystem->Load("libVZERObase.so");
35    gSystem->Load("libPWGDQdielectron.so"); 
36    gSystem->Load("libTENDERSupplies.so"); 
37
38    // Load common libraries
39
40    // Use AliRoot includes to compile our task
41    gROOT->ProcessLine(".include $ALICE_ROOT/include");
42    gROOT->ProcessLine(".include $ALICE_ROOT/PWGDQ/");
43    gROOT->ProcessLine(".include $ALICE_ROOT/PWGDQ/dielectron");
44
45    // Create and configure the alien handler plugin
46    gROOT->LoadMacro("CreateAlienHandlerPbPb.C");
47    AliAnalysisGrid *alienHandler = CreateAlienHandlerPbPb();  
48    if (!alienHandler) return;
49
50    // Create the analysis manager
51    AliAnalysisManager *mgr = new AliAnalysisManager("lowmassAnalysis");
52
53    // Connect plug-in to the analysis manager
54    mgr->SetGridHandler(alienHandler);
55
56    AliESDInputHandler* esdH = new AliESDInputHandler();
57    esdH->SetReadFriends(kFALSE);
58    mgr->SetInputEventHandler(esdH);
59
60
61
62    //==== Physics Selection ====
63     gROOT->LoadMacro("$ALICE_ROOT/ANALYSIS/macros/AddTaskPhysicsSelection.C");
64     AliPhysicsSelectionTask* physSelTask = AddTaskPhysicsSelection();
65
66    //==== Add tender ====
67
68 //   gROOT->LoadMacro("AddTaskTender.C");
69 //   AddTaskTender();
70
71    //===== ADD PID RESPONSE: ===
72
73    gROOT->LoadMacro("$ALICE_ROOT/ANALYSIS/macros/AddTaskPIDResponse.C");
74    AddTaskPIDResponse();
75
76    //===== ADD CENTRALITY: ===
77    gROOT->LoadMacro("$ALICE_ROOT/ANALYSIS/macros/AddTaskCentrality.C");
78    AddTaskCentrality();
79    
80
81    //===== ADD TASK::
82
83    gROOT->LoadMacro("$ALICE_ROOT/PWGDQ/dielectron/macrosLMEE/AddTask_cbaumann_LMEEPbPb2011.C");
84    AddTask_cbaumann_LMEEPbPb2011(kFALSE,kFALSE,kTRUE);
85
86
87
88    // Enable debug printouts
89    mgr->SetDebugLevel(10);
90
91    if (!mgr->InitAnalysis())
92           return;
93
94    mgr->PrintStatus();
95    // Start analysis in grid.
96    mgr->StartAnalysis("grid");
97 };