-
Notifications
You must be signed in to change notification settings - Fork 1
/
HiRACalibratedRootEvent.cpp
150 lines (136 loc) · 5.72 KB
/
HiRACalibratedRootEvent.cpp
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
#include "include/HiRACalibratedRootEvent.h"
//________________________________________________
HiRACalibratedData::HiRACalibratedData(int num_max_particles) :
fmulti(0)
{
fnumtel= new Int_t [num_max_particles];
fnumstripf= new Int_t [num_max_particles];
fEnergySifHi= new UShort_t [num_max_particles];
fEnergySifLo= new UShort_t [num_max_particles];
fTimeSif= new UShort_t [num_max_particles];
fnumstripb= new Int_t [num_max_particles];
fEnergySibHi= new UShort_t [num_max_particles];
fEnergySibLo= new UShort_t [num_max_particles];
fTimeSib= new UShort_t [num_max_particles];
fnumcsi= new Int_t [num_max_particles];
fEnergycsi= new UShort_t [num_max_particles];
fTimecsi= new Double_t [num_max_particles];
fEnergySifMatched= new Double_t [num_max_particles];
fEnergySibMatched= new Double_t [num_max_particles];
fEnergySifCal= new Double_t [num_max_particles];
fEnergySibCal= new Double_t [num_max_particles];
fEnergycsiCal= new Double_t [num_max_particles];
fEnergycsiCalProtons= new Double_t [num_max_particles];
fKinEnergy= new Double_t [num_max_particles];
fBeta= new Double_t [num_max_particles];
fMomentum= new Double_t [num_max_particles];
fTheta= new Double_t [num_max_particles];
fPhi= new Double_t [num_max_particles];
fZ= new Int_t [num_max_particles];
fA= new Int_t [num_max_particles];
fIdCode= new Int_t [num_max_particles];
}
//________________________________________________
HiRACalibratedData::HiRACalibratedData() :
fmulti(0)
{
fnumtel= new Int_t [12*NUM_MAX_PARTICLES_PER_TEL];
fnumstripf= new Int_t [12*NUM_MAX_PARTICLES_PER_TEL];
fEnergySifHi= new UShort_t [12*NUM_MAX_PARTICLES_PER_TEL];
fEnergySifLo= new UShort_t [12*NUM_MAX_PARTICLES_PER_TEL];
fTimeSif= new UShort_t [12*NUM_MAX_PARTICLES_PER_TEL];
fnumstripb= new Int_t [12*NUM_MAX_PARTICLES_PER_TEL];
fEnergySibHi= new UShort_t [12*NUM_MAX_PARTICLES_PER_TEL];
fEnergySibLo= new UShort_t [12*NUM_MAX_PARTICLES_PER_TEL];
fTimeSib= new UShort_t [12*NUM_MAX_PARTICLES_PER_TEL];
fnumcsi= new Int_t [12*NUM_MAX_PARTICLES_PER_TEL];
fEnergycsi= new UShort_t [12*NUM_MAX_PARTICLES_PER_TEL];
fTimecsi= new Double_t [12*NUM_MAX_PARTICLES_PER_TEL];
fEnergySifMatched= new Double_t [12*NUM_MAX_PARTICLES_PER_TEL];
fEnergySibMatched= new Double_t [12*NUM_MAX_PARTICLES_PER_TEL];
fEnergySifCal= new Double_t [12*NUM_MAX_PARTICLES_PER_TEL];
fEnergySibCal= new Double_t [12*NUM_MAX_PARTICLES_PER_TEL];
fEnergycsiCal= new Double_t [12*NUM_MAX_PARTICLES_PER_TEL];
fEnergycsiCalProtons= new Double_t [12*NUM_MAX_PARTICLES_PER_TEL];
fKinEnergy= new Double_t [12*NUM_MAX_PARTICLES_PER_TEL];
fBeta= new Double_t [12*NUM_MAX_PARTICLES_PER_TEL];
fMomentum= new Double_t [12*NUM_MAX_PARTICLES_PER_TEL];
fTheta= new Double_t [12*NUM_MAX_PARTICLES_PER_TEL];
fPhi= new Double_t [12*NUM_MAX_PARTICLES_PER_TEL];
fZ= new Int_t [12*NUM_MAX_PARTICLES_PER_TEL];
fA= new Int_t [12*NUM_MAX_PARTICLES_PER_TEL];
fIdCode= new Int_t [12*NUM_MAX_PARTICLES_PER_TEL];
}
//________________________________________________
HiRACalibratedData::~HiRACalibratedData()
{
delete [] fnumtel;
delete [] fnumstripf;
delete [] fEnergySifHi;
delete [] fEnergySifLo;
delete [] fTimeSif ;
delete [] fnumstripb;
delete [] fEnergySibHi;
delete [] fEnergySibLo;
delete [] fTimeSib;
delete [] fnumcsi;
delete [] fEnergycsi;
delete [] fTimecsi;
delete [] fEnergySifMatched;
delete [] fEnergySibMatched;
delete [] fEnergySifCal;
delete [] fEnergySibCal;
delete [] fEnergycsiCal;
delete [] fEnergycsiCalProtons;
delete [] fKinEnergy;
delete [] fBeta;
delete [] fMomentum;
delete [] fTheta;
delete [] fPhi;
delete [] fZ;
delete [] fA;
delete [] fIdCode;
}
//________________________________________________
HiRACalibratedBuffer::HiRACalibratedBuffer() :
fmultistripf(0),
fmultistripb(0),
fmulticsi(0)
{
fnumstripf= new Int_t [NUM_STRIP_F];
fEnergySifHi= new UShort_t [NUM_STRIP_F];
fEnergySifLo= new UShort_t [NUM_STRIP_F];
fTimeSif= new UShort_t [NUM_STRIP_F];
fEnergySifMatched= new Double_t [NUM_STRIP_F];
fEnergySifCal= new Double_t [NUM_STRIP_F];
fnumstripb= new Int_t [NUM_STRIP_B];
fEnergySibHi= new UShort_t [NUM_STRIP_B];
fEnergySibLo= new UShort_t [NUM_STRIP_B];
fTimeSib= new UShort_t [NUM_STRIP_B];
fEnergySibMatched= new Double_t [NUM_STRIP_B];
fEnergySibCal= new Double_t [NUM_STRIP_B];
fnumcsi= new Int_t [NUM_CSI_TEL];
fEnergycsi= new UShort_t [NUM_CSI_TEL];
fTimecsi= new Double_t [NUM_CSI_TEL];
fEnergycsiCal= new Double_t [NUM_CSI_TEL];
}
//________________________________________________
HiRACalibratedBuffer::~HiRACalibratedBuffer()
{
delete [] fnumstripf;
delete [] fEnergySifHi;
delete [] fEnergySifLo;
delete [] fTimeSif ;
delete [] fnumstripb;
delete [] fEnergySibHi;
delete [] fEnergySibLo;
delete [] fTimeSib;
delete [] fnumcsi;
delete [] fEnergycsi;
delete [] fTimecsi;
delete [] fEnergySifMatched;
delete [] fEnergySibMatched;
delete [] fEnergySifCal;
delete [] fEnergySibCal;
delete [] fEnergycsiCal;
}