]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliITStestV2.C
New version for non absorber side from Yogendra.
[u/mrichter/AliRoot.git] / ITS / AliITStestV2.C
1 Int_t AliITStestV2() {
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(100/0.299792458/0.2/gAlice->Field()->Factor());
15    delete gAlice; gAlice=0;
16    in->Close();
17
18    gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSFindClustersV2.C");
19    if (rc=AliITSFindClustersV2()) return rc;
20
21    gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSFindTracksV2.C");
22    if (rc=AliITSFindTracksV2()) return rc;
23
24    gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSComparisonV2.C");
25    if (rc=AliITSComparisonV2()) return rc;
26
27    return rc;
28 }