]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TOF/AliTOFcluster.cxx
Add Uncorrected TOF Time signal
[u/mrichter/AliRoot.git] / TOF / AliTOFcluster.cxx
CommitLineData
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/*
16Revision 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
20Revision 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
35ClassImp(AliTOFcluster)
36
58d8d9a3 37AliTOFcluster::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 60AliTOFcluster::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),
71 fStatus(status)
72 {
571dda3d 73 //
74 // constructor
75 //
76
77 Int_t ii;
78 fR = h[0];
79 fPhi = h[1];
80 fZ = h[2];
81 fTDC = h[3];
82 fADC = h[4];
83 for (ii=0; ii<3; ii++) fLab[ii] = l[ii];
571dda3d 84 for (ii=0; ii<5; ii++) fdetIndex[ii] = ind[ii];
571dda3d 85}
86//-------------------------------------------------------------------------
87
58d8d9a3 88AliTOFcluster::AliTOFcluster(Double_t *h, Int_t *l, Int_t *ind, Int_t idx, Float_t ToT, Double_t TdcND):
89 TObject(),
90 fIdx(idx),
91 fR(0),
92 fPhi(0),
93 fZ(0),
94 fTDC(0),
95 fADC(0),
96 fQuality(-100),
97 fToT(ToT),
98 fTdcND(TdcND),
99 fStatus(kTRUE)
100 {
101 //
102 // constructor
103 //
104
105 Int_t ii;
106 fR = h[0];
107 fPhi = h[1];
108 fZ = h[2];
109 fTDC = h[3];
110 fADC = h[4];
111 for (ii=0; ii<3; ii++) fLab[ii] = l[ii];
112 for (ii=0; ii<5; ii++) fdetIndex[ii] = ind[ii];
113}
114//-------------------------------------------------------------------------
115
116AliTOFcluster::AliTOFcluster(Double_t *h, Int_t *ind):
117 TObject(),
118 fIdx(-1),
119 fR(0),
120 fPhi(0),
121 fZ(0),
122 fTDC(0),
123 fADC(0),
124 fQuality(-100),
125 fToT(0),
126 fTdcND(0),
aa5476d8 127 fTdcRAW(0),
58d8d9a3 128 fStatus(kTRUE)
129{
571dda3d 130 //
131 // constructor
132 //
133
134 Int_t ii;
135 fR = h[0];
136 fPhi = h[1];
137 fZ = h[2];
138 fTDC = h[3];
139 fADC = h[4];
140 for (ii=0; ii<3; ii++) fLab[ii] = -1;
571dda3d 141 for (ii=0; ii<5; ii++) fdetIndex[ii] = ind[ii];
571dda3d 142}
143//-------------------------------------------------------------------------
144
58d8d9a3 145AliTOFcluster::AliTOFcluster(const AliTOFcluster & cluster):
146 TObject(),
147 fIdx(-1),
148 fR(0),
149 fPhi(0),
150 fZ(0),
151 fTDC(0),
152 fADC(0),
153 fQuality(-100),
154 fToT(0),
155 fTdcND(0),
aa5476d8 156 fTdcRAW(0),
58d8d9a3 157 fStatus(kTRUE)
158 {
571dda3d 159 //
160 // copy ctor for AliTOFcluster object
161 //
162
163 Int_t ii;
164 fR = cluster.fR;
165 fPhi = cluster.fPhi;
166 fZ = cluster.fZ;
167 fTDC = cluster.fTDC;
168 fADC = cluster.fADC;
169 for (ii=0; ii<3; ii++) fLab[ii] = cluster.fLab[ii];
170 fIdx = cluster.fIdx;
171 for (ii=0; ii<5; ii++) fdetIndex[ii] = cluster.fdetIndex[ii];
d88fbf15 172 fQuality = cluster.fQuality;
6dc9348d 173 fToT = cluster.fToT;
174 fTdcND = cluster.fTdcND;
aa5476d8 175 fTdcRAW = cluster.fTdcRAW;
571dda3d 176}
177//-------------------------------------------------------------------------
178
179AliTOFcluster::~AliTOFcluster() {
180 //
181 // dtor
182 //
183
184 //delete fLab;
185 //delete fdetIndex;
186
187}