]>
Commit | Line | Data |
---|---|---|
0ee00e25 | 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 | // | |
e1e6896f | 18 | // Tracks from the TRD Global Tracking Unit (GTU, trigger) |
19 | // The TRD trigger stores the found tracks | |
20 | // as ESDTrdTrack objects in the ESD object | |
21 | // Related classes: AliTRDReconstructor, AliESD | |
22 | // Author: B.Vulpescu | |
0ee00e25 | 23 | // |
24 | /////////////////////////////////////////////////////////////////////////////// | |
25 | ||
26 | #include "AliESDTrdTrack.h" | |
27 | ||
28 | ClassImp(AliESDTrdTrack) | |
29 | ||
30 | //_____________________________________________________________________________ | |
31 | AliESDTrdTrack::AliESDTrdTrack(): | |
32 | TObject(), | |
33 | fYproj(0), | |
34 | fZproj(0), | |
35 | fSlope(0), | |
0ee00e25 | 36 | fPt(0), |
37 | fPhi(0), | |
38 | fEta(0), | |
0ee00e25 | 39 | fPID(0), |
cd888a89 | 40 | fLabel(0), |
41 | fNtracklets(0), | |
42 | fNclusters(0), | |
43 | fNplanes(0), | |
44 | fDetector(0) | |
0ee00e25 | 45 | { |
46 | ||
47 | // | |
48 | // Default constructor | |
49 | // | |
50 | ||
51 | } | |
52 | ||
53 | //_____________________________________________________________________________ | |
54 | AliESDTrdTrack::AliESDTrdTrack(const AliESDTrdTrack& track): | |
55 | TObject(track), | |
56 | fYproj(track.fYproj), | |
57 | fZproj(track.fZproj), | |
58 | fSlope(track.fSlope), | |
0ee00e25 | 59 | fPt(track.fPt), |
60 | fPhi(track.fPhi), | |
61 | fEta(track.fEta), | |
0ee00e25 | 62 | fPID(track.fPID), |
cd888a89 | 63 | fLabel(track.fLabel), |
64 | fNtracklets(track.fNtracklets), | |
65 | fNclusters(track.fNclusters), | |
66 | fNplanes(track.fNplanes), | |
67 | fDetector(track.fDetector) | |
0ee00e25 | 68 | { |
69 | ||
70 | // | |
71 | // Copy contructor | |
72 | // | |
73 | ||
74 | } | |
75 | ||
76 | //_____________________________________________________________________________ | |
77 | AliESDTrdTrack& AliESDTrdTrack::operator=(const AliESDTrdTrack& track) | |
78 | { | |
79 | // | |
80 | // Equal operator | |
81 | // | |
82 | ||
83 | if (this == &track) | |
84 | return *this; | |
cd888a89 | 85 | TObject::operator=(track); |
0ee00e25 | 86 | fYproj = track.fYproj; |
87 | fZproj = track.fZproj; | |
88 | fSlope = track.fSlope; | |
0ee00e25 | 89 | fPt = track.fPt; |
90 | fPhi = track.fPhi; | |
91 | fEta = track.fEta; | |
0ee00e25 | 92 | fPID = track.fPID; |
cd888a89 | 93 | fLabel = track.fLabel; |
94 | fNtracklets = track.fNtracklets; | |
95 | fNclusters = track.fNclusters; | |
96 | fDetector = track.fDetector; | |
97 | fNplanes = track.fNplanes; | |
0ee00e25 | 98 | |
99 | return *this; | |
100 | ||
101 | } | |
102 | ||
732a24fe | 103 | void AliESDTrdTrack::Copy(TObject& obj) const { |
104 | ||
105 | // this overwrites the virtual TOBject::Copy() | |
106 | // to allow run time copying without casting | |
107 | // in AliESDEvent | |
108 | ||
109 | if(this==&obj)return; | |
110 | AliESDTrdTrack *robj = dynamic_cast<AliESDTrdTrack*>(&obj); | |
111 | if(!robj)return; // not an aliesesdtrdtrack | |
112 | *robj = *this; | |
113 | } |