]>
Commit | Line | Data |
---|---|---|
571dda3d | 1 | /************************************************************************** |
2 | * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
3 | * * | |
4 | * Author: The ALICE Off-line Project. * | |
5 | * Contributors are mentioned in the code where appropriate. * | |
6 | * * | |
7 | * Permission to use, copy, modify and distribute this software and its * | |
8 | * documentation strictly for non-commercial purposes is hereby granted * | |
9 | * without fee, provided that the above copyright notice appears in all * | |
10 | * copies and that both the copyright notice and this permission notice * | |
11 | * appear in the supporting documentation. The authors make no claims * | |
12 | * about the suitability of this software for any purpose. It is * | |
13 | * provided "as is" without express or implied warranty. * | |
14 | **************************************************************************/ | |
15 | /* | |
16 | Revision 0.02 2005/07/27 A. De Caro | |
17 | Implement new ctor AliTOFcluster(Double_t *, Int_t *) | |
18 | for cluster construction from raw data | |
19 | ||
20 | Revision 0.01 2005/07/25 A. De Caro | |
21 | Implement new class statring from | |
22 | class definition inside AliTOFtracker class | |
23 | (originally implemented by S. Arcelli and C. Zampolli) | |
24 | */ | |
25 | ||
0e46b9ae | 26 | //////////////////////////////////////////////////////// |
27 | // // | |
28 | // AliTOFcluster Class // | |
29 | // Description: class for TOF cluster definition // | |
30 | // // | |
31 | //////////////////////////////////////////////////////// | |
571dda3d | 32 | |
33 | #include "AliTOFcluster.h" | |
34 | ||
35 | ClassImp(AliTOFcluster) | |
36 | ||
58d8d9a3 | 37 | AliTOFcluster::AliTOFcluster(): |
38 | fIdx(-1), | |
39 | fR(0), | |
40 | fPhi(0), | |
41 | fZ(0), | |
42 | fTDC(0), | |
43 | fADC(0), | |
44 | fQuality(-100), | |
45 | fToT(0), | |
46 | fTdcND(0), | |
aa5476d8 | 47 | fTdcRAW(0), |
58d8d9a3 | 48 | fStatus(kTRUE) |
49 | { | |
571dda3d | 50 | // |
51 | // default ctor | |
52 | // | |
53 | ||
54 | Int_t ii; | |
571dda3d | 55 | for (ii=0; ii<3; ii++) fLab[ii] = -1; |
571dda3d | 56 | for (ii=0; ii<5; ii++) fdetIndex[ii] = -1; |
571dda3d | 57 | } |
58 | //------------------------------------------------------------------------- | |
59 | ||
58d8d9a3 | 60 | AliTOFcluster::AliTOFcluster(Double_t *h, Int_t *l, Int_t *ind, Int_t idx, Float_t ToT, Double_t TdcND, Bool_t status): |
61 | TObject(), | |
62 | fIdx(idx), | |
63 | fR(0), | |
64 | fPhi(0), | |
65 | fZ(0), | |
66 | fTDC(0), | |
67 | fADC(0), | |
68 | fQuality(-100), | |
69 | fToT(ToT), | |
70 | fTdcND(TdcND), | |
a79b519b | 71 | fTdcRAW(0), |
58d8d9a3 | 72 | fStatus(status) |
73 | { | |
571dda3d | 74 | // |
75 | // constructor | |
76 | // | |
77 | ||
78 | Int_t ii; | |
79 | fR = h[0]; | |
80 | fPhi = h[1]; | |
81 | fZ = h[2]; | |
82 | fTDC = h[3]; | |
83 | fADC = h[4]; | |
84 | for (ii=0; ii<3; ii++) fLab[ii] = l[ii]; | |
571dda3d | 85 | for (ii=0; ii<5; ii++) fdetIndex[ii] = ind[ii]; |
571dda3d | 86 | } |
87 | //------------------------------------------------------------------------- | |
88 | ||
58d8d9a3 | 89 | AliTOFcluster::AliTOFcluster(Double_t *h, Int_t *l, Int_t *ind, Int_t idx, Float_t ToT, Double_t TdcND): |
90 | TObject(), | |
91 | fIdx(idx), | |
92 | fR(0), | |
93 | fPhi(0), | |
94 | fZ(0), | |
95 | fTDC(0), | |
96 | fADC(0), | |
97 | fQuality(-100), | |
98 | fToT(ToT), | |
99 | fTdcND(TdcND), | |
a79b519b | 100 | fTdcRAW(0), |
101 | fStatus(kTRUE) | |
102 | { | |
103 | // | |
104 | // constructor | |
105 | // | |
106 | ||
107 | Int_t ii; | |
108 | fR = h[0]; | |
109 | fPhi = h[1]; | |
110 | fZ = h[2]; | |
111 | fTDC = h[3]; | |
112 | fADC = h[4]; | |
113 | for (ii=0; ii<3; ii++) fLab[ii] = l[ii]; | |
114 | for (ii=0; ii<5; ii++) fdetIndex[ii] = ind[ii]; | |
115 | } | |
116 | ||
117 | //------------------------------------------------------------------------- | |
118 | ||
119 | AliTOFcluster::AliTOFcluster(Double_t *h, Int_t *l, Int_t *ind, Int_t idx, Float_t ToT, Double_t TdcND, Double_t TdcRAW, Bool_t status): | |
120 | TObject(), | |
121 | fIdx(idx), | |
122 | fR(0), | |
123 | fPhi(0), | |
124 | fZ(0), | |
125 | fTDC(0), | |
126 | fADC(0), | |
127 | fQuality(-100), | |
128 | fToT(ToT), | |
129 | fTdcND(TdcND), | |
130 | fTdcRAW(TdcRAW), | |
131 | fStatus(status) | |
132 | { | |
133 | // | |
134 | // constructor | |
135 | // | |
136 | ||
137 | Int_t ii; | |
138 | fR = h[0]; | |
139 | fPhi = h[1]; | |
140 | fZ = h[2]; | |
141 | fTDC = h[3]; | |
142 | fADC = h[4]; | |
143 | for (ii=0; ii<3; ii++) fLab[ii] = l[ii]; | |
144 | for (ii=0; ii<5; ii++) fdetIndex[ii] = ind[ii]; | |
145 | } | |
146 | //------------------------------------------------------------------------- | |
147 | ||
148 | AliTOFcluster::AliTOFcluster(Double_t *h, Int_t *l, Int_t *ind, Int_t idx, Float_t ToT, Double_t TdcND, Double_t TdcRAW): | |
149 | TObject(), | |
150 | fIdx(idx), | |
151 | fR(0), | |
152 | fPhi(0), | |
153 | fZ(0), | |
154 | fTDC(0), | |
155 | fADC(0), | |
156 | fQuality(-100), | |
157 | fToT(ToT), | |
158 | fTdcND(TdcND), | |
159 | fTdcRAW(TdcRAW), | |
58d8d9a3 | 160 | fStatus(kTRUE) |
161 | { | |
162 | // | |
163 | // constructor | |
164 | // | |
165 | ||
166 | Int_t ii; | |
167 | fR = h[0]; | |
168 | fPhi = h[1]; | |
169 | fZ = h[2]; | |
170 | fTDC = h[3]; | |
171 | fADC = h[4]; | |
172 | for (ii=0; ii<3; ii++) fLab[ii] = l[ii]; | |
173 | for (ii=0; ii<5; ii++) fdetIndex[ii] = ind[ii]; | |
174 | } | |
175 | //------------------------------------------------------------------------- | |
176 | ||
177 | AliTOFcluster::AliTOFcluster(Double_t *h, Int_t *ind): | |
178 | TObject(), | |
179 | fIdx(-1), | |
180 | fR(0), | |
181 | fPhi(0), | |
182 | fZ(0), | |
183 | fTDC(0), | |
184 | fADC(0), | |
185 | fQuality(-100), | |
186 | fToT(0), | |
187 | fTdcND(0), | |
aa5476d8 | 188 | fTdcRAW(0), |
58d8d9a3 | 189 | fStatus(kTRUE) |
190 | { | |
571dda3d | 191 | // |
192 | // constructor | |
193 | // | |
194 | ||
195 | Int_t ii; | |
196 | fR = h[0]; | |
197 | fPhi = h[1]; | |
198 | fZ = h[2]; | |
199 | fTDC = h[3]; | |
200 | fADC = h[4]; | |
201 | for (ii=0; ii<3; ii++) fLab[ii] = -1; | |
571dda3d | 202 | for (ii=0; ii<5; ii++) fdetIndex[ii] = ind[ii]; |
571dda3d | 203 | } |
204 | //------------------------------------------------------------------------- | |
205 | ||
58d8d9a3 | 206 | AliTOFcluster::AliTOFcluster(const AliTOFcluster & cluster): |
207 | TObject(), | |
208 | fIdx(-1), | |
209 | fR(0), | |
210 | fPhi(0), | |
211 | fZ(0), | |
212 | fTDC(0), | |
213 | fADC(0), | |
214 | fQuality(-100), | |
215 | fToT(0), | |
216 | fTdcND(0), | |
aa5476d8 | 217 | fTdcRAW(0), |
58d8d9a3 | 218 | fStatus(kTRUE) |
219 | { | |
571dda3d | 220 | // |
221 | // copy ctor for AliTOFcluster object | |
222 | // | |
223 | ||
224 | Int_t ii; | |
225 | fR = cluster.fR; | |
226 | fPhi = cluster.fPhi; | |
227 | fZ = cluster.fZ; | |
228 | fTDC = cluster.fTDC; | |
229 | fADC = cluster.fADC; | |
230 | for (ii=0; ii<3; ii++) fLab[ii] = cluster.fLab[ii]; | |
231 | fIdx = cluster.fIdx; | |
232 | for (ii=0; ii<5; ii++) fdetIndex[ii] = cluster.fdetIndex[ii]; | |
d88fbf15 | 233 | fQuality = cluster.fQuality; |
6dc9348d | 234 | fToT = cluster.fToT; |
235 | fTdcND = cluster.fTdcND; | |
aa5476d8 | 236 | fTdcRAW = cluster.fTdcRAW; |
571dda3d | 237 | } |
238 | //------------------------------------------------------------------------- | |
239 | ||
240 | AliTOFcluster::~AliTOFcluster() { | |
241 | // | |
242 | // dtor | |
243 | // | |
244 | ||
245 | //delete fLab; | |
246 | //delete fdetIndex; | |
247 | ||
248 | } |