]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TRD/AliTRDtest.C
Correct number of particles in "FINAL" option. (FCA, Ch. Oppedisano)
[u/mrichter/AliRoot.git] / TRD / AliTRDtest.C
CommitLineData
793ff80c 1Int_t AliTRDtest()
2{
3 //
4 // Test macro for the TRD code
5 //
6
7 Int_t rc = 0;
8
9 // Initialize the test setup
5931c105 10 gAlice->Init("$(ALICE_ROOT)/TRD/AliTRDconfig.C");
793ff80c 11
12 // Run one event and create the hits
13 gAlice->Run(1);
14
15 // Analyze the TRD hits
16 gROOT->LoadMacro("$(ALICE_ROOT)/TRD/AliTRDanalyzeHits.C");
17 if (rc = AliTRDanalyzeHits()) return rc;
18
19 // Run the digitization
20 gROOT->LoadMacro("$(ALICE_ROOT)/TRD/AliTRDcreateDigits.C");
21 if (rc = AliTRDcreateDigits()) return rc;
22
23 // Analyze the digits
24 gROOT->LoadMacro("$(ALICE_ROOT)/TRD/AliTRDanalyzeDigits.C");
25 if (rc = AliTRDanalyzeDigits()) return rc;
26
27 return rc;
28
29}