Updated macro by J. Belikov
[u/mrichter/AliRoot.git] / TPC / AliTPCtest.C
... / ...
CommitLineData
1/****************************************************************************
2 * Origin: I.Belikov, CERN, Jouri.Belikov@cern.ch *
3 ****************************************************************************/
4
5Int_t AliTPCtest() {
6 Int_t rc=0;
7
8//Test TPC simulation
9 gROOT->LoadMacro("$(ALICE_ROOT)/macros/grun.C");
10 grun();
11
12
13
14AliKalmanTrack::SetConvConst(1000/0.299792458/gAlice->Field()->SolenoidField());
15
16 Int_t ver=gAlice->GetDetector("TPC")->IsVersion();
17 delete gAlice; gAlice=0;
18
19 if ((ver!=1)&&(ver!=2)) {
20 cerr<<"Invalid TPC version: "<<ver<<" ! (must be 1 or 2)\n";
21 return 12345;
22 }
23
24 if (ver==2) {
25 gROOT->LoadMacro("$(ALICE_ROOT)/TPC/AliTPCHits2Digits.C");
26 if (rc=AliTPCHits2Digits()) return rc;
27
28 //gROOT->LoadMacro("$(ALICE_ROOT)/TPC/AliTPCDisplayDigits.C");
29 //if (rc=AliTPCDisplayDigits(1,1)) return rc;
30 }
31
32
33//Test TPC reconstruction
34 gROOT->LoadMacro("$(ALICE_ROOT)/TPC/AliTPCFindClusters.C");
35 if (rc=AliTPCFindClusters()) return rc;
36
37 //gROOT->LoadMacro("$(ALICE_ROOT)/TPC/AliTPCDisplayClusters.C");
38 //if (rc=AliTPCDisplayClusters()) return rc;
39
40 gROOT->LoadMacro("$(ALICE_ROOT)/TPC/AliTPCFindTracks.C");
41 if (rc=AliTPCFindTracks()) return rc;
42
43 gSystem->SetIncludePath("-I$ROOTSYS/include -I$ALICE_ROOT/include -I$ALICE_ROOT/TPC -I$ALICE_ROOT/CONTAINERS");
44 gROOT->ProcessLine(".L $(ALICE_ROOT)/TPC/AliTPCComparison.C+");
45 if (rc=AliTPCComparison()) return rc;
46
47 return rc;
48}
49