* * $Id: gustep.F,v 1.1.1.1 1995/10/24 10:21:46 cernlib Exp $ * * $Log: gustep.F,v $ * Revision 1.1.1.1 1995/10/24 10:21:46 cernlib * Geant * * #include "geant321/pilot.h" *CMZ : 3.21/02 29/03/94 15.41.25 by S.Giani *-- Author : SUBROUTINE GUSTEP C. C. ****************************************************************** C. * * C. * User routine called at the end of each tracking step * C. * INWVOL is different from 0 when the track has reached * C. * a volume boundary * C. * ISTOP is different from 0 if the track has stopped * C. * * C. * ==>Called by : GTRACK * C. * * C. ****************************************************************** C. #include "geant321/gcflag.inc" #include "geant321/gckine.inc" #include "geant321/gcking.inc" #include "geant321/gctmed.inc" #include "geant321/gctrak.inc" #include "geant321/gcvolu.inc" C. C. ------------------------------------------------------------------ C. integer nfib character*4 cnames(15),cnamec(15),cnamec1(15) equivalence (names(1),cnames(1)) equivalence (namec(1),cnamec(1)) equivalence (namec1(1),cnamec1(1)) real path_length common /fiberstats/path_length(15) data path_length/15*0/ if (cnames(nlevel) .eq. 'CORE') then nfib = number(2) path_length(nfib) = path_length(nfib) + STEP endif call gdebug END