]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONTrackLight.cxx
Main changes:
[u/mrichter/AliRoot.git] / MUON / AliMUONTrackLight.cxx
index fe79c5a5b85a2de85d98d0c3ed988a45af5dc3ff..abe4d7183841931a879506a4a43d004e78df14e1 100644 (file)
@@ -133,7 +133,7 @@ AliMUONTrackLight::~AliMUONTrackLight()
 
 void AliMUONTrackLight::FillFromAliMUONTrack(AliMUONTrack *trackReco,Double_t zvert){
   /// this method sets the muon reconstructed momentum according to the value given by AliMUONTrack
-  AliMUONTrackParam trPar(*((AliMUONTrackParam*) (trackReco->GetTrackParamAtHit()->First())));
+  AliMUONTrackParam trPar(*((AliMUONTrackParam*) (trackReco->GetTrackParamAtCluster()->First())));
   //  AliMUONTrackParam *trPar  = trackReco->GetTrackParamAtVertex();
   AliMUONTrackExtrap::ExtrapToVertex(&trPar,0.,0.,0.);
   this->SetCharge(Int_t(TMath::Sign(1.,trPar.GetInverseBendingMomentum())));