Line | |
---|
1 | |
---|
2 | SUBROUTINE GUSTEP |
---|
3 | * |
---|
4 | * User routine called at the end of each tracking step |
---|
5 | * |
---|
6 | #include "geant321/gcflag.inc" |
---|
7 | #include "geant321/gckine.inc" |
---|
8 | #include "geant321/gcking.inc" |
---|
9 | #include "geant321/gctrak.inc" |
---|
10 | #include "celoss.inc" |
---|
11 | * |
---|
12 | * |
---|
13 | * *** Debug event and store tracks for drawing |
---|
14 | IF (IDEBUG.NE.0) CALL GPCXYZ |
---|
15 | IF ((ISWIT(1).EQ.1).AND.(CHARGE.NE.0.)) CALL GSXYZ |
---|
16 | IF (ISWIT(1).EQ.2) CALL GSXYZ |
---|
17 | * |
---|
18 | * *** Something generated ? |
---|
19 | IF(NGKINE.GT.0) CALL GSKING(0) |
---|
20 | * |
---|
21 | * *** Energy deposited |
---|
22 | IF(DESTEP.GT.0.) ETOT = ETOT + DESTEP |
---|
23 | * |
---|
24 | END |
---|
Note: See
TracBrowser
for help on using the repository browser.