Rev | Line | |
---|
[807] | 1 | |
---|
| 2 | SUBROUTINE UHINIT |
---|
| 3 | * |
---|
| 4 | * To book the user's histograms |
---|
| 5 | * |
---|
| 6 | #include "histo.inc" |
---|
| 7 | #include "calor.inc" |
---|
| 8 | * |
---|
| 9 | character*50 title |
---|
| 10 | * |
---|
| 11 | if (idhist.gt.MaxHist) return |
---|
| 12 | * |
---|
| 13 | if (histo(idhist)) call hdelet(idhist) |
---|
| 14 | * |
---|
| 15 | if (idhist.lt.MaxAbs) |
---|
| 16 | + title = 'Edep in absorber '//char(ichar('0')+(idhist)) |
---|
| 17 | if ((idhist.gt.MaxAbs).and.(idhist.lt.2*MaxAbs)) |
---|
| 18 | + title = 'Edep long. profile in absorber ' |
---|
| 19 | + //char(ichar('0')+(idhist-MaxAbs))//' (MeV/event)' |
---|
| 20 | if (idhist.eq.(2*MaxAbs+1)) |
---|
| 21 | + title = 'energy flow (MeV/event)' |
---|
| 22 | if (idhist.eq.(2*MaxAbs+2)) |
---|
| 23 | + title = 'lateral energy leak (MeV/event)' |
---|
| 24 | * |
---|
| 25 | call hbook1(idhist,title,nbBins,valmin,valmax,0.) |
---|
| 26 | * |
---|
| 27 | histo (idhist) = .true. |
---|
| 28 | binWidth(idhist) = (valmax-valmin)/nbBins |
---|
| 29 | if (valunit.le.0.) valunit = 1. |
---|
| 30 | histUnit(idhist) = valunit |
---|
| 31 | * |
---|
| 32 | END |
---|
Note: See
TracBrowser
for help on using the repository browser.