Geant4  9.6.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
uhinit.F
Go to the documentation of this file.
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