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 **************************************************************************/
18 Revision 1.2 2000/10/06 16:49:46 cblume
21 Revision 1.1.2.1 2000/09/22 14:47:52 cblume
26 #include "AliTRDcluster.h"
27 #include "AliTRDgeometry.h"
28 #include "AliTRDrecPoint.h"
31 ClassImp(AliTRDcluster)
33 //_____________________________________________________________________________
34 AliTRDcluster::AliTRDcluster() {
37 fDetector = fTimeBin = 0;
38 fTracks[0]=fTracks[1]=fTracks[2]=0;
39 fY=fZ=fQ=fSigmaY2=fSigmaZ2=0.;
42 //_____________________________________________________________________________
43 AliTRDcluster::AliTRDcluster(AliTRDrecPoint *rp)
46 // constructor from AliTRDrecPoint
49 fDetector = rp->GetDetector();
50 fTimeBin = rp->GetLocalTimeBin();
52 fTracks[0] = rp->GetTrackIndex(0);
53 fTracks[1] = rp->GetTrackIndex(1);
54 fTracks[2] = rp->GetTrackIndex(2);
60 fSigmaY2 = rp->GetSigmaY2();
61 fSigmaZ2 = rp->GetSigmaZ2();
68 //_____________________________________________________________________________
69 AliTRDcluster::AliTRDcluster(AliTRDcluster *cl)
75 fDetector = cl->GetDetector();
76 fTimeBin = cl->GetLocalTimeBin();
78 fTracks[0] = cl->GetTrackIndex(0);
79 fTracks[1] = cl->GetTrackIndex(1);
80 fTracks[2] = cl->GetTrackIndex(2);
86 fSigmaY2 = cl->GetSigmaY2();
87 fSigmaZ2 = cl->GetSigmaZ2();