New AliITSclustererV2 class: update of V2 test macros
[u/mrichter/AliRoot.git] / ITS / AliITStestV2.C
CommitLineData
aeb48c23 1Int_t AliITStestV2(Char_t SlowOrFast='s') {
c524c8fc 2 Int_t rc=0;
3
4 if (gAlice) {delete gAlice; gAlice=0;}
5 TFile *in=TFile::Open("galice.root");
6 if (!in->IsOpen()) {
7 cerr<<"Can't open galice.root !\n";
8 return 1;
9 }
10 if (!(gAlice=(AliRun*)in->Get("gAlice"))) {
11 cerr<<"Can't find gAlice !\n";
12 return 2;
13 }
14 AliKalmanTrack::SetConvConst(1000/0.299792458/gAlice->Field()->SolenoidField());
15 delete gAlice; gAlice=0;
16 in->Close();
17
18 if (SlowOrFast=='f') {
f2718ade 19 //cerr<<"Fast AliITSRecPoint(s) !\n";
20 //gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSHits2FastRecPoints.C");
21 //AliITSHits2FastRecPoints();
c524c8fc 22 } else {
23 cerr<<"Slow AliITSRecPoint(s) !\n";
24 gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSHits2SDigits.C");
25 AliITSHits2SDigits();
26 gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSSDigits2Digits.C");
27 AliITSSDigits2Digits();
f2718ade 28 //gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSDigits2RecPoints.C");
29 //AliITSDigits2RecPoints();
c524c8fc 30 }
c524c8fc 31 gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSFindClustersV2.C");
4465d468 32 if (rc=AliITSFindClustersV2(SlowOrFast)) return rc;
c524c8fc 33
34 gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSFindTracksV2.C");
35 if (rc=AliITSFindTracksV2()) return rc;
36
37 gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSComparisonV2.C");
38 if (rc=AliITSComparisonV2()) return rc;
f2718ade 39/*
04b2a5f1 40 gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliV0FindVertices.C");
41 if (rc=AliV0FindVertices()) return rc;
42
43 gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliV0Comparison.C");
44 if (rc=AliV0Comparison()) return rc;
45
46 gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliCascadeFindVertices.C");
47 if (rc=AliCascadeFindVertices()) return rc;
48
88b62d65 49 gSystem->SetIncludePath("-I$ROOTSYS/include -I$ALICE_ROOT/include -I$ALICE_ROOT/ITS -I$ALICE_ROOT/TPC -I$ALICE_ROOT/CONTAINERS");
04b2a5f1 50 gROOT->ProcessLine(".L $(ALICE_ROOT)/ITS/AliCascadeComparison.C+");
51 if (rc=AliCascadeComparison()) return rc;
f2718ade 52*/
c524c8fc 53 return rc;
54}