end-of-line normalization
[u/mrichter/AliRoot.git] / PWGLF / STRANGENESS / Correlations / macros / runProofLambdaOverK0sJets.C
CommitLineData
a65a7e70 1//Based on the file $ALICE_ROOT/PWGLF/STRANGENESS/Cascades/macros/runProofCascadePbPb()
2void runProofLambdaOverK0sJets(TString proofCluster = "xsanchez@skaf.saske.sk",
3 TString alirootVer = "VO_ALICE@AliRoot::v5-03-70-AN",
4 TString rootVer = "VO_ALICE@ROOT::v5-34-02",
5 TString path = "/alice/data/LHC10h_000138624_p2_AOD049",
6 TString name = "LambdaOverK0sRatio",
7 Int_t data = 2010,
8 Float_t minCen = 0.,
9 Float_t maxCen = 90.,
10 Float_t ptMinTrig = 5.,
11 Float_t ptMaxTrig = 10.,
12 Float_t etaMaxTrig = 0.75,
13 Float_t rapMaxV0 = 0.75,
14 Bool_t sepInjec = kTRUE,
15 Bool_t isMC = kFALSE,
16 Bool_t usePID = kTRUE,
17 Bool_t doQA = kFALSE){
18
19 Printf(" \nThe parameters of the programm are : \n ");
20 Printf(" \t Analysis mode:\t %s\n \t Centrality:\t %.1lf - %.1lf\n \t Use MC Data?:\t %s\n \t Use PID?:\t %s\n",
21 "Proof", minCen,maxCen,
22 (isMC) ? "Yes" : "No",
23 (usePID) ? "Yes" : "No");
24
25 // _____________________________________________________ //
26
27 gEnv->SetValue("XSec.GSI.DelegProxy", "2");
28
29 TProof::Mgr(proofCluster.Data())->SetROOTVersion(rootVer.Data());
30
31 TString alirootMode = "";
32 TString extraLibs;
33 TList *list = new TList();
34 alirootMode="ALIROOT";
35 extraLibs+= "ANALYSIS:OADB:ANALYSISalice:CORRFW";
36 list->Add(new TNamed("ALIROOT_MODE", alirootMode.Data()));
37 list->Add(new TNamed("ALIROOT_EXTRA_LIBS", extraLibs.Data()));
38
39 TProof::Reset(proofCluster.Data());
40 TProof::Open(proofCluster.Data());
41 //TProof::Open(proofCluster.Data(),"workers=1");
42 gProof->ClearPackages();
43 gProof->EnablePackage(alirootVer.Data(),list);
44
45 // _____________________________________________________ //
46
47 gSystem->AddIncludePath("-I$ALICE_ROOT/include");
48
49 AliAnalysisManager *mgr = new AliAnalysisManager("Manager");
50
51 AliAODInputHandler* aodH = new AliAODInputHandler;
52 mgr->SetInputEventHandler(aodH);
53
54 //PID
55 gROOT->LoadMacro("$ALICE_ROOT/ANALYSIS/macros/AddTaskPIDResponse.C");
56 AliAnalysisTask *pidTask = AddTaskPIDResponse(isMC);
57 //AliAnalysisTask *pidTask = AddTaskPIDResponse(isMC,kTRUE);
58 if(!pidTask) { printf("no PIDtask\n"); return; }
59
60 Float_t checkIDTrig= kTRUE;
61
62 // My task
63 gROOT->LoadMacro("AliAnalysisTaskLambdaOverK0sJets.cxx+g");
64 gROOT->LoadMacro("AddTaskLambdaOverK0sJets.C");
65 AliAnalysisTaskLambdaOverK0sJets *task = AddTaskLambdaOverK0sJets(name,data,minCen,maxCen,ptMinTrig,ptMaxTrig,etaMaxTrig,checkIDTrig,rapMaxV0,sepInjec,isMC,usePID,doQA);
66
67 // _____________________________________________________ //
68
69 if (!mgr->InitAnalysis()) return;
70 mgr->PrintStatus();
71 mgr->StartAnalysis("proof",path);
72 //mgr->StartAnalysis("proof",path,1,1);
73
74}
75