diff --git a/macros/CCEScan/batch/submitLandau.sh b/macros/CCEScan/batch/submitLandau.sh index abb4a30..92fa165 100644 --- a/macros/CCEScan/batch/submitLandau.sh +++ b/macros/CCEScan/batch/submitLandau.sh @@ -9,69 +9,67 @@ rads=(75 45 40) echo "Backup file!" -echo "cp /disk/data1/hep/elena/data/ST/Aging/CCEScan.root /disk/data1/hep/elena/data/ST/Aging/CCEScan_backup_Jan16.root" -cp /disk/data1/hep/elena/data/ST/Aging/CCEScan.root /disk/data1/hep/elena/data/ST/Aging/CCEScan_backup_Jan16.root +echo "cp /disk/data1/hep/elena/data/ST/Aging/CCEScan.root /disk/data1/hep/elena/data/ST/Aging/CCEScan_backup_May3.root" +cp /disk/data1/hep/elena/data/ST/Aging/CCEScan.root /disk/data1/hep/elena/data/ST/Aging/CCEScan_backup_May3.root +onefill=(4856) -#echo "Submitting TT:" -#onefill=(4643) +echo "Submitting TT:" #for fill in `cat $swsource/Fills.dat` -##for fill in $onefill -#do -# echo " Submitting fill "$fill -# for sector in `cat $swsource/TTsectors.dat` -# do -# echo " Sector "$sector -# scriptname="landauFit_TT_f${fill}_s${sector}_allSteps_allVal" -# cp $scripts/base.sh $scripts/temp_scripts/${scriptname}.sh -# for i in {0..65} -# do -# for val in "${vals[@]}" -# do -# echo "${swsource}/landauFit -d TT -l TTaU -s ${sector} -f ${fill} -c ${i} -v ${val} -b -ss" >> $scripts/temp_scripts/${scriptname}.sh -# done -# done -# qsub -l cput=75000 $scripts/temp_scripts/${scriptname}.sh -o ${logs}/${scriptname}.log -e ${logs}/${scriptname}.log -j oe -# #sleep 2 -# done -#done -# -#echo "Submitting TT inner sectors:" +for fill in $onefill +do + echo " Submitting fill "$fill + for sector in `cat $swsource/TTsectors.dat` + do + echo " Sector "$sector + scriptname="landauFit_TT_f${fill}_s${sector}_allSteps_allVal" + cp $scripts/base.sh $scripts/temp_scripts/${scriptname}.sh + for i in {0..65} + do + for val in "${vals[@]}" + do + echo "${swsource}/landauFit -d TT -l TTaU -s ${sector} -f ${fill} -c ${i} -v ${val} -b -ss" >> $scripts/temp_scripts/${scriptname}.sh + done + done + qsub -l cput=75000 $scripts/temp_scripts/${scriptname}.sh -o ${logs}/${scriptname}.log -e ${logs}/${scriptname}.log -j oe + #sleep 2 + done +done + +echo "Submitting TT inner sectors:" #for fill in `cat $swsource/Fills.dat` -#onefill=(4643) -##for fill in $onefill -#do -# echo " Submitting fill "$fill -# for sector in `cat $swsource/TTinner.dat` -# do -# echo " Sector "$sector -# scriptname="landauFit_TTinner_f${fill}_s${sector}_allSteps_allVal_allRads" -# cp $scripts/base.sh $scripts/temp_scripts/${scriptname}.sh -# for i in {0..65} -# do -# for val in "${vals[@]}" -# do -# for rad in "${rads[@]}" -# do -# echo "${swsource}/landauFit -d TT -l TTaU -s ${sector} -f ${fill} -c ${i} -v ${val} -r ${rad} -b -ss" >> $scripts/temp_scripts/${scriptname}.sh -# done -# done -# done -# qsub -l cput=225000 $scripts/temp_scripts/${scriptname}.sh -o ${logs}/${scriptname}.log -e ${logs}/${scriptname}.log -j oe -# #sleep 2 -# done -#done -# +for fill in $onefill +do + echo " Submitting fill "$fill + for sector in `cat $swsource/TTinner.dat` + do + echo " Sector "$sector + scriptname="landauFit_TTinner_f${fill}_s${sector}_allSteps_allVal_allRads" + cp $scripts/base.sh $scripts/temp_scripts/${scriptname}.sh + for i in {0..65} + do + for val in "${vals[@]}" + do + for rad in "${rads[@]}" + do + echo "${swsource}/landauFit -d TT -l TTaU -s ${sector} -f ${fill} -c ${i} -v ${val} -r ${rad} -b -ss" >> $scripts/temp_scripts/${scriptname}.sh + done + done + done + qsub -l cput=225000 $scripts/temp_scripts/${scriptname}.sh -o ${logs}/${scriptname}.log -e ${logs}/${scriptname}.log -j oe + #sleep 2 + done +done -onefill=(4643) + echo "Submitting IT:" for sector in `cat $swsource/ITsectors.dat` do echo " Sector " $sector - #for fill in $onefill - for fill in `cat $swsource/Fills.dat` + for fill in $onefill + #for fill in `cat $swsource/Fills.dat` do echo " Fill "$fill val=7 @@ -91,8 +89,8 @@ for sector in `cat $swsource/ITinner.dat` do echo " Sector " $sector - #for fill in $onefill - for fill in `cat $swsource/Fills.dat` + for fill in $onefill + #for fill in `cat $swsource/Fills.dat` do echo " Fill "$fill val=7