diff --git a/macros/CCEScan/batch/runVoltage.sh b/macros/CCEScan/batch/runVoltage.sh new file mode 100644 index 0000000..9468d2b --- /dev/null +++ b/macros/CCEScan/batch/runVoltage.sh @@ -0,0 +1,115 @@ +#!/bin/bash +swsource=$HOME/STAging/macros/CCEScan +scripts=$swsource/batch +logs=/disk/data1/hep/elena/logs/ST/CCEScan + +vals=(3 5 7) +rads=(75 45 40) + +echo "" +echo "" +echo "" +echo "" +echo "" +echo " Running TT! " +echo "" +echo "" +echo "" +echo "" +echo "" + +for fill in `cat $swsource/TEMP_Fills.dat` +do + echo " Running fill "$fill + for sector in `cat $swsource/TTsectors.dat` + do + echo " Sector "$sector + for val in "${vals[@]}" + do + echo " Voltage fit (SPLINE) " + ${swsource}/voltageFit_spline -b -d TT -l TTaU -s ${sector} -f ${fill} -v ${val} + done + done +done + + +echo "" +echo "" +echo "" +echo "" +echo "" +echo " Running TT inner sectors! " +echo "" +echo "" +echo "" +echo "" +echo "" + +for fill in `cat $swsource/Fills.dat` +do + echo " Running fill "$fill + for sector in `cat $swsource/TTinner.dat` + do + echo " Sector "$sector + for val in "${vals[@]}" + do + for rad in "${rads[@]}" + do + echo " Voltage fit (SPLINE) " + ${swsource}/voltageFit_spline -b -d TT -l TTaU -s ${sector} -f ${fill} -v ${val} -r ${rad} + done + done + done +done + + + +echo "" +echo "" +echo "" +echo "" +echo "" +echo " Running IT! " +echo "" +echo "" +echo "" +echo "" +echo "" + +for fill in `cat $swsource/Fills.dat` +do + echo " Running fill "$fill + for sector in `cat $swsource/ITsectors.dat` + do + echo " Sector "$sector + val=7 + echo " Voltage fit (SPLINE) " + ${swsource}/voltageFit_spline -b -d IT -l T3X2 -s ${sector} -f ${fill} -v ${val} + done +done + + +echo "" +echo "" +echo "" +echo "" +echo "" +echo " Running IT inner sectors! " +echo "" +echo "" +echo "" +echo "" +echo "" + +for fill in `cat $swsource/Fills.dat` +do + echo " Running fill "$fill + for sector in `cat $swsource/ITinner.dat` + do + echo " Sector "$sector + val=7 + rad=175 + echo " Voltage fit (SPLINE) " + ${swsource}/voltageFit_spline -b -d IT -l T3X2 -s ${sector} -f ${fill} -v ${val} -r ${rad} + done +done