Rev | Line | |
---|
[807] | 1 | |
---|
| 2 | SUBROUTINE GUTREV |
---|
| 3 | * |
---|
| 4 | * User routine to control tracking of one event |
---|
| 5 | * Called by GRUN |
---|
| 6 | * |
---|
| 7 | #include "celoss.inc" |
---|
| 8 | #include "histo.inc" |
---|
| 9 | * |
---|
| 10 | * *** par event initialisations |
---|
| 11 | Eevent = 0. |
---|
| 12 | * |
---|
| 13 | * *** process the event |
---|
| 14 | CALL GTREVE |
---|
| 15 | * |
---|
| 16 | * *** returns if no energy deposition |
---|
| 17 | if (Eevent.le.0.) return |
---|
| 18 | * |
---|
| 19 | * *** histo: total energy deposited |
---|
| 20 | ih = 2 |
---|
| 21 | if (histo(ih)) call hfill (ih,Eevent/histUnit(ih),0.,1.) |
---|
| 22 | * |
---|
| 23 | * *** cumul energy deposited |
---|
| 24 | Etot = Etot + Eevent |
---|
| 25 | Etot2 = Etot2 + Eevent*Eevent |
---|
| 26 | * |
---|
| 27 | END |
---|
Note: See
TracBrowser
for help on using the repository browser.