]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG2/AnalysisMacros/Proof/runAnalysis.C
New analysis frameowrk using PROOF - Adding the needed macros.
[u/mrichter/AliRoot.git] / PWG2 / AnalysisMacros / Proof / runAnalysis.C
CommitLineData
9e7f8c13 1void runAnalysis() {
2 TStopwatch timer;
3 timer.Start();
4
5 runProofESD("AliAnalysisTaskPt.cxx+");
6
7 timer.Stop();
8 timer.Print();
9}
10
11//==========================================//
12void runProofESD(const char *selectorfile) {
13 //the next line should point to the local $ALICE_ROOT
14 //that contains the latest ANALYSIS developments
15 gSystem->AddIncludePath("-I\"$ALICE_ROOT/include\"");
16 printf("****** Connect to PROOF *******\n");
17 TProof::Open("proof://<username>@lxb6046.cern.ch");
18
19 // Enable the Analysis Package
20 gProof->UploadPackage("ESD.par");
21 gProof->EnablePackage("ESD");
22 gProof->UploadPackage("ANALYSIS.par");
23 gProof->EnablePackage("ANALYSIS");
24
25 // You should get this macro and the txt file from:
26 // http://aliceinfo.cern.ch/Offline/Analysis/CAF/
27 gROOT->LoadMacro("CreateESDChain.C");
28 TChain* chain = 0x0;
29 chain = CreateESDChain("ESD100_110_v2.txt",10);
30
31 gROOT->LoadMacro(selectorfile);
32 gROOT->LoadMacro("demoCAF.C");
33 demoCAF(chain,"proof");
34
35 gSystem->Exec("rm -rf ESD ANALYSIS");
36}
37
38
39