File indexing completed on 2024-04-06 12:28:24
0001
0002
0003 dir=${1:-plots}
0004 outdir=${dir}/cmsswval-10mu
0005 base=SKL-SP_CMSSW_10mu
0006
0007 echo "Moving plots and text files locally to ${outdir}"
0008 for seed in SimSeed CMSSeed
0009 do
0010 for region in ECN2 ECN1 BRL ECP1 ECP2 FullDet
0011 do
0012 fulldir=${outdir}/${seed}/${region}
0013 mkdir -p ${fulldir}
0014
0015 srbase=${seed}_${region}
0016 mv ${base}_${srbase}_*.png ${fulldir}
0017 for build in BH STD CE
0018 do
0019 vbase=validation_${base}_${srbase}_${build}
0020 mv ${vbase}/totals_${vbase}.txt ${fulldir}
0021 done
0022 done
0023 sdir=${outdir}/${seed}
0024 mv ${sdir}/FullDet/*png ${sdir}/FullDet/*txt ${sdir}
0025 rm -rf ${sdir}/FullDet
0026 done
0027
0028 host=kmcdermo@lxplus.cern.ch
0029 whost=${host}":~/www"
0030 echo "Moving plots and text files remotely to ${whost}"
0031 scp -r ${dir} ${whost}
0032
0033 echo "Executing remotely ./makereadable.sh ${outdir}"
0034 ssh ${host} bash -c "'
0035 cd www
0036 ./makereadable.sh ${outdir}
0037 exit
0038 '"
0039
0040 echo "Removing local files"
0041 for seed in SimSeed CMSSeed
0042 do
0043 for region in ECN2 ECN1 BRL ECP1 ECP2 FullDet
0044 do
0045 srbase=${seed}_${region}
0046 for build in BH STD CE
0047 do
0048 testbase=${base}_${srbase}_${build}
0049 rm -rf validation_${testbase}
0050 rm -rf log_${testbase}_NVU8int_NTH24_val.txt
0051 done
0052 done
0053 done
0054
0055 rm -rf ${dir}