From cf32e152dc5232f6c014b00ca8bb8347457a48d8 Mon Sep 17 00:00:00 2001 From: dibari Date: Fri, 23 Mar 2007 09:48:10 +0000 Subject: [PATCH] Bug solved (suggested by A.Morsch) --- HMPID/AliHMPIDv1.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/HMPID/AliHMPIDv1.cxx b/HMPID/AliHMPIDv1.cxx index a4ea8459481..e5a48309774 100644 --- a/HMPID/AliHMPIDv1.cxx +++ b/HMPID/AliHMPIDv1.cxx @@ -557,7 +557,9 @@ void AliHMPIDv1::StepManager() Int_t tid= gMC->GetStack()->GetCurrentTrackNumber(); //take TID Int_t pid= gMC->TrackPid(); //take PID Double_t out[3]; gMC->TrackPosition(out[0],out[1],out[2]); //take MARS position at exit - out[0]=0.5*(out[0]+in[0]); out[1]=0.5*(out[1]+in[1]); out[1]=0.5*(out[1]+in[1]); //take hit position at the anod plane + out[0]=0.5*(out[0]+in[0]); //> + out[1]=0.5*(out[1]+in[1]); //take hit position at the anod plane + out[2]=0.5*(out[2]+in[2]); //> Float_t xl,yl;AliHMPIDParam::Instance()->Mars2Lors(copy,out,xl,yl); //take LORS position new((*fHits)[fNhits++])AliHMPIDHit(copy,eloss,pid,tid,xl,yl,out); //HIT for MIP, position near anod plane, eloss will be set to Q GenFee(eloss); //generate feedback photons -- 2.39.3