]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TOF/AliTOFcluster.cxx
Double precision (Marian). Coding conventions (Federico)
[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
26// AliTOFcluster Class
27// Description: class for TOF cluster definition
28
29#include "AliTOFcluster.h"
30
31ClassImp(AliTOFcluster)
32
33AliTOFcluster::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.;
6dc9348d 44 fToT = 0.;
45 fTdcND = 0;
571dda3d 46 for (ii=0; ii<3; ii++) fLab[ii] = -1;
47 fIdx = -1;
48 for (ii=0; ii<5; ii++) fdetIndex[ii] = -1;
d88fbf15 49 fQuality = -100;
571dda3d 50}
51//-------------------------------------------------------------------------
52
6dc9348d 53AliTOFcluster::AliTOFcluster(Double_t *h, Int_t *l, Int_t *ind, Int_t idx, Float_t ToT, Double_t TdcND)
571dda3d 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];
6dc9348d 65 fToT = ToT;
66 fTdcND = TdcND;
571dda3d 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];
d88fbf15 70 fQuality = -100;
571dda3d 71}
72//-------------------------------------------------------------------------
73
74AliTOFcluster::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];
d88fbf15 89 fQuality = -100;
571dda3d 90}
91//-------------------------------------------------------------------------
92
93AliTOFcluster::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];
d88fbf15 108 fQuality = cluster.fQuality;
6dc9348d 109 fToT = cluster.fToT;
110 fTdcND = cluster.fTdcND;
571dda3d 111}
112//-------------------------------------------------------------------------
113
114AliTOFcluster::~AliTOFcluster() {
115 //
116 // dtor
117 //
118
119 //delete fLab;
120 //delete fdetIndex;
121
122}