3 # Generate events using a non-trivial GDML geometry.
6 OUTPUT=100TestGDML.root
8 if [ -f ${OUTPUT} ]; then
12 cat > 100TestGDML.mac <<EOF
13 #######################################
14 # Set the hit segment.
15 #######################################
16 /edep/hitLength LArTracker 1.0 mm
19 # Create the first particle source. This source will be used to
20 # specify the position of the vertex. The any of the GPS direction
21 # and energy commands can be used.
25 # This generates the position of the particle gun. It can be
26 # used for the other particle guns to create a multi particle event. The
27 # /gps/position command must come first.
28 /gps/position 0.0 0.0 0.0 m
35 # This generates the direction of the muon. This aims
36 # the particle downstream with the directions uniformly distributed in
37 # a 10 deg cone around the Z axis.
42 /generator/count/fixed/number 300
43 /generator/count/set fixed
48 edep-sim -o ${OUTPUT} -g ${EDEP_ROOT}/inputs/example.gdml \