]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TOF/AliTOFcluster.cxx
Fix a stupid bug in the (full) miscalibration of digits (ns/ps conv)
[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   fQuality(-100), 
43   fTDC(0),
44   fToT(0),
45   fADC(0),
46   fTdcND(0),
47   fTdcRAW(0),
48   fStatus(kTRUE) 
49  {
50   //
51   // default ctor
52   //
53
54   Int_t ii;
55   for (ii=0; ii<3; ii++) fLab[ii]      = -1;
56   for (ii=0; ii<5; ii++) fdetIndex[ii] = -1;
57 }
58 //-------------------------------------------------------------------------
59
60 AliTOFcluster::AliTOFcluster(Double_t *h,  Int_t *ind, Int_t *par, Bool_t status,Int_t *l, Int_t idx):
61   TObject(),
62   fIdx(idx),
63   fR(h[0]),
64   fPhi(h[1]),
65   fZ(h[2]),
66   fQuality(-100), 
67   fTDC(par[0]),
68   fToT(par[1]),
69   fADC(par[2]),
70   fTdcND(par[3]),
71   fTdcRAW(par[4]),
72   fStatus(status) 
73  {
74   //
75   // constructor
76   //
77
78   Int_t ii;
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
84 AliTOFcluster::AliTOFcluster(Double_t *h, Int_t *ind, Int_t *par):
85   TObject(),
86   fIdx(-1),
87   fR(h[0]),
88   fPhi(h[1]),
89   fZ(h[2]),
90   fQuality(-100), 
91   fTDC(par[0]),
92   fToT(par[1]),
93   fADC(par[2]),
94   fTdcND(par[3]),
95   fTdcRAW(par[4]),
96   fStatus(kTRUE) 
97  {
98   //
99   // constructor
100   //
101
102   Int_t ii;
103   for (ii=0; ii<3; ii++) fLab[ii]      = -1;
104   for (ii=0; ii<5; ii++) fdetIndex[ii] = ind[ii];
105 }
106 //-------------------------------------------------------------------------
107
108 AliTOFcluster::AliTOFcluster(const AliTOFcluster & cluster):
109   TObject(),
110   fIdx(-1),
111   fR(0),
112   fPhi(0),
113   fZ(0),
114   fQuality(-100), 
115   fTDC(0),
116   fToT(0),
117   fADC(0),
118   fTdcND(0),
119   fTdcRAW(0),
120   fStatus(kTRUE) 
121  {
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;
130   fQuality    = cluster.fQuality; 
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];
134   fTDC      = cluster.fTDC;
135   fToT    = cluster.fToT; 
136   fADC      = cluster.fADC;
137   fTdcND    = cluster.fTdcND; 
138   fTdcRAW    = cluster.fTdcRAW; 
139   fStatus    = cluster.fStatus; 
140 }
141 //-------------------------------------------------------------------------
142
143 AliTOFcluster::~AliTOFcluster() {
144   //
145   // dtor
146   //
147
148   //delete fLab;
149   //delete fdetIndex;
150
151 }