3 //**************************************************************************
4 //* This file is property of and copyright by the ALICE HLT Project *
5 //* ALICE Experiment at CERN, All rights reserved. *
7 //* Primary Authors: Matthias Richter <Matthias.Richter@ift.uib.no> *
8 //* for The ALICE HLT Project. *
10 //* Permission to use, copy, modify and distribute this software and its *
11 //* documentation strictly for non-commercial purposes is hereby granted *
12 //* without fee, provided that the above copyright notice appears in all *
13 //* copies and that both the copyright notice and this permission notice *
14 //* appear in the supporting documentation. The authors make no claims *
15 //* about the suitability of this software for any purpose. It is *
16 //* provided "as is" without express or implied warranty. *
17 //**************************************************************************
19 /// @file AliHLTESDtrack.cxx
20 /// @author Matthias Richter
22 /// @brief An AliESDtrack child class doing the conversion between
23 /// AliHLTESDOptTrack and AliESDtrack
26 #include "AliHLTESDtrack.h"
27 #include "AliHLTOnlineESDtrack.h"
28 #include "AliESDtrack.h"
36 /** ROOT macro for the implementation of ROOT specific class methods */
37 ClassImp(AliHLTESDtrack)
39 AliHLTESDtrack::AliHLTESDtrack()
42 // see header file for class documentation
44 // refer to README to build package
46 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
50 AliHLTESDtrack::AliHLTESDtrack(const AliHLTESDtrack& t)
56 AliHLTESDtrack::~AliHLTESDtrack()
61 AliHLTESDtrack& AliHLTESDtrack::operator=(const AliHLTESDtrack& t)
63 // assignment operator
64 if (this==&t) return *this;
66 AliExternalTrackParam::operator=(t);
71 AliHLTESDtrack& AliHLTESDtrack::operator=(const AliHLTOnlineESDtrack& t)
73 // assignment operator from AliESDtrack
75 AliHLTOnlineESDtrack::CopyInternalParam(fCp, t.GetConstrainedParam());
76 AliHLTOnlineESDtrack::CopyInternalParam(fIp, t.GetInnerParam());
77 AliHLTOnlineESDtrack::CopyInternalParam(fTPCInner, t.GetTPCInnerParam());
78 AliHLTOnlineESDtrack::CopyInternalParam(fOp, t.GetOuterParam());
83 fITSLabel=t.GetITSLabel();
84 fTPCLabel=t.GetTPCLabel();
85 fTRDLabel=t.GetTRDLabel();
86 fTrackLength=t.GetIntegratedLength();
88 Float_t p[2]; Float_t cov[3];
90 // copy impact parameters for TPC
91 t.GetImpactParametersTPC(p, cov);
92 fdTPC=p[0]; fzTPC=p[1]; fCddTPC=cov[0]; fCdzTPC=cov[1]; fCzzTPC=cov[2];
93 fCchi2TPC=t.GetConstrainedChi2TPC();
95 // copy impact parameters
96 t.GetImpactParameters(p, cov);
97 fD=p[0]; fZ=p[1]; fCdd=cov[0]; fCdz=cov[1]; fCzz=cov[2];
98 fCchi2=t.GetConstrainedChi2();
100 fITSchi2=t.GetITSchi2();
101 fTPCchi2=t.GetTPCchi2();
102 fTPCchi2Iter1=t.GetTPCchi2Iter1();
103 fTPCncls=t.GetTPCNcls();
104 fTPCnclsF=t.GetTPCNclsF();
105 fTPCnclsIter1=t.GetTPCNclsIter1();
106 fTPCnclsFIter1=t.GetTPCNclsFIter1();
107 fITSncls=t.GetITSNcls();
108 fITSClusterMap=t.GetITSClusterMap();
109 fTRDncls=t.GetTRDncls();
110 fTRDncls0=t.GetTRDncls0();