Some corrections in the constructors. Init() moved to AliFluka.
[u/mrichter/AliRoot.git] / ITS / AliITStestV2.C
CommitLineData
c524c8fc 1Int_t AliITStestV2(Char_t SlowOrFast='s') {
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') {
19 cerr<<"Fast AliITSRecPoint(s) !\n";
20 gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSHits2FastRecPoints.C");
21 AliITSHits2FastRecPoints();
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();
28 gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSDigits2Recpoints.C");
29 AliITSdigits2RecPoints();
30 }
31
32 gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSFindClustersV2.C");
33 if (rc=AliITSFindClustersV2()) return rc;
34
35 gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSFindTracksV2.C");
36 if (rc=AliITSFindTracksV2()) return rc;
37
38 gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSComparisonV2.C");
39 if (rc=AliITSComparisonV2()) return rc;
40
41 return rc;
42}