Print removed
[u/mrichter/AliRoot.git] / ITS / AliITStestV2.C
1 /****************************************************************************
2  *           Origin: I.Belikov, CERN, Jouri.Belikov@cern.ch                 *
3  ****************************************************************************/
4
5 Int_t AliITStestV2(Int_t nev=5, Char_t SlowOrFast='s') {
6    Int_t rc=0;
7
8    if (gAlice) {
9       delete gAlice->GetRunLoader();
10       delete gAlice; 
11       gAlice=0;
12    }
13
14    rl = AliRunLoader::Open("galice.root");
15    if (rl == 0x0) {
16       cerr<<"Can not open session"<<endl;
17       return 1;
18    }
19
20    if (rl->LoadgAlice()) {
21       cerr<<"Error occured while loading AliRun"<<endl;
22       return 1;
23    }
24    AliKalmanTrack::
25    SetConvConst(1000/0.299792458/rl->GetAliRun()->Field()->SolenoidField());
26
27    delete rl;
28   
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    }
38    gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSFindClustersV2.C");
39    if (rc=AliITSFindClustersV2(nev,SlowOrFast)) return rc;
40
41    gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSFindTracksV2.C");
42    if (rc=AliITSFindTracksV2()) return rc;
43
44    gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSComparisonV2.C");
45    if (rc=AliITSComparisonV2()) return rc;
46 /*
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
56    gSystem->SetIncludePath("-I$ROOTSYS/include -I$ALICE_ROOT/include -I$ALICE_ROOT/ITS -I$ALICE_ROOT/TPC -I$ALICE_ROOT/CONTAINERS");
57    gROOT->ProcessLine(".L $(ALICE_ROOT)/ITS/AliCascadeComparison.C+");
58    if (rc=AliCascadeComparison()) return rc;
59 */
60    return rc;
61 }