1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
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
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)
26 ////////////////////////////////////////////////////////
28 // AliTOFcluster Class //
29 // Description: class for TOF cluster definition //
31 ////////////////////////////////////////////////////////
33 #include "AliTOFcluster.h"
35 //#include "AliGeomManager.h"
36 //#include "TGeoMatrix.h"
38 ClassImp(AliTOFcluster)
40 AliTOFcluster::AliTOFcluster():
61 for (ii=0; ii<5; ii++) fdetIndex[ii] = -1;
63 //-------------------------------------------------------------------------
65 AliTOFcluster::AliTOFcluster(UShort_t volId,
66 Float_t x, Float_t y, Float_t z,
67 Float_t sx2, Float_t sxy, Float_t sxz,
68 Float_t sy2, Float_t syz,
70 Int_t *lab, Int_t * const ind,
71 Int_t *par, Bool_t status, Int_t idx):
72 AliCluster3D(volId,x,y,z,sx2,sxy,sxz,sy2,syz,sz2,lab),
91 for (ii=0; ii<5; ii++) fdetIndex[ii] = ind[ii];
95 fR = TMath::Sqrt(xyz[0]*xyz[0] + xyz[1]*xyz[1]);
96 fPhi = TMath::ATan2(xyz[1], xyz[0]);
99 //-------------------------------------------------------------------------
101 AliTOFcluster::AliTOFcluster(const AliTOFcluster & cluster):
102 AliCluster3D(cluster),
104 fQuality(cluster.fQuality),
110 fTdcND(cluster.fTdcND),
111 fTdcRAW(cluster.fTdcRAW),
112 fStatus(cluster.fStatus),
113 fDeltaBC(cluster.fDeltaBC),
114 fL0L1Latency(cluster.fL0L1Latency),
118 // copy ctor for AliTOFcluster object
122 for (ii=0; ii<5; ii++) fdetIndex[ii] = cluster.fdetIndex[ii];
124 //-------------------------------------------------------------------------
126 AliTOFcluster & AliTOFcluster::operator = (const AliTOFcluster & cluster)
129 if (this == &cluster)
132 TObject::operator=(cluster);
134 fQuality=cluster.fQuality;
140 fTdcND=cluster.fTdcND;
141 fTdcRAW=cluster.fTdcRAW;
142 fStatus=cluster.fStatus;
143 fDeltaBC=cluster.fDeltaBC;
144 fL0L1Latency=cluster.fL0L1Latency;
146 for (Int_t ii=0; ii<5; ii++)
147 fdetIndex[ii] = cluster.fdetIndex[ii];
151 //-------------------------------------------------------------------------
153 AliTOFcluster::~AliTOFcluster() {