In order to run hgeant, a geaini.dat input file is needed. This input file contains:
A list of GEANT and user keywords ended with the keyword STOP.
Media and geometry files ( *.geo )
A list of hit definition files ( *rich*.hit, *mdc*.hit, *shower*.hit, *tof*.hit ).
The name of the field-map file ( *.map ).
Event files ( *.evt ). This is the input file which have been generated with pluto or UrQMD.
A list of hit ntuples ( *kine*.tup, *rich*.tup, *mdc*.tup, *shower*.tup, *tof*.tup ).
The output ROOT file holding the event tree (*.root).
All HGeant input/output is in units of mm, MeV and ns !
The following user keywords are defined in hgeant:
j = -1 : open HBOOK ntuple files specified by .tup key in geaini.dat = 0 : no output to file
= 1 : open ROOT file specified by .root key in geaini.dat (default)
jver(1)=0 : emission from (0,0,0) vertex (default)
=1 : emission from (x,y,z) vertex
=2 : emission from segmented target
=3 : emission from cubic volume
=4 : emission from cylindrical volume jver(2)=0 : emission from sharp z =1 : volume with uniform z distribution =2 : volume with exponential z distribution =3 : volume with discrete z distribution
jver(3)=0 : emission from sharp x,y =1 : volume with uniform x,y distribution
=2 : volume with exponential x,y distribution
sig(X) sig(Y) Ebeam sig(Ebeam) X Y (in mm,mm,MeV,MeV,mm,mm)
pmcf=1: read events from .evt event files default=(1)
pmck=1: get event from Root interpreter via passEvent() default=(0)
iswit(1)>0 : track only particles with ID=iswit(1)
iswit(1)<0 : do not track particles with ID= iswit(1)
There are three ways to run HGeant: interactively, in the background, or as a batch job.
to your working directory. Type
it will appear to your monitor the following bar:
For exam. if you make click in Draw Color it will appear the following plot:
if you click the P Z Frames you will see the following plot:
hgeant -b -c -f geaini.dat >>test.out