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 ClassImp(AliTOFcluster)
37 AliTOFcluster::AliTOFcluster():
55 for (ii=0; ii<3; ii++) fLab[ii] = -1;
56 for (ii=0; ii<5; ii++) fdetIndex[ii] = -1;
58 //-------------------------------------------------------------------------
60 AliTOFcluster::AliTOFcluster(Double_t *h, Int_t *l, Int_t *ind, Int_t idx, Float_t ToT, Double_t TdcND, Bool_t status):
84 for (ii=0; ii<3; ii++) fLab[ii] = l[ii];
85 for (ii=0; ii<5; ii++) fdetIndex[ii] = ind[ii];
87 //-------------------------------------------------------------------------
89 AliTOFcluster::AliTOFcluster(Double_t *h, Int_t *l, Int_t *ind, Int_t idx, Float_t ToT, Double_t TdcND):
113 for (ii=0; ii<3; ii++) fLab[ii] = l[ii];
114 for (ii=0; ii<5; ii++) fdetIndex[ii] = ind[ii];
117 //-------------------------------------------------------------------------
119 AliTOFcluster::AliTOFcluster(Double_t *h, Int_t *l, Int_t *ind, Int_t idx, Float_t ToT, Double_t TdcND, Double_t TdcRAW, Bool_t status):
143 for (ii=0; ii<3; ii++) fLab[ii] = l[ii];
144 for (ii=0; ii<5; ii++) fdetIndex[ii] = ind[ii];
146 //-------------------------------------------------------------------------
148 AliTOFcluster::AliTOFcluster(Double_t *h, Int_t *l, Int_t *ind, Int_t idx, Float_t ToT, Double_t TdcND, Double_t TdcRAW):
172 for (ii=0; ii<3; ii++) fLab[ii] = l[ii];
173 for (ii=0; ii<5; ii++) fdetIndex[ii] = ind[ii];
175 //-------------------------------------------------------------------------
177 AliTOFcluster::AliTOFcluster(Double_t *h, Int_t *ind):
201 for (ii=0; ii<3; ii++) fLab[ii] = -1;
202 for (ii=0; ii<5; ii++) fdetIndex[ii] = ind[ii];
204 //-------------------------------------------------------------------------
206 AliTOFcluster::AliTOFcluster(const AliTOFcluster & cluster):
221 // copy ctor for AliTOFcluster object
230 for (ii=0; ii<3; ii++) fLab[ii] = cluster.fLab[ii];
232 for (ii=0; ii<5; ii++) fdetIndex[ii] = cluster.fdetIndex[ii];
233 fQuality = cluster.fQuality;
235 fTdcND = cluster.fTdcND;
236 fTdcRAW = cluster.fTdcRAW;
238 //-------------------------------------------------------------------------
240 AliTOFcluster::~AliTOFcluster() {