]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/oldmacros/AliITStest.C
Updated selection in ReadFromTracks()
[u/mrichter/AliRoot.git] / ITS / oldmacros / AliITStest.C
1 Int_t AliITStest() {
2    Int_t rc=0;
3
4 //Test ITS simulation
5    gROOT->LoadMacro("$(ALICE_ROOT)/macros/grun.C");
6    grun();
7
8    AliITSgeom *gm = ((AliITS*)(gAlice->GetDetector("ITS")))->GetITSgeom();
9    delete gAlice; gAlice=0;
10
11    if (!gm) {
12        cerr << "This version of the ITS geometry does not have a"
13             << " AliITSgeom defined" << endl;
14       return 12345;
15    }
16
17    if (gm) {
18      gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSHits2DigitsDefault.C");
19      if (rc=AliITSHits2DigitsDefault()) return rc;
20    }
21
22    cout << "start reconstruction" << endl;
23
24    //Test ITS reconstruction
25    gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSFindClusters.C");
26
27    delete gAlice; gAlice=0;
28    
29    if (rc=AliITSFindClusters()) return rc;
30
31    //gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSgraphycs.C");
32    //if (rc=AliITSgraphycs()) return rc;
33
34    return rc;
35 }