]> git.uio.no Git - u/mrichter/AliRoot.git/blame_incremental - TOF/AliTOFtest.C
* hmpid_digits.C, hmpid_raw.C
[u/mrichter/AliRoot.git] / TOF / AliTOFtest.C
... / ...
CommitLineData
1Int_t AliTOFtest(Int_t nevents=1)
2{
3 //
4 // Test macro for the TOF code
5 // report bug to Fabrizio.Pierella@cern.ch
6 // Use case:
7 // start aliroot
8 // root [0] .L AliTOFtest.C
9 // root [1] AliTOFtest()
10 //
11 // Updated to the new I/O: A. De Caro, C. Zampolli
12 //
13
14 Int_t rc = 0;
15
16 // Initialize the test setup
17
18 gAlice->Init("$ALICE_ROOT/TOF/AliTOFconfig.C");
19
20 // Run one central Hijing event and create the hits
21 // (time required: some minuts)
22
23 gAlice->SetDebug(2);
24 gAlice->Run(nevents);
25
26 if (gAlice)
27 {
28 delete AliRunLoader::Instance();
29 delete gAlice;
30 gAlice = 0x0;
31 }
32
33 gROOT->LoadMacro("$(ALICE_ROOT)/TOF/AliTOFanalyzeHits.C");
34 if (rc=AliTOFanalyzeHits()) return rc;
35
36 if (gAlice)
37 {
38 delete AliRunLoader::Instance();
39 delete gAlice;
40 gAlice = 0x0;
41 }
42
43 gROOT->LoadMacro("$(ALICE_ROOT)/TOF/AliTOFhits2sdigits.C");
44 if (rc=AliTOFhits2sdigits()) return rc;
45
46 if (gAlice)
47 {
48 delete AliRunLoader::Instance();
49 delete gAlice;
50 gAlice = 0x0;
51 }
52
53 gROOT->LoadMacro("$(ALICE_ROOT)/TOF/AliTOFanalyzeSDigitsV2.C");
54 if (rc=AliTOFanalyzeSDigitsV2()) return rc;
55
56 if (gAlice)
57 {
58 delete AliRunLoader::Instance();
59 delete gAlice;
60 gAlice = 0x0;
61 }
62
63 gROOT->LoadMacro("$(ALICE_ROOT)/TOF/AliTOFSDigits2Digits.C");
64 if (rc=AliTOFSDigits2Digits()) return rc;
65 //gROOT->LoadMacro("$(ALICE_ROOT)/TOF/AliTOFtestDigitizer.C");
66 //if (rc=AliTOFtestDigitizer()) return rc;
67
68 if (gAlice)
69 {
70 delete AliRunLoader::Instance();
71 delete gAlice;
72 gAlice = 0x0;
73 }
74
75 gROOT->LoadMacro("$(ALICE_ROOT)/TOF/AliTOFanalyzeDigits.C");
76 if (rc=AliTOFanalyzeDigits()) return rc;
77 if (gAlice)
78 {
79 delete AliRunLoader::Instance();
80 delete gAlice;
81 gAlice = 0x0;
82 }
83
84}