3 # Export an MC geometry to a geometry file. This prepares a file that
4 # is ready to be used in the reconstruction.
6 # USAGE: ./edepsim-export-geometry.sh <control-file> <1.0> ...
8 # Make a temporary macro file.
9 MACRO=`mktemp -t edepsim.XXXXXXXXXX` || exit 1
13 # write the control lines.
16 if [ x$CTRL == x ]; then
22 if [ x$CTRLVERS == x ]; then
23 echo Missing control file
28 haveControl=${haveControl}"-"${CTRL}
30 echo /edep/control ${CTRL} ${CTRLVERS} >> $MACRO
34 if [ x$haveControl == x ]; then
35 echo Missing control file
40 OUTPUT=export-geometry${haveControl}.root
42 # /edep/validateGeometry