Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-02-21 23:14:25

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