Using access methods instead of data members
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 22 May 2003 10:46:46 +0000 (10:46 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 22 May 2003 10:46:46 +0000 (10:46 +0000)
TPC/AliTPCtrack.cxx
TRD/AliTRDtrack.cxx

index dc292ebb96cbffba656648e0228be9a6ebad0aee..3cf5b5d2a85c2d88edc6c2ffa77ba1dd7e7d4c3b 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.20  2003/04/10 10:36:54  hristov
+Code for unified TPC/TRD tracking (S.Radomski)
+
 Revision 1.19  2003/03/03 16:56:53  hristov
 Corrections to obey coding conventions
 
@@ -170,10 +173,12 @@ void  AliTPCtrack::GetBarrelTrack(AliBarrelTrack *track) {
   track->SetLabel(GetLabel());
   track->SetX(fX, fAlpha);
   track->SetNClusters(GetNumberOfClusters(), GetChi2());
-  track->SetTime(fIntegratedTime, fIntegratedLength);
+  Double_t times[10];
+  GetIntegratedTimes(times);
+  track->SetTime(times, GetIntegratedLength());
 
-  track->SetMass(fMass);
-  track->SetdEdX(fdEdx);
+  track->SetMass(GetMass());
+  track->SetdEdX(GetdEdx());
 
   track->SetNWrongClusters(fNWrong);
   track->SetNRotate(fNRotation);
index b734db18f975695d9cc5c5011a3d034ef5820d3e..02641355c9b758e4c5614094b529762a49d39db7 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.18  2003/04/10 10:36:54  hristov
+Code for unified TPC/TRD tracking (S.Radomski)
+
 Revision 1.17  2003/02/19 09:02:28  hristov
 Track time measurement (S.Radomski)
 
@@ -232,10 +235,12 @@ void  AliTRDtrack::GetBarrelTrack(AliBarrelTrack *track) {
   track->SetNClusters(GetNumberOfClusters(), GetChi2());
   track->SetNWrongClusters(fNWrong);
   track->SetNRotate(fNRotate);
-  track->SetTime(fIntegratedTime, fIntegratedLength);
+  Double_t times[10];
+  GetIntegratedTimes(times);
+  track->SetTime(times, GetIntegratedLength());
 
-  track->SetMass(fMass);
-  track->SetdEdX(fdEdx);
+  track->SetMass(GetMass());
+  track->SetdEdX(GetdEdx());
 
   GetExternalParameters(xr, vec);
   track->SetStateVector(vec);