Updated from the TPC-PreRelease branch
[u/mrichter/AliRoot.git] / TPC / AliTPCtest.C
CommitLineData
73042f01 1Int_t AliTPCtest() {
2 Int_t rc=0;
3
4//Test TPC simulation
5 gROOT->LoadMacro("$(ALICE_ROOT)/macros/grun.C");
6 grun();
7
8 Int_t ver=gAlice->GetDetector("TPC")->IsVersion();
9 delete gAlice; gAlice=0;
10 if (ver==2) {
11 gROOT->LoadMacro("$(ALICE_ROOT)/TPC/AliTPCHits2Digits.C");
12 if (rc=AliTPCHits2Digits()) return rc;
13
14 gROOT->LoadMacro("$(ALICE_ROOT)/TPC/AliTPCDisplayDigits.C");
15 if (rc=AliTPCDisplayDigits(1,1)) return rc;
16 }
17
18//Test TPC reconstruction
19 gROOT->LoadMacro("$(ALICE_ROOT)/TPC/AliTPCFindClusters.C");
20 if (rc=AliTPCFindClusters()) return rc;
21
22 gROOT->LoadMacro("$(ALICE_ROOT)/TPC/AliTPCDisplayClusters.C");
23 if (rc=AliTPCDisplayClusters()) return rc;
24
25 gROOT->LoadMacro("$(ALICE_ROOT)/TPC/AliTPCFindTracks.C");
26 if (rc=AliTPCFindTracks()) return rc;
27
28 gROOT->LoadMacro("$(ALICE_ROOT)/TPC/AliTPCComparison.C");
29 if (rc=AliTPCComparison()) return rc;
30
31 return rc;
32}