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 **************************************************************************/
17 // the tree is represented as reduced events
20 // M.Fasel <M.Fasel@gsi.de>
25 #include "AliHFEreducedTrack.h"
27 ClassImp(AliHFEreducedTrack)
30 //_______________________________________
31 AliHFEreducedTrack::AliHFEreducedTrack():
57 fTPCsharedClusters(0),
59 fTPCclusterRatioAll(0.),
60 fChi2PerTPCcluster(0.),
66 fTPCdEdxCorrected(0.),
68 fTPCsigmaElCorrected(-1000.),
73 fEMCALsigmaEl(-1000.),
79 memset(fMCProdVtx, 0, sizeof(Double_t)*3);
80 memset(fShowerShape, 0, sizeof(Double_t)*4);
81 memset(fDCA, 0, sizeof(Float_t)*2);
82 fHFEImpactParam[0] = -999.;
83 fHFEImpactParam[1] = -999.;
86 //_______________________________________
87 AliHFEreducedTrack::AliHFEreducedTrack(const AliHFEreducedTrack &ref):
89 fSignedPt(ref.fSignedPt),
93 fTPCmomentum(ref.fTPCmomentum),
94 fFilterBit(ref.fFilterBit),
95 fTrackID(ref.fTrackID),
96 fMCSignedPt(ref.fMCSignedPt),
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),
116 fChi2PerTPCcluster(ref.fChi2PerTPCcluster),
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),
127 fITSsigmaEl(ref.fITSsigmaEl),
128 fEoverP(ref.fEoverP),
129 fEMCALsigmaEl(ref.fEMCALsigmaEl),
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);
138 memcpy(fHFEImpactParam, ref.fHFEImpactParam, sizeof(Double_t) * 2);
141 //_______________________________________
142 AliHFEreducedTrack &AliHFEreducedTrack::operator=(const AliHFEreducedTrack &ref){
144 // Assignment Operator
147 TObject::operator=(ref);
148 fSignedPt = ref.fSignedPt;
152 fTPCmomentum = ref.fTPCmomentum;
153 fFilterBit = ref.fFilterBit;
154 fTrackID = ref.fTrackID;
155 fMCSignedPt = ref.fMCSignedPt;
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;
176 fChi2PerTPCcluster = ref.fChi2PerTPCcluster;
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;
187 fITSsigmaEl = ref.fITSsigmaEl;
188 fEoverP = ref.fEoverP;
189 fEMCALsigmaEl = ref.fEMCALsigmaEl;
191 memcpy(fShowerShape, ref.fShowerShape, sizeof(Double_t)*4);
192 memcpy(fDCA, ref.fDCA, sizeof(Float_t)*2);
193 memcpy(fHFEImpactParam, ref.fHFEImpactParam, sizeof(Double_t) * 2);