]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/EveBase/AliEveTrack.cxx
Add method:
[u/mrichter/AliRoot.git] / EVE / EveBase / AliEveTrack.cxx
index f49276fff66fd8769ec684dde5c8ecc304b75f4d..5b7835718e576acc5e844d77ceea9553922ce0dc 100644 (file)
@@ -105,6 +105,17 @@ AliEveTrack::~AliEveTrack()
   // Destructor.
 }
 
+//______________________________________________________________________________
+void AliEveTrack::SetStartParams(const AliExternalTrackParam* tp)
+{
+  // Set the initial vertex / momentum of eve track from 'tp'.
+
+  Double_t buf[3];
+
+  tp->GetXYZ(buf); fV.Set(buf);
+  tp->PxPyPz(buf); fP.Set(buf);
+}
+
 /******************************************************************************/
 
 //______________________________________________________________________________