]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliITStestBari.C
Add ResetDecayTable() and SsetDecayTable() methods.
[u/mrichter/AliRoot.git] / ITS / AliITStestBari.C
1 Int_t AliITStestBari() {
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/AliITSHits2DigitsBari.C");
18      if (rc=AliITSHits2DigitsBari()) return rc;
19
20    }
21
22    printf("start reconstruction\n");
23
24 //Test ITS reconstruction
25    gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSFindClustersBari.C");
26
27    delete gAlice; gAlice=0;
28    
29    if (rc=AliITSFindClustersBari()) return rc;
30
31    //gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSgraphycs.C");
32    //if (rc=AliITSgraphycs()) return rc;
33
34    return rc;
35 }