Create dummy field map for L3 in case no detailed map is needed.
[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
9b280d80 8 AliKalmanTrack::SetConvConst(100/0.299792458/0.2/gAlice->Field()->Factor());
9
73042f01 10 Int_t ver=gAlice->GetDetector("TPC")->IsVersion();
11 delete gAlice; gAlice=0;
37831078 12
13 if ((ver!=1)&&(ver!=2)) {
14 cerr<<"Invalid TPC version: "<<ver<<" ! (must be 1 or 2)\n";
15 return 12345;
16 }
17
73042f01 18 if (ver==2) {
19 gROOT->LoadMacro("$(ALICE_ROOT)/TPC/AliTPCHits2Digits.C");
20 if (rc=AliTPCHits2Digits()) return rc;
21
cf98c13f 22 // gROOT->LoadMacro("$(ALICE_ROOT)/TPC/AliTPCDisplayDigits.C");
23 // if (rc=AliTPCDisplayDigits(1,1)) return rc;
73042f01 24 }
25
37831078 26
73042f01 27//Test TPC reconstruction
28 gROOT->LoadMacro("$(ALICE_ROOT)/TPC/AliTPCFindClusters.C");
29 if (rc=AliTPCFindClusters()) return rc;
30
cf98c13f 31 // gROOT->LoadMacro("$(ALICE_ROOT)/TPC/AliTPCDisplayClusters.C");
32 // if (rc=AliTPCDisplayClusters()) return rc;
73042f01 33
34 gROOT->LoadMacro("$(ALICE_ROOT)/TPC/AliTPCFindTracks.C");
35 if (rc=AliTPCFindTracks()) return rc;
36
37 gROOT->LoadMacro("$(ALICE_ROOT)/TPC/AliTPCComparison.C");
38 if (rc=AliTPCComparison()) return rc;
39
40 return rc;
41}
2ab0c725 42