diff --git a/macros/CCEScan/batch/recomputeRatios.sh b/macros/CCEScan/batch/recomputeRatios.sh new file mode 100644 index 0000000..94485c6 --- /dev/null +++ b/macros/CCEScan/batch/recomputeRatios.sh @@ -0,0 +1,15 @@ +#!/bin/bash +swsource=$HOME/STAging/macros/CCEScan +scripts=$swsource/batch +logs=/disk/data1/hep/elena/logs/ST/CCEScan + +vals=(3 5 7) +for val in "${vals[@]}" +do + echo " Ratio fit for TT val " $val + ${swsource}/ratioFit_spline -b -d TT -l TTaU -v ${val} +done + +val=7 +echo " Ratio fit for IT val " $val +${swsource}/ratioFit_spline -b -d IT -l T3X2 -v ${val} 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 diff --git a/macros/CCEScan/ratioFit_spline.C b/macros/CCEScan/ratioFit_spline.C index ade1271..3d921e6 100755 --- a/macros/CCEScan/ratioFit_spline.C +++ b/macros/CCEScan/ratioFit_spline.C @@ -382,7 +382,7 @@ maxX = 250.0; } - double maxY = 100.0; // 50.0; + double maxY = 75.0; // 50.0; mg_volt->Draw("A"); mg_volt->GetXaxis()->SetLimits(0.0,maxX); diff --git a/macros/CCEScan/voltageFit_spline.C b/macros/CCEScan/voltageFit_spline.C index 1f0c5df..fe6be51 100755 --- a/macros/CCEScan/voltageFit_spline.C +++ b/macros/CCEScan/voltageFit_spline.C @@ -477,7 +477,7 @@ maxX = 250.0; } - double maxY = 100.0; // 50.0; + double maxY = 75.0; // 50.0; mg_volt->Draw("A"); mg_volt->GetXaxis()->SetLimits(0.0,maxX);