From 2468d1a9e848392e87dee0528624a6ee4dd47176 Mon Sep 17 00:00:00 2001 From: martinez Date: Mon, 10 Mar 2003 14:23:25 +0000 Subject: [PATCH] Avoiding hits with eloss=0 --- MUON/AliMUONv3.cxx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/MUON/AliMUONv3.cxx b/MUON/AliMUONv3.cxx index c91261bfb43..2a589504e30 100644 --- a/MUON/AliMUONv3.cxx +++ b/MUON/AliMUONv3.cxx @@ -16,6 +16,9 @@ // AliMUONv3 Addapted for AliMUONv1 // This was the last revision of AliMUONv1 // $Log$ +// Revision 1.1 2003/02/07 15:40:53 morsch +// New class for testing new Stepmanager added. (G. Martinez) +// // Revision 1.40 2003/01/28 13:21:06 morsch // Improved response simulation for station 1. // (M. Mac Cormick, I. Hrivnacova, D. Guez) @@ -111,9 +114,11 @@ void AliMUONv3::StepManager() // momentum loss and steplength in last step destep = gMC->Edep(); step = gMC->TrackStep(); - // new hit - new(lhits[fNhits++]) - AliMUONHit(fIshunt, gAlice->CurrentTrack(), iChamber, ipart, pos.X(), pos.Y(), pos.Z(), tof, mom.P(), theta, phi, step, destep); + //new hit + if (destep>0.) new(lhits[fNhits++]) + AliMUONHit(fIshunt, gAlice->CurrentTrack(), iChamber, ipart, + pos.X(), pos.Y(), pos.Z(), tof, mom.P(), + theta, phi, step, destep); } -- 2.39.3