skdetsim
Kate Scholberg's SKDetSim page.
to build on Linux: use COMPILE.sh
to build on solaris: (on sukap) source /home/sk2mc/skdetsim.cshrc
gmake all
gmake skdetsim
to run: first, you may have to source SourceMe.cshrc (not sure why yet)
skdetsim.sh ap_example.card test.zbs particles.kin
Note: skdetsim does not like to run in the background.
ap_example.card specifies things like detector geometry and the number of events to simulate.
The official .card files are of the form skx_odtune.card.
It has useful comments and is relatively straightforward to modify.
test.zbs is the output file.
(You can open a .zbs file with superscan.)
particles.kin is a vector file that you must supply.
This is what your .kin will look like:
$ begin
$ vertex 1414.3 1364.2 -1567.1 1.60328E+02
$ track 13 4123.9287 -0.60817 -0.10971 0.78619 0
$ end
$ begin
$ vertex 1030.3 0.8 -2070.0 7.77418E+02
$ track 13 128747.0391 -0.58566 -0.13010 0.80004 0
$ end
There are two events here. They are parsed with $ begin and $ end statements.
There are four numbers following the $ vertex statement.
The first three numbers are (x,y,z) in SK coordinates measured from the center of the detector in cm.
The fourth number is time in seconds.
There are six numbers following the $ track statement.
The first is PID or particle ID #. (13 is a muon, -13 is an anti-muon, and 14 is a muon neutrino.)
Next is energy in MeV.
The next three numbers are a directional unit vector.
The last number identifies, which tracks go with which vertices. (If there is only one track, the number is zero.)
Back to Resources
ethrane@u.washington.edu