New interface to the mag. field
[u/mrichter/AliRoot.git] / ITS / AliITStestV2.C
CommitLineData
a9a2d814 1Int_t AliITStestV2(Char_t SlowOrFast='s') {
006b5f7f 2 Int_t rc=0;
3
9b280d80 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 }
6094660c 14 AliKalmanTrack::SetConvConst(1000/0.299792458/gAlice->Field()->SolenoidField());
9b280d80 15 delete gAlice; gAlice=0;
16 in->Close();
17
a9a2d814 18 if (SlowOrFast=='f') {
19 cerr<<"Fast AliITSRecPoint(s) !\n";
20 gROOT->LoadMacro("$(ALICE_ROOT)/ITS/ITSHitsToFastPoints.C");
21 ITSHitsToFastPoints();
22 } else {
23 cerr<<"Slow AliITSRecPoint(s) !\n";
24 gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSHits2Digits.C");
25 AliITSHits2Digits();
26 gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSFindClusters.C");
27 AliITSFindClusters();
28 }
29
006b5f7f 30 gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSFindClustersV2.C");
31 if (rc=AliITSFindClustersV2()) return rc;
32
33 gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSFindTracksV2.C");
34 if (rc=AliITSFindTracksV2()) return rc;
35
36 gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSComparisonV2.C");
37 if (rc=AliITSComparisonV2()) return rc;
38
39 return rc;
40}