Adding the estimator for the interaction spot size (R. Shahoyan)
[u/mrichter/AliRoot.git] / PWG1 / macros / RunIPTask.C
CommitLineData
5b09c01f 1void RunIPTask(const char* mode)
2{
3 gSystem->SetIncludePath("-I. -I$ROOTSYS/include -I$ALICE_ROOT "
4 "-I$ALICE_ROOT/include -I$ALICE_ROOT/ITS "
5 "-I$ALICE_ROOT/TPC -I$ALICE_ROOT/CONTAINERS "
6 "-I$ALICE_ROOT/STEER -I$ALICE_ROOT/TRD -I$ALICE_ROOT/macros "
7 "-I$ALICE_ROOT/ANALYSIS -g");
8 //
9 // Load analysis libraries
10 gSystem->Load("libANALYSIS.so");
11 gSystem->Load("libANALYSISalice.so");
12 gSystem->Load("libTENDER.so");
13 gSystem->Load("libPWG1.so");
14 //
15 TChain *chainESD = 0;
16 gROOT->LoadMacro("$ALICE_ROOT/PWG0/CreateESDChain.C");
17 TChain* chain = CreateESDChain(mode,-1);
18 //
19 AliAnalysisManager *mgr = new AliAnalysisManager("My Manager","My Manager");
20 AliESDInputHandler *esdH = new AliESDInputHandler();
21 //
22 mgr->SetInputEventHandler(esdH);
23 gROOT->LoadMacro("$ALICE_ROOT/PWG1/macros/AddTaskIntSpotESD.C");
24 AliAnalysisTaskIPInfo* iptask = AddTaskIntSpotESD();
25 if(!mgr->InitAnalysis()) return;
26 //
27 mgr->StartAnalysis("local",chain);
28}