Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
edep-sim
test
testGeometry.sh
Go to the documentation of this file.
1
#!/bin/bash
2
3
#!/bin/sh
4
5
OUTPUT=testGeometry.root
6
7
if [ -f ${OUTPUT} ]; then
8
rm ${OUTPUT}
9
fi
10
11
MACRO=$(mktemp -t detsim.XXXXXXXXXX) || exit 1
12
cat > ${MACRO} <<EOF
13
/gps/particle mu+
14
/gps/energy 100 MeV
15
/gps/position 0.0 0.0 -15.0 cm
16
/gps/pos/type Volume
17
/gps/ang/type iso
18
EOF
19
20
edep-sim -o ${OUTPUT} -C -e 1 -u ${MACRO}
21
Generated by
1.8.11