...
create a macro file calle mymacro.macro
Code Block |
---|
/lcio/PDGFlag true |
...
/lcio/filename myparticlegun.slcio |
...
/run/initialize |
...
/generator/select gun |
...
/gun/particle e- |
...
/gun/position 0 0 0 |
...
/gun/direction 0. 1. 0 |
...
/gun/energy |
...
10 GeV |
...
/run/beamOn 100 |
the execute this with
Code Block | ||
---|---|---|
| ||
$SLIC/build/bin/slic -g ../lcsim/LCDetectors/detectors/sidloi3/sidloi3.lcdd -m mymacro.macro |
this will generate a file with 100 10 GeV electrons fired at 90 degrees in the sidloi3 detector version
StDHEP
get an example stdhep file from the SLAC FTP server
...