]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/AliTRDtest.C
Bug correction in StepManager :
[u/mrichter/AliRoot.git] / TRD / AliTRDtest.C
1 Int_t AliTRDtest() 
2 {
3   //
4   // Test macro for the TRD code
5   //
6
7   Int_t rc = 0;
8
9   // Initialize the test setup 
10   gAlice->Init("$(ALICE_ROOT)/TRD/AliTRDconfig.C");
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 }