]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/AliITStest.C
AliGenSTRANGElib.cxx first commit.
[u/mrichter/AliRoot.git] / ITS / AliITStest.C
CommitLineData
758d24ce 1Int_t AliITStest() {
2 Int_t rc=0;
3
4//Test ITS simulation
5 gROOT->LoadMacro("$(ALICE_ROOT)/macros/grun.C");
6 grun();
7
e00eac39 8 AliITSgeom *gm = ((AliITS*)(gAlice->GetDetector("ITS")))->GetITSgeom();
758d24ce 9 delete gAlice; gAlice=0;
10
e00eac39 11 if (!gm) {
12 cerr << "This version of the ITS geometry does not have a"
13 << " AliITSgeom defined" << endl;
758d24ce 14 return 12345;
15 }
16
e00eac39 17 if (gm) {
18 gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSHits2DigitsDefault.C");
19 if (rc=AliITSHits2DigitsDefault()) return rc;
758d24ce 20 }
21
e00eac39 22 cout << "start reconstruction" << endl;
758d24ce 23
e00eac39 24 //Test ITS reconstruction
758d24ce 25 gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSFindClusters.C");
21b825a4 26
27 delete gAlice; gAlice=0;
28
758d24ce 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}