Rev | Line | |
---|
[807] | 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 (IDEBUG.NE.0) CALL GPGKIN |
---|
| 16 | IF ((ISWIT(1).EQ.1).AND.(CHARGE.NE.0.)) CALL GSXYZ |
---|
| 17 | IF (ISWIT(1).EQ.2) CALL GSXYZ |
---|
| 18 | * |
---|
| 19 | * *** Something generated ? |
---|
| 20 | IF(NGKINE.GT.0) CALL GSKING(0) |
---|
| 21 | * |
---|
| 22 | * *** Energy deposited |
---|
| 23 | ETOT = ETOT + DESTEP |
---|
| 24 | * |
---|
| 25 | * *** count number of steps |
---|
| 26 | IF (CHARGE.NE.0.) THEN |
---|
| 27 | NSTEP1 = NSTEP1 + 1 |
---|
| 28 | NSTRK1 = NSTRK1 + 1 |
---|
| 29 | ELSE |
---|
| 30 | NSTEP0 = NSTEP0 + 1 |
---|
| 31 | NSTRK0 = NSTRK0 + 1 |
---|
| 32 | ENDIF |
---|
| 33 | * |
---|
| 34 | * *** count nb of invoked processes |
---|
| 35 | IF (NMEC.GT.0) THEN |
---|
| 36 | DO IM = 1,NMEC |
---|
| 37 | IPROC = LMEC(IM) |
---|
| 38 | IF (IPROC.EQ.21) IPROC = 12 |
---|
| 39 | IF (IPROC.LE.12) NBCALL(IPROC) = NBCALL(IPROC)+1 |
---|
| 40 | ENDDO |
---|
| 41 | ENDIF |
---|
| 42 | * |
---|
| 43 | * *** step size of primary particle |
---|
| 44 | IF ((ITRA.EQ.1).AND.(ISTAK.EQ.0)) CALL HFILL (3,STEP*10,0.,1.) |
---|
| 45 | * |
---|
| 46 | END |
---|
Note: See
TracBrowser
for help on using the repository browser.