77
88usage ()
99{
10- cat << - EOF
11- Usage: $0 [OPTIONS]
10+ cat << EOF
11+ Usage: $0 [OPTIONS]
1212
13- Options:
13+ Options:
1414
15- -c,--cmdline COMMAND Command line
16- -s,--seed SEED Random number seed ($seed )
17- -n,--nevents EVENTS Number of events ($nev )
18- -o,--output OUTPUT Output prefix ($out )
19- -- Rest of command line sent to o2-sim
15+ -c,--cmdline COMMAND Command line
16+ -s,--seed SEED Random number seed ($seed )
17+ -n,--nevents EVENTS Number of events ($nev )
18+ -o,--output OUTPUT Output prefix ($out )
19+ -- Rest of command line sent to o2-sim
2020
21- COMMAND must be quoted if it contains spaces or other special
22- characters
21+ COMMAND must be quoted if it contains spaces or other special
22+ characters
2323
24- Below follows the help output of o2-sim
24+ Below follows the help output of o2-sim
2525
26- EOF
26+ EOF
2727}
2828
2929while test $# -gt 0 ; do
3030 case $1 in
31- -c|--cmdline) cmd=" $2 " ; shift ;;
32- -s|--seed) seed=$2 ; shift ;;
33- -n|--nevents) nev=$2 ; shift ;;
34- -o|--output) out=$2 ; shift ;;
35- -h|--help) usage; o2-sim --help full ; exit 0 ;;
36- --) shift ; break ;;
37- * ) echo " Unknown option '$1 ', did you forget '--'?" > /dev/stderr
38- exit 1
39- ;;
31+ -c|--cmdline) cmd=" $2 " ; shift ;;
32+ -s|--seed) seed=$2 ; shift ;;
33+ -n|--nevents) nev=$2 ; shift ;;
34+ -o|--output) out=$2 ; shift ;;
35+ -h|--help) usage; o2-sim --help full ; exit 0 ;;
36+ --) shift ; break ;;
37+ * ) echo " Unknown option '$1 ', did you forget '--'?" > /dev/stderr
38+ exit 1
39+ ;;
4040 esac
4141 shift
4242done
@@ -46,8 +46,6 @@ if test "x$out" = "x" ; then
4646fi
4747out=` echo " $out " | tr ' ' ' _' `
4848
49- export VMCWORKDIR=${O2_ROOT} /share
49+ export VMCWORKDIR=${O2_ROOT} /share
5050o2-sim -g hepmc --configKeyValues " HepMC.progCmd=$cmd " \
5151 --outPrefix " $out " --seed $seed --nEvents $nev $@
52-
53-
0 commit comments