]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TOF/AliTOFcluster.cxx
Removing the fake copy constructors and assignment operator, moving their declaration...
[u/mrichter/AliRoot.git] / TOF / AliTOFcluster.cxx
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
26 ////////////////////////////////////////////////////////
27 //                                                    //
28 //    AliTOFcluster Class                             //
29 //    Description: class for TOF cluster definition   //
30 //                                                    //
31 ////////////////////////////////////////////////////////
32
33 #include "AliTOFcluster.h"
34
35 ClassImp(AliTOFcluster)
36
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),
47   fStatus(kTRUE) 
48  {
49   //
50   // default ctor
51   //
52
53   Int_t ii;
54   for (ii=0; ii<3; ii++) fLab[ii]      = -1;
55   for (ii=0; ii<5; ii++) fdetIndex[ii] = -1;
56 }
57 //-------------------------------------------------------------------------
58
59 AliTOFcluster::AliTOFcluster(Double_t *h, Int_t *l, Int_t *ind, Int_t idx, Float_t ToT, Double_t TdcND, Bool_t status):
60   TObject(),
61   fIdx(idx),
62   fR(0),
63   fPhi(0),
64   fZ(0),
65   fTDC(0),
66   fADC(0),
67   fQuality(-100), 
68   fToT(ToT),
69   fTdcND(TdcND),
70   fStatus(status) 
71  {
72   //
73   // constructor
74   //
75
76   Int_t ii;
77   fR   = h[0];
78   fPhi = h[1];
79   fZ   = h[2];
80   fTDC = h[3];
81   fADC = h[4];
82   for (ii=0; ii<3; ii++) fLab[ii]      = l[ii];
83   for (ii=0; ii<5; ii++) fdetIndex[ii] = ind[ii];
84 }
85 //-------------------------------------------------------------------------
86
87 AliTOFcluster::AliTOFcluster(Double_t *h, Int_t *l, Int_t *ind, Int_t idx, Float_t ToT, Double_t TdcND):
88   TObject(),
89   fIdx(idx),
90   fR(0),
91   fPhi(0),
92   fZ(0),
93   fTDC(0),
94   fADC(0),
95   fQuality(-100), 
96   fToT(ToT),
97   fTdcND(TdcND),
98   fStatus(kTRUE) 
99  {
100   //
101   // constructor
102   //
103
104   Int_t ii;
105   fR   = h[0];
106   fPhi = h[1];
107   fZ   = h[2];
108   fTDC = h[3];
109   fADC = h[4];
110   for (ii=0; ii<3; ii++) fLab[ii]      = l[ii];
111   for (ii=0; ii<5; ii++) fdetIndex[ii] = ind[ii];
112 }
113 //-------------------------------------------------------------------------
114
115 AliTOFcluster::AliTOFcluster(Double_t *h, Int_t *ind):
116   TObject(), 
117   fIdx(-1),
118   fR(0),
119   fPhi(0),
120   fZ(0),
121   fTDC(0),
122   fADC(0),
123   fQuality(-100), 
124   fToT(0),
125   fTdcND(0),
126   fStatus(kTRUE) 
127 {
128   //
129   // constructor
130   //
131
132   Int_t ii;
133   fR   = h[0];
134   fPhi = h[1];
135   fZ   = h[2];
136   fTDC = h[3];
137   fADC = h[4];
138   for (ii=0; ii<3; ii++) fLab[ii]      = -1;
139   for (ii=0; ii<5; ii++) fdetIndex[ii] = ind[ii];
140 }
141 //-------------------------------------------------------------------------
142
143 AliTOFcluster::AliTOFcluster(const AliTOFcluster & cluster):
144   TObject(),
145   fIdx(-1),
146   fR(0),
147   fPhi(0),
148   fZ(0),
149   fTDC(0),
150   fADC(0),
151   fQuality(-100), 
152   fToT(0),
153   fTdcND(0),
154   fStatus(kTRUE) 
155  {
156   //
157   // copy ctor for AliTOFcluster object
158   //
159
160   Int_t ii;
161   fR        = cluster.fR;
162   fPhi      = cluster.fPhi;
163   fZ        = cluster.fZ;
164   fTDC      = cluster.fTDC;
165   fADC      = cluster.fADC;
166   for (ii=0; ii<3; ii++) fLab[ii]      = cluster.fLab[ii];
167   fIdx      = cluster.fIdx;
168   for (ii=0; ii<5; ii++) fdetIndex[ii] = cluster.fdetIndex[ii];
169   fQuality    = cluster.fQuality; 
170   fToT    = cluster.fToT; 
171   fTdcND    = cluster.fTdcND; 
172 }
173 //-------------------------------------------------------------------------
174
175 AliTOFcluster::~AliTOFcluster() {
176   //
177   // dtor
178   //
179
180   //delete fLab;
181   //delete fdetIndex;
182
183 }