#!/bin/tcsh -f

# This script is used to run the simulation for a given map.
# The run_all.csh script was used to actually generate the map.

hdgeant
mcsmear hdgeant.hddm

hd_root -PPLUGINS=phys_tree --nthreads=1 hdgeant_smeared.hddm \
	-PDEFTAG:DTrackFitter=ALT1 -o hd_root_ALT1.root \
	-PBFIELD_MAP=Magnets/Solenoid/solenoid_1500_poisson_`basename $PWD`

hd_root -PPLUGINS=phys_tree --nthreads=1 hdgeant_smeared.hddm \
	-PDEFTAG:DTrackFitter=KalmanSIMD -o hd_root_KalmanSIMD.root \
	-PBFIELD_MAP=Magnets/Solenoid/solenoid_1500_poisson_`basename $PWD`

root -q -b ../pres.C'("'"ALT1"'")'
root -q -b ../pres.C'("'"KalmanSIMD"'")'

