Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:33:26

0001 #!/bin/tcsh
0002 
0003 #change release version : $1=release to validate, $2=reference release, $3=working directory (where is lacated yours CMSSW instances), $4=release name for DQM inputs to validate, $5=the same for reference DQM inputs
0004 valrel=$1
0005 refrel=$2
0006 workdir=$3
0007 valdir=$4
0008 refdir=$5
0009 
0010 mkdir TTbar_${valrel}_vs_${refrel}_Startup
0011 mkdir TTbar_${valrel}_vs_${refrel}_Startup_PU
0012 mkdir TTbar_${valrel}_vs_${refrel}_FastSim
0013 mkdir QCD_${valrel}_vs_${refrel}_Startup
0014 mkdir FastSim_TTbar_${valrel}_vs_TTbar_${valrel}
0015 
0016 cd TTbar_${valrel}_vs_${refrel}_Startup
0017 plotFactory.py -b -f ${workdir}/CMSSW_${valdir}/src/Validation/RecoB/test/BTagRelVal_TTbar_Startup_${valrel}.root -F ${workdir}/CMSSW_${refdir}/src/Validation/RecoB/test/BTagRelVal_TTbar_Startup_${refrel}.root -r ${valrel} -R ${refrel} -s TTbar_Startup -S TTbar_Startup
0018 cp /afs/cern.ch/cms/btag/www/validation/img/0_leg*.gif .
0019 mv 0_leg1.gif 0_leg4.gif
0020 for File in `ls ${valrel}_*_allTaggers*.gif`; do mv ${File} 1_${File}; done
0021 for File in `ls ${valrel}*jetPt*.gif`; do mv ${File} 2_${File}; done
0022 for File in `ls ${refrel}_*_allTaggers*.gif`; do mv ${File} 3_${File}; done
0023 for File in `ls ${valrel}*jetEta*.gif`; do mv ${File} 4_${File}; done
0024 cd ..
0025 
0026 cd TTbar_${valrel}_vs_${refrel}_Startup_PU
0027 plotFactory.py -b -f ${workdir}/CMSSW_${valdir}/src/Validation/RecoB/test/BTagRelVal_TTbar_Startup_PU_${valrel}.root -F ${workdir}/CMSSW_${refdir}/src/Validation/RecoB/test/BTagRelVal_TTbar_Startup_PU_${refrel}.root -r ${valrel} -R ${refrel} -s TTbar_Startup_PU -S TTbar_Startup_PU
0028 cp /afs/cern.ch/cms/btag/www/validation/img/0_leg*.gif .
0029 mv 0_leg1.gif 0_leg4.gif
0030 for File in `ls ${valrel}_*_allTaggers*.gif`; do mv ${File} 1_${File}; done
0031 for File in `ls ${valrel}*jetPt*.gif`; do mv ${File} 2_${File}; done
0032 for File in `ls ${refrel}_*_allTaggers*.gif`; do mv ${File} 3_${File}; done
0033 for File in `ls ${valrel}*jetEta*.gif`; do mv ${File} 4_${File}; done
0034 cd ..
0035 
0036 cd TTbar_${valrel}_vs_${refrel}_FastSim
0037 plotFactory.py -b -f ${workdir}/CMSSW_${valdir}/src/Validation/RecoB/test/BTagRelVal_TTbar_FastSim_${valrel}.root -F ${workdir}/CMSSW_${refdir}/src/Validation/RecoB/test/BTagRelVal_TTbar_FastSim_${refrel}.root -r ${valrel} -R ${refrel} -s TTbar_FastSim -S TTbar_FastSim
0038 cp /afs/cern.ch/cms/btag/www/validation/img/0_leg*.gif .
0039 mv 0_leg1.gif 0_leg4.gif
0040 for File in `ls ${valrel}_*_allTaggers*.gif`; do mv ${File} 1_${File}; done
0041 for File in `ls ${valrel}*jetPt*.gif`; do mv ${File} 2_${File}; done
0042 for File in `ls ${refrel}_*_allTaggers*.gif`; do mv ${File} 3_${File}; done
0043 for File in `ls ${valrel}*jetEta*.gif`; do mv ${File} 4_${File}; done
0044 cd ..
0045  
0046 
0047 cd QCD_${valrel}_vs_${refrel}_Startup
0048 plotFactory.py -b -f ${workdir}/CMSSW_${valdir}/src/Validation/RecoB/test/BTagRelVal_QCD_Startup_${valrel}.root -F ${workdir}/CMSSW_${refdir}/src/Validation/RecoB/test/BTagRelVal_QCD_Startup_${refrel}.root -r ${valrel} -R ${refrel} -s QCD_Startup -S QCD_Startup
0049 cp /afs/cern.ch/cms/btag/www/validation/img/0_leg*.gif .
0050 mv 0_leg1.gif 0_leg4.gif
0051 for File in `ls ${valrel}_*_allTaggers*.gif`; do mv ${File} 1_${File}; done
0052 for File in `ls ${valrel}*jetPt*.gif`; do mv ${File} 2_${File}; done
0053 for File in `ls ${refrel}_*_allTaggers*.gif`; do mv ${File} 3_${File}; done
0054 for File in `ls ${valrel}*jetEta*.gif`; do mv ${File} 4_${File}; done
0055 cd ..
0056 
0057 cd FastSim_TTbar_${valrel}_vs_TTbar_${valrel}
0058 plotFactory.py -b -f ${workdir}/CMSSW_${valdir}/src/Validation/RecoB/test/BTagRelVal_TTbar_FastSim_${valrel}.root -F ${workdir}/CMSSW_${valdir}/src/Validation/RecoB/test/BTagRelVal_TTbar_Startup_${valrel}.root -r ${valrel} -R ${valrel} -s TTbar_FastSim -S TTbar_Startup
0059 cp /afs/cern.ch/cms/btag/www/validation/img/0_leg*.gif .
0060 mv 0_leg1.gif 0_leg4.gif
0061 for File in `ls ${valrel}*FastSim*_allTaggers*.gif`; do mv ${File} 1_${File}; done
0062 for File in `ls ${valrel}*jetPt*.gif`; do mv ${File} 2_${File}; done
0063 for File in `ls ${valrel}*Startup*_allTaggers*.gif`; do mv ${File} 3_${File}; done
0064 for File in `ls ${valrel}*jetEta*.gif`; do mv ${File} 4_${File}; done
0065 cd ..
0066 
0067 mkdir CMSSW_${valdir}
0068 mv *_${valrel}_vs_${refrel}_*                 CMSSW_${valdir}/
0069 mv FastSim_TTbar_${valrel}_vs_TTbar_${valrel} CMSSW_${valdir}/
0070 
0071 echo '<a href="https://cms-btag-validation.web.cern.ch/cms-btag-validation/validation/index_RecoB_'CMSSW_${valdir}_TTbar_${valrel}_vs_${refrel}_Startup.html'">'TTbar_${valrel}_vs_${refrel}_Startup'</a><br>' >> index.html
0072 
0073 echo '<a href="https://cms-btag-validation.web.cern.ch/cms-btag-validation/validation/index_RecoB_'CMSSW_${valdir}_TTbar_${valrel}_vs_${refrel}_Startup_PU.html'">'TTbar_${valrel}_vs_${refrel}_Startup_PU'</a><br>' >> index.html
0074 
0075 echo '<a href="https://cms-btag-validation.web.cern.ch/cms-btag-validation/validation/index_RecoB_'CMSSW_${valdir}_TTbar_${valrel}_vs_${refrel}_FastSim.html'">'TTbar_${valrel}_vs_${refrel}_FastSim'</a><br>' >> index.html
0076 
0077 echo '<a href="https://cms-btag-validation.web.cern.ch/cms-btag-validation/validation/index_RecoB_'CMSSW_${valdir}_QCD_${valrel}_vs_${refrel}_Startup.html'">'QCD_${valrel}_vs_${refrel}_Startup'</a><br>' >> index.html
0078 
0079 echo '<a href="https://cms-btag-validation.web.cern.ch/cms-btag-validation/validation/index_RecoB_'CMSSW_${valdir}_FastSim_TTbar_${valrel}_vs_TTbar_${valrel}.html'">'FastSim_TTbar_${valrel}_vs_TTbar_${valrel}'</a><br>' >> index.html
0080 
0081 
0082 
0083 #mv index.html /afs/cern.ch/cms/btag/www/validation/CMSSW_${valdir}_topdir.html
0084 
0085 
0086 echo "https://cms-btag-validation.web.cern.ch/cms-btag-validation/validation/CMSSW_${valdir}_topdir.html" >& webpage.txt