]>
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 | ||
26 | // AliTOFcluster Class | |
27 | // Description: class for TOF cluster definition | |
28 | ||
29 | #include "AliTOFcluster.h" | |
30 | ||
31 | ClassImp(AliTOFcluster) | |
32 | ||
33 | AliTOFcluster::AliTOFcluster() { | |
34 | // | |
35 | // default ctor | |
36 | // | |
37 | ||
38 | Int_t ii; | |
39 | fR = 0.; | |
40 | fPhi = 0.; | |
41 | fZ = 0.; | |
42 | fTDC = 0.; | |
43 | fADC = 0.; | |
44 | for (ii=0; ii<3; ii++) fLab[ii] = -1; | |
45 | fIdx = -1; | |
46 | for (ii=0; ii<5; ii++) fdetIndex[ii] = -1; | |
d88fbf15 | 47 | fQuality = -100; |
571dda3d | 48 | } |
49 | //------------------------------------------------------------------------- | |
50 | ||
51 | AliTOFcluster::AliTOFcluster(Double_t *h, Int_t *l, Int_t *ind, Int_t idx) | |
52 | :TObject() { | |
53 | // | |
54 | // constructor | |
55 | // | |
56 | ||
57 | Int_t ii; | |
58 | fR = h[0]; | |
59 | fPhi = h[1]; | |
60 | fZ = h[2]; | |
61 | fTDC = h[3]; | |
62 | fADC = h[4]; | |
63 | for (ii=0; ii<3; ii++) fLab[ii] = l[ii]; | |
64 | fIdx = idx; | |
65 | for (ii=0; ii<5; ii++) fdetIndex[ii] = ind[ii]; | |
d88fbf15 | 66 | fQuality = -100; |
571dda3d | 67 | } |
68 | //------------------------------------------------------------------------- | |
69 | ||
70 | AliTOFcluster::AliTOFcluster(Double_t *h, Int_t *ind) | |
71 | :TObject() { | |
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] = -1; | |
83 | fIdx = -1; | |
84 | for (ii=0; ii<5; ii++) fdetIndex[ii] = ind[ii]; | |
d88fbf15 | 85 | fQuality = -100; |
571dda3d | 86 | } |
87 | //------------------------------------------------------------------------- | |
88 | ||
89 | AliTOFcluster::AliTOFcluster(const AliTOFcluster & cluster) | |
90 | :TObject() { | |
91 | // | |
92 | // copy ctor for AliTOFcluster object | |
93 | // | |
94 | ||
95 | Int_t ii; | |
96 | fR = cluster.fR; | |
97 | fPhi = cluster.fPhi; | |
98 | fZ = cluster.fZ; | |
99 | fTDC = cluster.fTDC; | |
100 | fADC = cluster.fADC; | |
101 | for (ii=0; ii<3; ii++) fLab[ii] = cluster.fLab[ii]; | |
102 | fIdx = cluster.fIdx; | |
103 | for (ii=0; ii<5; ii++) fdetIndex[ii] = cluster.fdetIndex[ii]; | |
d88fbf15 | 104 | fQuality = cluster.fQuality; |
571dda3d | 105 | } |
106 | //------------------------------------------------------------------------- | |
107 | ||
108 | AliTOFcluster::~AliTOFcluster() { | |
109 | // | |
110 | // dtor | |
111 | // | |
112 | ||
113 | //delete fLab; | |
114 | //delete fdetIndex; | |
115 | ||
116 | } |