]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TOF/AliTOFcluster.cxx
input data to simulate time slewing, from TB
[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 // 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   fToT = 0.;
45   fTdcND = 0;
46   for (ii=0; ii<3; ii++) fLab[ii]      = -1;
47   fIdx = -1;
48   for (ii=0; ii<5; ii++) fdetIndex[ii] = -1;
49   fQuality    = -100; 
50 }
51 //-------------------------------------------------------------------------
52
53 AliTOFcluster::AliTOFcluster(Double_t *h, Int_t *l, Int_t *ind, Int_t idx, Float_t ToT, Double_t TdcND)
54 :TObject() {
55   //
56   // constructor
57   //
58
59   Int_t ii;
60   fR   = h[0];
61   fPhi = h[1];
62   fZ   = h[2];
63   fTDC = h[3];
64   fADC = h[4];
65   fToT = ToT;
66   fTdcND = TdcND;
67   for (ii=0; ii<3; ii++) fLab[ii]      = l[ii];
68   fIdx = idx;
69   for (ii=0; ii<5; ii++) fdetIndex[ii] = ind[ii];
70   fQuality    = -100; 
71 }
72 //-------------------------------------------------------------------------
73
74 AliTOFcluster::AliTOFcluster(Double_t *h, Int_t *ind)
75 :TObject() {
76   //
77   // constructor
78   //
79
80   Int_t ii;
81   fR   = h[0];
82   fPhi = h[1];
83   fZ   = h[2];
84   fTDC = h[3];
85   fADC = h[4];
86   for (ii=0; ii<3; ii++) fLab[ii]      = -1;
87   fIdx = -1;
88   for (ii=0; ii<5; ii++) fdetIndex[ii] = ind[ii];
89   fQuality    = -100; 
90 }
91 //-------------------------------------------------------------------------
92
93 AliTOFcluster::AliTOFcluster(const AliTOFcluster & cluster)
94 :TObject() {
95   //
96   // copy ctor for AliTOFcluster object
97   //
98
99   Int_t ii;
100   fR        = cluster.fR;
101   fPhi      = cluster.fPhi;
102   fZ        = cluster.fZ;
103   fTDC      = cluster.fTDC;
104   fADC      = cluster.fADC;
105   for (ii=0; ii<3; ii++) fLab[ii]      = cluster.fLab[ii];
106   fIdx      = cluster.fIdx;
107   for (ii=0; ii<5; ii++) fdetIndex[ii] = cluster.fdetIndex[ii];
108   fQuality    = cluster.fQuality; 
109   fToT    = cluster.fToT; 
110   fTdcND    = cluster.fTdcND; 
111 }
112 //-------------------------------------------------------------------------
113
114 AliTOFcluster::~AliTOFcluster() {
115   //
116   // dtor
117   //
118
119   //delete fLab;
120   //delete fdetIndex;
121
122 }