+ if [ "$RAW" -eq 1 ]; then
+ if [ "$REALISTIC" -eq 0 ]; then # we can not move for realistic simulations as we need e.g. kinematics to propagate the simulated vertex to the reco.
+ echo "Moving generated files to $SIMDIR"
+ mv $OUTDIR/*QA*.root $OUTDIR/*.log $OUTDIR/$SIMDIR
+ mv $OUTDIR/MUON*.root $OUTDIR/TrackRefs*.root $OUTDIR/$SIMDIR
+ mv $OUTDIR/Kinematics*.root $OUTDIR/galice.root $OUTDIR/$SIMDIR
+ fi
+ else
+ echo "Copying generated files to $SIMDIR"
+ cp $OUTDIR/*QA*.root $OUTDIR/*.log $OUTDIR/$SIMDIR
+ cp $OUTDIR/MUON*.root $OUTDIR/Kinematics*.root $OUTDIR/galice.root $OUTDIR/TrackRefs*.root $OUTDIR/$SIMDIR
+ fi
+
+ # save geometry file in a separate directory
+ if [ "$MC" = "g3" ]; then
+ rm -fr $ALICE_ROOT/MUON/geometry
+ mkdir $ALICE_ROOT/MUON/geometry
+ cp $OUTDIR/geometry.root $ALICE_ROOT/MUON/geometry
+ fi
+
+ # copy input geometry file in a current directory
+ if [ "$MC" = "g4" ]; then
+ cp $ALICE_ROOT/MUON/geometry/geometry.root $OUTDIR
+ fi
+
+ cp $OUTDIR/geometry.root $OUTDIR/$SIMDIR/geometry.root
+