]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliITStest.C
Improved cluster finder algorithm for SDD
[u/mrichter/AliRoot.git] / ITS / 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    Int_t ver=gAlice->GetDetector("ITS")->IsVersion();
9    delete gAlice; gAlice=0;
10
11    if (ver!=5) {
12       cerr<<"Invalid ITS version: "<<ver<<" ! (must be 5 for the moment)\n";
13       return 12345;
14    }
15
16    if (ver==5) {
17      gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSHits2Digits.C");
18      if (rc=AliITSHits2Digits()) return rc;
19
20    }
21
22    printf("start reconstruction\n");
23
24 //Test ITS reconstruction
25    gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSFindClusters.C");
26    if (rc=AliITSFindClusters()) return rc;
27
28    //gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSgraphycs.C");
29    //if (rc=AliITSgraphycs()) return rc;
30
31    return rc;
32 }