]>
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), | |
58d8d9a3 | 42 | fQuality(-100), |
bf33f8f0 | 43 | fTDC(0), |
58d8d9a3 | 44 | fToT(0), |
bf33f8f0 | 45 | fADC(0), |
58d8d9a3 | 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 | ||
bf33f8f0 | 60 | AliTOFcluster::AliTOFcluster(Double_t *h, Int_t *ind, Int_t *par, Bool_t status,Int_t *l, Int_t idx): |
a79b519b | 61 | TObject(), |
62 | fIdx(idx), | |
bf33f8f0 | 63 | fR(h[0]), |
64 | fPhi(h[1]), | |
65 | fZ(h[2]), | |
a79b519b | 66 | fQuality(-100), |
bf33f8f0 | 67 | fTDC(par[0]), |
68 | fToT(par[1]), | |
69 | fADC(par[2]), | |
70 | fTdcND(par[3]), | |
71 | fTdcRAW(par[4]), | |
a79b519b | 72 | fStatus(status) |
73 | { | |
74 | // | |
75 | // constructor | |
76 | // | |
77 | ||
78 | Int_t ii; | |
a79b519b | 79 | for (ii=0; ii<3; ii++) fLab[ii] = l[ii]; |
80 | for (ii=0; ii<5; ii++) fdetIndex[ii] = ind[ii]; | |
81 | } | |
82 | //------------------------------------------------------------------------- | |
83 | ||
bf33f8f0 | 84 | AliTOFcluster::AliTOFcluster(Double_t *h, Int_t *ind, Int_t *par): |
a79b519b | 85 | TObject(), |
58d8d9a3 | 86 | fIdx(-1), |
bf33f8f0 | 87 | fR(h[0]), |
88 | fPhi(h[1]), | |
89 | fZ(h[2]), | |
58d8d9a3 | 90 | fQuality(-100), |
bf33f8f0 | 91 | fTDC(par[0]), |
92 | fToT(par[1]), | |
93 | fADC(par[2]), | |
94 | fTdcND(par[3]), | |
95 | fTdcRAW(par[4]), | |
58d8d9a3 | 96 | fStatus(kTRUE) |
bf33f8f0 | 97 | { |
571dda3d | 98 | // |
99 | // constructor | |
100 | // | |
101 | ||
102 | Int_t ii; | |
571dda3d | 103 | for (ii=0; ii<3; ii++) fLab[ii] = -1; |
571dda3d | 104 | for (ii=0; ii<5; ii++) fdetIndex[ii] = ind[ii]; |
571dda3d | 105 | } |
106 | //------------------------------------------------------------------------- | |
107 | ||
58d8d9a3 | 108 | AliTOFcluster::AliTOFcluster(const AliTOFcluster & cluster): |
109 | TObject(), | |
110 | fIdx(-1), | |
111 | fR(0), | |
112 | fPhi(0), | |
113 | fZ(0), | |
58d8d9a3 | 114 | fQuality(-100), |
bf33f8f0 | 115 | fTDC(0), |
58d8d9a3 | 116 | fToT(0), |
bf33f8f0 | 117 | fADC(0), |
58d8d9a3 | 118 | fTdcND(0), |
aa5476d8 | 119 | fTdcRAW(0), |
58d8d9a3 | 120 | fStatus(kTRUE) |
121 | { | |
571dda3d | 122 | // |
123 | // copy ctor for AliTOFcluster object | |
124 | // | |
125 | ||
126 | Int_t ii; | |
127 | fR = cluster.fR; | |
128 | fPhi = cluster.fPhi; | |
129 | fZ = cluster.fZ; | |
bf33f8f0 | 130 | fQuality = cluster.fQuality; |
571dda3d | 131 | for (ii=0; ii<3; ii++) fLab[ii] = cluster.fLab[ii]; |
132 | fIdx = cluster.fIdx; | |
133 | for (ii=0; ii<5; ii++) fdetIndex[ii] = cluster.fdetIndex[ii]; | |
bf33f8f0 | 134 | fTDC = cluster.fTDC; |
6dc9348d | 135 | fToT = cluster.fToT; |
bf33f8f0 | 136 | fADC = cluster.fADC; |
6dc9348d | 137 | fTdcND = cluster.fTdcND; |
aa5476d8 | 138 | fTdcRAW = cluster.fTdcRAW; |
bf33f8f0 | 139 | fStatus = cluster.fStatus; |
571dda3d | 140 | } |
141 | //------------------------------------------------------------------------- | |
142 | ||
143 | AliTOFcluster::~AliTOFcluster() { | |
144 | // | |
145 | // dtor | |
146 | // | |
147 | ||
148 | //delete fLab; | |
149 | //delete fdetIndex; | |
150 | ||
151 | } |