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