]>
Commit | Line | Data |
---|---|---|
46d29e70 | 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 | /* | |
17 | $Log$ | |
bbf92647 | 18 | Revision 1.2 2000/10/06 16:49:46 cblume |
19 | Made Getters const | |
20 | ||
46d29e70 | 21 | Revision 1.1.2.1 2000/09/22 14:47:52 cblume |
22 | Add the tracking code | |
23 | ||
24 | */ | |
25 | ||
26 | #include "AliTRDcluster.h" | |
27 | #include "AliTRDgeometry.h" | |
28 | #include "AliTRDrecPoint.h" | |
29 | ||
30 | ||
31 | ClassImp(AliTRDcluster) | |
32 | ||
33 | //_____________________________________________________________________________ | |
34 | AliTRDcluster::AliTRDcluster() { | |
35 | //default constructor | |
36 | ||
37 | fDetector = fTimeBin = 0; | |
38 | fTracks[0]=fTracks[1]=fTracks[2]=0; | |
39 | fY=fZ=fQ=fSigmaY2=fSigmaZ2=0.; | |
40 | } | |
41 | ||
42 | //_____________________________________________________________________________ | |
43 | AliTRDcluster::AliTRDcluster(AliTRDrecPoint *rp) | |
44 | { | |
45 | // | |
46 | // constructor from AliTRDrecPoint | |
47 | // | |
48 | ||
49 | fDetector = rp->GetDetector(); | |
50 | fTimeBin = rp->GetLocalTimeBin(); | |
51 | ||
52 | fTracks[0] = rp->GetTrackIndex(0); | |
53 | fTracks[1] = rp->GetTrackIndex(1); | |
54 | fTracks[2] = rp->GetTrackIndex(2); | |
55 | ||
56 | fQ = rp->GetEnergy(); | |
57 | ||
58 | fY = rp->GetY(); | |
59 | fZ = rp->GetZ(); | |
60 | fSigmaY2 = rp->GetSigmaY2(); | |
61 | fSigmaZ2 = rp->GetSigmaZ2(); | |
62 | ||
bbf92647 | 63 | fSigmaY2 = 0.2; |
64 | fSigmaZ2 = 5.; | |
65 | ||
66 | } | |
67 | ||
68 | //_____________________________________________________________________________ | |
69 | AliTRDcluster::AliTRDcluster(AliTRDcluster *cl) | |
70 | { | |
71 | // | |
72 | // Copy constructor | |
73 | // | |
74 | ||
75 | fDetector = cl->GetDetector(); | |
76 | fTimeBin = cl->GetLocalTimeBin(); | |
77 | ||
78 | fTracks[0] = cl->GetTrackIndex(0); | |
79 | fTracks[1] = cl->GetTrackIndex(1); | |
80 | fTracks[2] = cl->GetTrackIndex(2); | |
81 | ||
82 | fQ = cl->GetQ(); | |
83 | ||
84 | fY = cl->GetY(); | |
85 | fZ = cl->GetZ(); | |
86 | fSigmaY2 = cl->GetSigmaY2(); | |
87 | fSigmaZ2 = cl->GetSigmaZ2(); | |
46d29e70 | 88 | |
89 | } | |
90 |