Made Track Hypothesis container to derive from AliKalmanTrack for ESD update
[u/mrichter/AliRoot.git] / ITS / UPGRADE / AliITSUSeed.cxx
index 66b3bad..2017cba 100644 (file)
@@ -2,6 +2,7 @@
 #include <TMath.h>
 #include "AliITSUSeed.h"
 #include "AliLog.h"
+#include "AliESDtrack.h"
 using namespace TMath;
 
 ClassImp(AliITSUSeed)
@@ -83,6 +84,20 @@ void AliITSUSeed::Print(Option_t* opt) const
 }
 
 //______________________________________________________________________________
+void AliITSUSeed::InitFromESDTrack(const AliESDtrack* esdTr)
+{
+  // init seed from ESD track
+  TObject::Clear();
+  AliExternalTrackParam::operator=(*esdTr);
+  ResetFMatrix();
+  fHitsPattern = 0;
+  fClID = 0;
+  fChi2Glo = fChi2Cl = fChi2Penalty = 0;
+  fParent = 0; //!!!
+}
+
+
+//______________________________________________________________________________
 Float_t AliITSUSeed::GetChi2GloNrm() const
 {
   int ndf = 2*GetNLayersHit() - 5;