]>
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 | ||
37 | AliTOFcluster::AliTOFcluster() { | |
38 | // | |
39 | // default ctor | |
40 | // | |
41 | ||
42 | Int_t ii; | |
43 | fR = 0.; | |
44 | fPhi = 0.; | |
45 | fZ = 0.; | |
46 | fTDC = 0.; | |
47 | fADC = 0.; | |
6dc9348d | 48 | fToT = 0.; |
49 | fTdcND = 0; | |
571dda3d | 50 | for (ii=0; ii<3; ii++) fLab[ii] = -1; |
51 | fIdx = -1; | |
52 | for (ii=0; ii<5; ii++) fdetIndex[ii] = -1; | |
d88fbf15 | 53 | fQuality = -100; |
571dda3d | 54 | } |
55 | //------------------------------------------------------------------------- | |
56 | ||
6dc9348d | 57 | AliTOFcluster::AliTOFcluster(Double_t *h, Int_t *l, Int_t *ind, Int_t idx, Float_t ToT, Double_t TdcND) |
571dda3d | 58 | :TObject() { |
59 | // | |
60 | // constructor | |
61 | // | |
62 | ||
63 | Int_t ii; | |
64 | fR = h[0]; | |
65 | fPhi = h[1]; | |
66 | fZ = h[2]; | |
67 | fTDC = h[3]; | |
68 | fADC = h[4]; | |
6dc9348d | 69 | fToT = ToT; |
70 | fTdcND = TdcND; | |
571dda3d | 71 | for (ii=0; ii<3; ii++) fLab[ii] = l[ii]; |
72 | fIdx = idx; | |
73 | for (ii=0; ii<5; ii++) fdetIndex[ii] = ind[ii]; | |
d88fbf15 | 74 | fQuality = -100; |
571dda3d | 75 | } |
76 | //------------------------------------------------------------------------- | |
77 | ||
78 | AliTOFcluster::AliTOFcluster(Double_t *h, Int_t *ind) | |
79 | :TObject() { | |
80 | // | |
81 | // constructor | |
82 | // | |
83 | ||
84 | Int_t ii; | |
85 | fR = h[0]; | |
86 | fPhi = h[1]; | |
87 | fZ = h[2]; | |
88 | fTDC = h[3]; | |
89 | fADC = h[4]; | |
90 | for (ii=0; ii<3; ii++) fLab[ii] = -1; | |
91 | fIdx = -1; | |
92 | for (ii=0; ii<5; ii++) fdetIndex[ii] = ind[ii]; | |
d88fbf15 | 93 | fQuality = -100; |
571dda3d | 94 | } |
95 | //------------------------------------------------------------------------- | |
96 | ||
97 | AliTOFcluster::AliTOFcluster(const AliTOFcluster & cluster) | |
98 | :TObject() { | |
99 | // | |
100 | // copy ctor for AliTOFcluster object | |
101 | // | |
102 | ||
103 | Int_t ii; | |
104 | fR = cluster.fR; | |
105 | fPhi = cluster.fPhi; | |
106 | fZ = cluster.fZ; | |
107 | fTDC = cluster.fTDC; | |
108 | fADC = cluster.fADC; | |
109 | for (ii=0; ii<3; ii++) fLab[ii] = cluster.fLab[ii]; | |
110 | fIdx = cluster.fIdx; | |
111 | for (ii=0; ii<5; ii++) fdetIndex[ii] = cluster.fdetIndex[ii]; | |
d88fbf15 | 112 | fQuality = cluster.fQuality; |
6dc9348d | 113 | fToT = cluster.fToT; |
114 | fTdcND = cluster.fTdcND; | |
571dda3d | 115 | } |
116 | //------------------------------------------------------------------------- | |
117 | ||
118 | AliTOFcluster::~AliTOFcluster() { | |
119 | // | |
120 | // dtor | |
121 | // | |
122 | ||
123 | //delete fLab; | |
124 | //delete fdetIndex; | |
125 | ||
126 | } |