source: trunk/examples/extended/electromagnetic/TestEm3/geant3/src/gutrak.F @ 1309

Last change on this file since 1309 was 807, checked in by garnier, 16 years ago

update

File size: 878 bytes
Line 
1      SUBROUTINE GUTRAK
2*
3*     User routine to control tracking of one track
4*     Called by GTREVE
5*
6#include "geant321/gckine.inc"
7#include "geant321/gconst.inc"
8#include "geant321/gctrak.inc"
9#include "geant321/gctmed.inc"
10#include "geant321/gcvolu.inc"
11#include "calor.inc"
12#include "celoss.inc"
13*
14* *** initialisation of Eflow for primary track
15*
16      if ((itra.eq.1).and.(istak.eq.0)) then
17*       unique Id for absorber+layer
18        Idnow = 1
19        if (numed.le.NbAbsor) then
20          layer = number(nlevel-1)
21          Idnow = NbAbsor*(layer-1) + numed
22        endif
23*
24        Eflow = gekin
25        if (ipart.eq.2) Eflow = gekin + 2*emass
26*
27        do k=1,Idnow
28          EnerFlow(Idnow) = EnerFlow(Idnow) + Eflow
29        enddo
30      endif           
31                                                                                             
32      CALL GTRACK
33*
34      END
Note: See TracBrowser for help on using the repository browser.