]>
Commit | Line | Data |
---|---|---|
3513afb7 | 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 | // Debug track | |
17 | // the tree is represented as reduced events | |
18 | // | |
19 | // Authors: | |
20 | // M.Fasel <M.Fasel@gsi.de> | |
21 | // | |
22 | ||
23 | #include <cstring> | |
24 | ||
25 | #include "AliHFEreducedTrack.h" | |
26 | ||
27 | ClassImp(AliHFEreducedTrack) | |
28 | ||
29 | ||
30 | //_______________________________________ | |
31 | AliHFEreducedTrack::AliHFEreducedTrack(): | |
32 | TObject(), | |
33 | fSignedPt(0.), | |
34 | fP(0.), | |
35 | fEta(0.), | |
36 | fPhi(0.), | |
37 | fTPCmomentum(0.), | |
38 | fFilterBit(20), | |
39 | fTrackID(0), | |
40 | fMCSignedPt(0.), | |
41 | fMCP(0.), | |
42 | fMCEta(0.), | |
43 | fMCPhi(0.), | |
44 | fMCPDG(0), | |
45 | fMCMotherPdg(0), | |
46 | fMCSignal(kFALSE), | |
47 | fMCSource(5), | |
48 | fTrackStatus(8), | |
49 | fNclustersITS(0), | |
50 | fNclustersTPC(0), | |
51 | fNclustersTRD(0), | |
52 | fITSclusterMap(6), | |
53 | fITSstatusMap(6), | |
54 | fNclustersTPCPID(0), | |
55 | fNclustersTPCAll(0), | |
56 | fTPCcrossedRows(0), | |
57 | fTPCsharedClusters(0), | |
58 | fTPCclusterRatio(0.), | |
59 | fTPCclusterRatioAll(0.), | |
4437a0d2 | 60 | fChi2PerTPCcluster(0.), |
3513afb7 | 61 | fTRDtrackletsPID(0), |
62 | fTRDnslices(0), | |
63 | fTRDlayer(6), | |
64 | fTRDchi2(0.), | |
65 | fTPCdEdx(0.), | |
66 | fTPCdEdxCorrected(0.), | |
67 | fTPCsigmaEl(-1000.), | |
68 | fTPCsigmaElCorrected(-1000.), | |
69 | fTOFsigmaEl(-1000.), | |
70 | fTOFmismatchProb(0.), | |
4437a0d2 | 71 | fITSsigmaEl(-1000.), |
72 | fEoverP(-1.), | |
3513afb7 | 73 | fEMCALsigmaEl(-1000.), |
74 | fV0PID(kV0undef) | |
75 | { | |
76 | // | |
77 | // Default Constuctor | |
78 | // | |
79 | memset(fMCProdVtx, 0, sizeof(Double_t)*3); | |
80 | memset(fShowerShape, 0, sizeof(Double_t)*4); | |
81 | memset(fDCA, 0, sizeof(Float_t)*2); | |
4437a0d2 | 82 | fHFEImpactParam[0] = -999.; |
83 | fHFEImpactParam[1] = -999.; | |
3513afb7 | 84 | } |
85 | ||
86 | //_______________________________________ | |
87 | AliHFEreducedTrack::AliHFEreducedTrack(const AliHFEreducedTrack &ref): | |
88 | TObject(ref), | |
89 | fSignedPt(ref.fSignedPt), | |
90 | fP(ref.fP), | |
91 | fEta(ref.fEta), | |
92 | fPhi(ref.fPhi), | |
93 | fTPCmomentum(ref.fTPCmomentum), | |
94 | fFilterBit(ref.fFilterBit), | |
95 | fTrackID(ref.fTrackID), | |
96 | fMCSignedPt(ref.fMCSignedPt), | |
97 | fMCP(ref.fMCP), | |
98 | fMCEta(ref.fMCEta), | |
99 | fMCPhi(ref.fMCPhi), | |
100 | fMCPDG(ref.fMCPDG), | |
101 | fMCMotherPdg(ref.fMCMotherPdg), | |
102 | fMCSignal(ref.fMCSignal), | |
103 | fMCSource(ref.fMCSource), | |
104 | fTrackStatus(ref.fTrackStatus), | |
105 | fNclustersITS(ref.fNclustersITS), | |
106 | fNclustersTPC(ref.fNclustersTPC), | |
107 | fNclustersTRD(ref.fNclustersTRD), | |
108 | fITSclusterMap(ref.fITSclusterMap), | |
109 | fITSstatusMap(ref.fITSstatusMap), | |
110 | fNclustersTPCPID(ref.fNclustersTPCPID), | |
111 | fNclustersTPCAll(ref.fNclustersTPCAll), | |
112 | fTPCcrossedRows(ref.fTPCcrossedRows), | |
113 | fTPCsharedClusters(ref.fTPCsharedClusters), | |
114 | fTPCclusterRatio(ref.fTPCclusterRatio), | |
115 | fTPCclusterRatioAll(ref.fTPCclusterRatioAll), | |
4437a0d2 | 116 | fChi2PerTPCcluster(ref.fChi2PerTPCcluster), |
3513afb7 | 117 | fTRDtrackletsPID(ref.fTRDtrackletsPID), |
118 | fTRDnslices(ref.fTRDnslices), | |
119 | fTRDlayer(ref.fTRDlayer), | |
120 | fTRDchi2(ref.fTRDchi2), | |
121 | fTPCdEdx(ref.fTPCdEdx), | |
122 | fTPCdEdxCorrected(ref.fTPCdEdxCorrected), | |
123 | fTPCsigmaEl(ref.fTPCsigmaEl), | |
124 | fTPCsigmaElCorrected(ref.fTPCsigmaElCorrected), | |
125 | fTOFsigmaEl(ref.fTOFsigmaEl), | |
126 | fTOFmismatchProb(ref.fTOFmismatchProb), | |
4437a0d2 | 127 | fITSsigmaEl(ref.fITSsigmaEl), |
3513afb7 | 128 | fEoverP(ref.fEoverP), |
129 | fEMCALsigmaEl(ref.fEMCALsigmaEl), | |
130 | fV0PID(ref.fV0PID) | |
131 | { | |
132 | // | |
133 | // Copy Constuctor | |
134 | // | |
135 | memcpy(fMCProdVtx, ref.fMCProdVtx, sizeof(Double_t) *3); | |
136 | memcpy(fShowerShape, ref.fShowerShape, sizeof(Double_t)*4); | |
137 | memcpy(fDCA, ref.fDCA, sizeof(Float_t)*2); | |
4437a0d2 | 138 | memcpy(fHFEImpactParam, ref.fHFEImpactParam, sizeof(Double_t) * 2); |
3513afb7 | 139 | } |
140 | ||
141 | //_______________________________________ | |
142 | AliHFEreducedTrack &AliHFEreducedTrack::operator=(const AliHFEreducedTrack &ref){ | |
143 | // | |
144 | // Assignment Operator | |
145 | // | |
146 | if(&ref != this){ | |
147 | TObject::operator=(ref); | |
148 | fSignedPt = ref.fSignedPt; | |
149 | fP = ref.fP; | |
150 | fEta = ref.fEta; | |
151 | fPhi = ref.fPhi; | |
152 | fTPCmomentum = ref.fTPCmomentum; | |
153 | fFilterBit = ref.fFilterBit; | |
154 | fTrackID = ref.fTrackID; | |
155 | fMCSignedPt = ref.fMCSignedPt; | |
156 | fMCP = ref.fMCP; | |
157 | fMCEta = ref.fMCEta; | |
158 | fMCPhi = ref.fMCPhi; | |
159 | fMCPDG = ref.fMCPDG; | |
160 | fMCMotherPdg = ref.fMCMotherPdg; | |
161 | fMCSignal = ref.fMCSignal; | |
162 | fMCSource = ref.fMCSource; | |
163 | memcpy(fMCProdVtx, ref.fMCProdVtx, sizeof(Double_t) *3); | |
164 | fTrackStatus =ref.fTrackStatus; | |
165 | fNclustersITS = ref.fNclustersITS; | |
166 | fNclustersTPC = ref.fNclustersTPC; | |
167 | fNclustersTRD = ref.fNclustersTRD; | |
168 | fITSclusterMap = ref.fITSclusterMap; | |
169 | fITSstatusMap = ref.fITSstatusMap; | |
170 | fNclustersTPCPID = ref.fNclustersTPCPID; | |
171 | fNclustersTPCAll = ref.fNclustersTPCAll; | |
172 | fTPCcrossedRows = ref.fTPCcrossedRows; | |
173 | fTPCsharedClusters = ref.fTPCsharedClusters; | |
174 | fTPCclusterRatio = ref.fTPCclusterRatio; | |
175 | fTPCclusterRatioAll = ref.fTPCclusterRatioAll; | |
4437a0d2 | 176 | fChi2PerTPCcluster = ref.fChi2PerTPCcluster; |
3513afb7 | 177 | fTRDtrackletsPID = ref.fTRDtrackletsPID; |
178 | fTRDnslices = ref.fTRDnslices; | |
179 | fTRDlayer = ref.fTRDlayer; | |
180 | fTRDchi2 = ref.fTRDchi2; | |
181 | fTPCdEdx = ref.fTPCdEdx; | |
182 | fTPCdEdxCorrected = ref.fTPCdEdxCorrected; | |
183 | fTPCsigmaEl = ref.fTPCsigmaEl; | |
184 | fTPCsigmaElCorrected = ref.fTPCsigmaElCorrected; | |
185 | fTOFsigmaEl = ref.fTOFsigmaEl; | |
186 | fTOFmismatchProb = ref.fTOFmismatchProb; | |
4437a0d2 | 187 | fITSsigmaEl = ref.fITSsigmaEl; |
3513afb7 | 188 | fEoverP = ref.fEoverP; |
189 | fEMCALsigmaEl = ref.fEMCALsigmaEl; | |
190 | fV0PID = ref.fV0PID; | |
191 | memcpy(fShowerShape, ref.fShowerShape, sizeof(Double_t)*4); | |
192 | memcpy(fDCA, ref.fDCA, sizeof(Float_t)*2); | |
4437a0d2 | 193 | memcpy(fHFEImpactParam, ref.fHFEImpactParam, sizeof(Double_t) * 2); |
3513afb7 | 194 | } |
195 | return *this; | |
196 | } |