First perform CLAS setup (e.g. on the CEBAF HP cluster):
source /clas/cebafb/u1/etc/profile/.clascshrc(This can be done in your own .cshrc file.) Then type:
gsim_bator
$CTEST_EXE/gsim_batto start the production or test batch versions of GSIM. The test version is more up to date, the production version is more stable (use the test version for now, 10/95...EJW). After the prompt:
CLAS_FFGO I: enter FFREAD data cards now:enter the FFREAD cards for the run (see GEANT manual), e.g:
trig 100to generate 100 events using the default kinematics generator. By default, all physics processes are turned on, full showers are generated in the calorimeter, etc. The BOS/FPACK event output file created is named gsimout.evt. Note that the start counter geometry is NOT generated by default (see ffread section if you want the start counter).
stop
The interactive version is started with:
gsim_intor
$CTEST_EXE/gsim_intEnter 1 for the terminal type (assuming the DISPLAY environment variable is set properly). Then proceed as for the batch version. See the GEANT manual for numerous drawing, run control, and data display commands.
Command line switches can simplify running GSIM. The above procedure could be shortened to:
gsim_bat -noffread -trig 100or
gsim_int -noffread -trig 100Finally, type:
gsim_bat -helpto view the GSIM help file ($CLAS_DOC/gsim.hlp), which lists numerous command line options, additional CLAS ffread keys, which environment variables are used, etc. This file will always be kept up to date. See also the appendices on command line flags, environment variables, kinematics generator options, ffread flags, and switch usage.