]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Bug correction in StepManager :
authoregangler <egangler@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 18 Jan 2001 15:23:49 +0000 (15:23 +0000)
committeregangler <egangler@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 18 Jan 2001 15:23:49 +0000 (15:23 +0000)
Now the systematic offset with angle is cured

MUON/AliMUONv1.cxx

index 5cabc3cba37f1c7902cd2be8c92b3a5a89097515..6411d50f251345e39abaeef6e58009a58fb71da6 100644 (file)
@@ -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