#!/bin/sh # Tell simulation macro that we run it via script. export SCRIPT=yes # Path to your build directory. cd /Users/andrey/Projects/cbm/workshop2011/build . ./config.sh cd - # First parameter to this scrip is STS geometry export STS_GEOM=$1 # Second parameter to script is STS digitization parameters export STS_DIGI=$2 # Third parameter to script is output directory name export OUTPUT_DIR=$3 rm -r $OUTPUT_DIR mkdir $OUTPUT_DIR # Fourth parameter to script is result directory name export RESULTS_DIR=$4 rm -r $RESULTS_DIR mkdir $RESULTS_DIR # Run reconstruction and simulation macro root -b -q -l "$VMCWORKDIR/macro/tutorial/tracking/tut1/global_sim.C()" root -b -q -l "$VMCWORKDIR/macro/tutorial/tracking/tut1/global_reco.C()" export SCRIPT=no