File indexing completed on 2024-04-06 12:28:24
0001
0002
0003
0004
0005
0006
0007 dir=${1:-"benchmarks"}
0008 suite=${2:-"forConf"}
0009 useARCH=${3:-0}
0010 whichcands=${4:-"build"}
0011
0012
0013
0014
0015 source xeon_scripts/common-variables.sh ${suite} ${useARCH}
0016 source xeon_scripts/init-env.sh
0017 export MIMI="CE mimi"
0018 declare -a val_builds=(MIMI)
0019
0020
0021
0022
0023
0024
0025 simdir=("SIMVAL_MTV_iter4" "SIMVAL_MTV_SEED_iter4" "SIMVAL_MTV_iter22" "SIMVAL_MTV_SEED_iter22" "SIMVAL_MTV_iter23" "SIMVAL_MTV_SEED_iter23" "SIMVAL_MTV_iter5" "SIMVAL_MTV_SEED_iter5" "SIMVAL_MTV_iter24" "SIMVAL_MTV_SEED_iter24" "SIMVAL_MTV_iter7" "SIMVAL_MTV_SEED_iter7" "SIMVAL_MTV_iter8" "SIMVAL_MTV_SEED_iter8" "SIMVAL_MTV_iter9" "SIMVAL_MTV_SEED_iter9" "SIMVAL_MTV_iter10" "SIMVAL_MTV_SEED_iter10" "SIMVAL_MTV_iter6" "SIMVAL_MTV_SEED_iter6" )
0026 simval=("SIMVAL_iter4" "SIMVALSEED_iter4" "SIMVAL_iter22" "SIMVALSEED_iter22" "SIMVAL_iter23" "SIMVALSEED_iter23" "SIMVAL_iter5" "SIMVALSEED_iter5" "SIMVAL_iter24" "SIMVALSEED_iter24" "SIMVAL_iter7" "SIMVALSEED_iter7" "SIMVAL_iter8" "SIMVALSEED_iter8" "SIMVAL_iter9" "SIMVALSEED_iter9" "SIMVAL_iter10" "SIMVALSEED_iter10" "SIMVAL_iter6" "SIMVALSEED_iter6" )
0027
0028 for((i=0;i<${
0029
0030 mkdir -p ${dir}/${simdir[i]}
0031 mkdir -p ${dir}/${simdir[i]}/logx
0032 mkdir -p ${dir}/${simdir[i]}/diffs
0033 mkdir -p ${dir}/${simdir[i]}/nHits
0034 mkdir -p ${dir}/${simdir[i]}/score
0035
0036
0037 for build in "${val_builds[@]}"
0038 do echo ${!build} | while read -r bN bO
0039 do
0040 vBase=${val_arch}_${sample}_${bN}
0041 mv "validation"_${vBase}_${simval[i]}/"totals_validation"_${vBase}_${simval[i]}.txt ${dir}/${simdir[i]}
0042 done
0043 done
0044
0045
0046 vBase=${val_arch}_${sample}_CMSSW
0047 mv validation_${vBase}_${simval[i]}/totals_validation_${vBase}_${simval[i]}.txt ${dir}/${simdir[i]}
0048
0049
0050 for rate in eff ineff_brl ineff_trans ineff_ec dr fr
0051 do
0052 for pt in 0p0 0p9 2p0
0053 do
0054 for var in phi eta nLayers
0055 do
0056 mv ${val_arch}_${sample}_${rate}_${var}_${whichcands}_"pt"${pt}_${simval[i]}.png ${dir}/${simdir[i]}
0057 done
0058 done
0059
0060
0061 for var in pt pt_zoom
0062 do
0063 mv ${val_arch}_${sample}_${rate}_${var}_${whichcands}_"pt0p0"_${simval[i]}.png ${dir}/${simdir[i]}
0064 done
0065
0066 mv ${val_arch}_${sample}_${rate}_"pt_logx"_${whichcands}_"pt0p0"_${simval[i]}.png ${dir}/${simdir[i]}/logx
0067 done
0068
0069
0070 for coll in bestmatch allmatch
0071 do
0072 for var in nHits invpt phi eta
0073 do
0074 for pt in 0p0 0p9 2p0
0075 do
0076 mv ${val_arch}_${sample}_${coll}_"d"${var}_${whichcands}_"pt"${pt}_${simval[i]}.png ${dir}/${simdir[i]}/diffs
0077 done
0078 done
0079 done
0080
0081
0082 for coll in allreco fake bestmatch allmatch
0083 do
0084 for pt in 0p0 0p9 2p0
0085 do
0086 for qual in nHits score
0087 do
0088 mv ${val_arch}_${sample}_${coll}_${qual}_${whichcands}_"pt"${pt}_${simval[i]}.png ${dir}/${simdir[i]}/${qual}
0089 done
0090 done
0091 done
0092 done
0093
0094
0095 echo "Finished collecting benchmark plots into ${dir}!"
0096
0097 find ${dir} -mindepth 0 -type d -exec cp web/index.php {} \;
0098
0099 rm -rf log_*.txt
0100 rm -rf *.root
0101 rm -rf *.png
0102 rm -rf validation_*
0103