From: egangler Date: Thu, 18 Jan 2001 15:23:49 +0000 (+0000) Subject: Bug correction in StepManager : X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=e0f71fb77c7cd08eb7f13697b22ee1aa2d49b17f;p=u%2Fmrichter%2FAliRoot.git Bug correction in StepManager : Now the systematic offset with angle is cured --- diff --git a/MUON/AliMUONv1.cxx b/MUON/AliMUONv1.cxx index 5cabc3cba37..6411d50f251 100644 --- a/MUON/AliMUONv1.cxx +++ b/MUON/AliMUONv1.cxx @@ -15,6 +15,9 @@ /* $Log$ +Revision 1.22 2001/01/17 21:01:21 hristov +Unused variable removed + Revision 1.21 2000/12/20 13:00:22 egangler Added charge correlation between cathods. @@ -2098,13 +2101,14 @@ void AliMUONv1::StepManager() Float_t globalPos[3] = {pos[0], pos[1], pos[2]}; gMC->Gmtod(globalPos,localPos,1); + eloss += destep; if (eloss > 0 && idvol < AliMUONConstants::NTrackingCh()) MakePadHits(0.5*(xhit+pos[0]),0.5*(yhit+pos[1]),pos[2],eloss,tof,idvol); xhit = pos[0]; yhit = pos[1]; - zhit = pos[2]; - eloss = destep; + zhit = pos[2]; + eloss = 0; tlength += step ; // // nothing special happened, add up energy loss