]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliITStestDubna.C
New TTask based method to do Digits To clusters. Works with files of multiple
[u/mrichter/AliRoot.git] / ITS / AliITStestDubna.C
1 Int_t AliITStestDubna() {
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/AliITSHits2DigitsDubna.C");
18      if (rc=AliITSHits2DigitsDubna()) return rc;
19
20    }
21
22    printf("start reconstruction\n");
23
24 //Test ITS reconstruction
25    gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSFindClustersDubna.C");
26    if (rc=AliITSFindClustersDubna()) return rc;
27
28    //gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSgraphycs.C");
29    //if (rc=AliITSgraphycs()) return rc;
30
31    return rc;
32 }