Added material to simulate services in front of the SPD, SDD, and SSD support
[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
dc2495a3 8
9
10AliKalmanTrack::SetConvConst(1000/0.299792458/gAlice->Field()->SolenoidField());
9b280d80 11
73042f01 12 Int_t ver=gAlice->GetDetector("TPC")->IsVersion();
13 delete gAlice; gAlice=0;
37831078 14
15 if ((ver!=1)&&(ver!=2)) {
16 cerr<<"Invalid TPC version: "<<ver<<" ! (must be 1 or 2)\n";
17 return 12345;
18 }
19
73042f01 20 if (ver==2) {
21 gROOT->LoadMacro("$(ALICE_ROOT)/TPC/AliTPCHits2Digits.C");
22 if (rc=AliTPCHits2Digits()) return rc;
23
cf98c13f 24 // gROOT->LoadMacro("$(ALICE_ROOT)/TPC/AliTPCDisplayDigits.C");
25 // if (rc=AliTPCDisplayDigits(1,1)) return rc;
73042f01 26 }
27
37831078 28
73042f01 29//Test TPC reconstruction
30 gROOT->LoadMacro("$(ALICE_ROOT)/TPC/AliTPCFindClusters.C");
31 if (rc=AliTPCFindClusters()) return rc;
32
cf98c13f 33 // gROOT->LoadMacro("$(ALICE_ROOT)/TPC/AliTPCDisplayClusters.C");
34 // if (rc=AliTPCDisplayClusters()) return rc;
73042f01 35
36 gROOT->LoadMacro("$(ALICE_ROOT)/TPC/AliTPCFindTracks.C");
37 if (rc=AliTPCFindTracks()) return rc;
38
a4c38b1c 39 gSystem->SetIncludePath("-I$ROOTSYS/include -I$ALICE_ROOT/include -I$ALICE_ROOT/TPC -I$ALICE_ROOT/CONTAINERS");
40 gROOT->ProcessLine(".L $(ALICE_ROOT)/TPC/AliTPCComparison.C+");
73042f01 41 if (rc=AliTPCComparison()) return rc;
42
43 return rc;
44}
2ab0c725 45