Tests and example macros working with ESD (Yu.Belikov)
[u/mrichter/AliRoot.git] / ITS / AliITStestV2.C
CommitLineData
c630aafd 1/****************************************************************************
2 * Origin: I.Belikov, CERN, Jouri.Belikov@cern.ch *
3 ****************************************************************************/
4
5Int_t AliITStestV2(Int_t nev=5, Char_t SlowOrFast='s') {
c524c8fc 6 Int_t rc=0;
c630aafd 7
8 if (gAlice) {
88cb7938 9 delete gAlice->GetRunLoader();
10 delete gAlice;
11 gAlice=0;
c630aafd 12 }
13
88cb7938 14 rl = AliRunLoader::Open("galice.root");
c630aafd 15 if (rl == 0x0) {
88cb7938 16 cerr<<"Can not open session"<<endl;
17 return 1;
c630aafd 18 }
19
20 if (rl->LoadgAlice()) {
88cb7938 21 cerr<<"Error occured while loading AliRun"<<endl;
c524c8fc 22 return 1;
c630aafd 23 }
24 AliKalmanTrack::
25 SetConvConst(1000/0.299792458/rl->GetAliRun()->Field()->SolenoidField());
88cb7938 26
c630aafd 27 delete rl;
88cb7938 28
c630aafd 29 if (SlowOrFast=='f') {
30 cerr<<"Fast AliITSRecPoint(s) !\n";
31 } else {
32 cerr<<"Slow AliITSRecPoint(s) !\n";
33 gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSHits2SDigits.C");
34 AliITSHits2SDigits();
35 gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSSDigits2Digits.C");
36 AliITSSDigits2Digits();
37 }
c524c8fc 38 gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSFindClustersV2.C");
a62f4fcc 39 if (rc=AliITSFindClustersV2(nev,SlowOrFast)) return rc;
c524c8fc 40
41 gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSFindTracksV2.C");
5d12ce38 42 if (rc=AliITSFindTracksV2()) return rc;
c524c8fc 43
44 gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSComparisonV2.C");
45 if (rc=AliITSComparisonV2()) return rc;
f2718ade 46/*
04b2a5f1 47 gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliV0FindVertices.C");
48 if (rc=AliV0FindVertices()) return rc;
49
50 gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliV0Comparison.C");
51 if (rc=AliV0Comparison()) return rc;
52
53 gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliCascadeFindVertices.C");
54 if (rc=AliCascadeFindVertices()) return rc;
55
88b62d65 56 gSystem->SetIncludePath("-I$ROOTSYS/include -I$ALICE_ROOT/include -I$ALICE_ROOT/ITS -I$ALICE_ROOT/TPC -I$ALICE_ROOT/CONTAINERS");
04b2a5f1 57 gROOT->ProcessLine(".L $(ALICE_ROOT)/ITS/AliCascadeComparison.C+");
58 if (rc=AliCascadeComparison()) return rc;
f2718ade 59*/
c524c8fc 60 return rc;
61}