quick guide to do some star simulation
- on pdsf or rcf, type
staf -w 1
- turn on debug mode, type
debug on
- load geometry and other settings by typing
detp geometry [some settings]
make geometry
(may want to try detp geometry help first to see available settings)
- show subsystems by typing
display detm
use left mouse button to navigate. click right mouse
button (or choose Quit) will get you back to command mode
- draw some detector subsystem
draw TPCE
or optionally define cuts
dcut TPCE z 1 10 10
(order: [volume] [axis] [cut] [horiz origin] [vert origin]
[horiz scale] [vert scale]) the example above will give a view of the TPC
along the z axis, with a cut at z=0, and put the origin at coordinate (10,
10) of the window.
to draw everything:
/geant/drawing/draw cave 70 30
30 10 10 0.02 0.02
(order: [volume] [theta] [phi] [psi] [horiz origin] [vert
origin] [horiz scale] [vert scale])
- generate some particle tracks, type
gkine 2 8 0.1 1 -1 1
(the order is [# tracks] [particle type] [low pT] [hi pT] [lo rapidity] [hi rapidity])
(look up pid here)
trigger event,
trig
finally, detect hits,
dhits
an output example
that's it. have some (productive) fun!
some useful paw commands:
clr: clear graphics window
shell [some command]: run shell command without exiting
/picture/print file=filename.[gif, ps, eps, or tex]: save
the graphic file
STAR
gstar page
(it now looks like staf has been replaced by starsim)