Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:32:57

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 
0017 cat ValidationBTag_Template.xml | sed -e s%REFDIR%${workdir}/CMSSW_${refdir}/src/Validation/RecoB/test%g | sed -e s%VALDIR%${workdir}/CMSSW_${valdir}/src/Validation/RecoB/test%g | sed -e s/REFREL/${refrel}/g | sed -e s/VALREL/${valrel}/g | sed -e s/SAMPLE/TTbar_Startup/g > TTbar_${valrel}_vs_${refrel}_Startup/ValidationBTag_catprod.xml
0018 
0019 cat ValidationBTag_Template.xml | sed -e s%REFDIR%${workdir}/CMSSW_${refdir}/src/Validation/RecoB/test%g | sed -e s%VALDIR%${workdir}/CMSSW_${valdir}/src/Validation/RecoB/test%g | sed -e s/REFREL/${refrel}/g | sed -e s/VALREL/${valrel}/g | sed -e s/SAMPLE/TTbar_Startup_PU/g > TTbar_${valrel}_vs_${refrel}_Startup_PU/ValidationBTag_catprod.xml
0020 
0021 cat ValidationBTag_Template.xml | sed -e s%REFDIR%${workdir}/CMSSW_${refdir}/src/Validation/RecoB/test%g | sed -e s%VALDIR%${workdir}/CMSSW_${valdir}/src/Validation/RecoB/test%g | sed -e s/REFREL/${refrel}/g | sed -e s/VALREL/${valrel}/g | sed -e s/SAMPLE/TTbar_FastSim/g > TTbar_${valrel}_vs_${refrel}_FastSim/ValidationBTag_catprod.xml
0022 
0023 cat ValidationBTag_Template.xml | sed -e s%REFDIR%${workdir}/CMSSW_${refdir}/src/Validation/RecoB/test%g | sed -e s%VALDIR%${workdir}/CMSSW_${valdir}/src/Validation/RecoB/test%g | sed -e s/REFREL/${refrel}/g | sed -e s/VALREL/${valrel}/g | sed -e s/SAMPLE/QCD_Startup/g > QCD_${valrel}_vs_${refrel}_Startup/ValidationBTag_catprod.xml
0024 
0025 cat ValidationBTag_Template.xml | sed -e s%REFDIR%${workdir}/CMSSW_${valdir}/src/Validation/RecoB/test%g | sed -e s%VALDIR%${workdir}/CMSSW_${valdir}/src/Validation/RecoB/test%g | sed -e s/SAMPLE_REFREL/TTbar_Startup_${valrel}/g | sed -e s/SAMPLE_VALREL/TTbar_FastSim_${valrel}/g  | sed -e s/VALREL_SAMPLE/${valrel}_TTbar_Startup/g | sed -e s/REFREL_SAMPLE/${valrel}_TTbar_FastSim/g | sed -e s/SAMPLE/TTbar/g | sed -e s/VALREL/${valrel}/g > FastSim_TTbar_${valrel}_vs_TTbar_${valrel}/ValidationBTag_catprod.xml
0026 
0027 cd TTbar_${valrel}_vs_${refrel}_Startup
0028 cuy.py -b -x ValidationBTag_catprod.xml -p gif << +EOF
0029 q
0030 +EOF
0031 rm cuy.root
0032 rm ValidationBTag_catprod.xml
0033 rm *not*
0034 cp /afs/cern.ch/cms/btag/www/validation/img/0_leg*.gif .
0035 mv 0_leg1.gif 0_leg4.gif
0036 for File in `ls ${valrel}_*_ALL_tagger*.gif`; do mv ${File} 1_${File}; done
0037 for File in `ls ${valrel}_*jetPt*.gif`; do mv ${File} 2_${File}; done
0038 for File in `ls ${refrel}_*_ALL_tagger*.gif`; do mv ${File} 3_${File}; done
0039 for File in `ls ${valrel}_*jetEta*.gif`; do mv ${File} 4_${File}; done
0040 cd ..
0041 
0042 cd TTbar_${valrel}_vs_${refrel}_Startup_PU
0043 cuy.py -b -x ValidationBTag_catprod.xml -p gif << +EOF
0044 q
0045 +EOF
0046 rm cuy.root
0047 rm ValidationBTag_catprod.xml
0048 rm *not*
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}_*_ALL_tagger*.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}_*_ALL_tagger*.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 TTbar_${valrel}_vs_${refrel}_FastSim
0058 cuy.py -b -x ValidationBTag_catprod.xml -p gif << +EOF
0059 q
0060 +EOF
0061 rm cuy.root
0062 rm ValidationBTag_catprod.xml
0063 rm *not*
0064 cp /afs/cern.ch/cms/btag/www/validation/img/0_leg*.gif .
0065 mv 0_leg1.gif 0_leg4.gif
0066 for File in `ls ${valrel}_*_ALL_tagger*.gif`; do mv ${File} 1_${File}; done
0067 for File in `ls ${valrel}_*jetPt*.gif`; do mv ${File} 2_${File}; done
0068 for File in `ls ${refrel}_*_ALL_tagger*.gif`; do mv ${File} 3_${File}; done
0069 for File in `ls ${valrel}_*jetEta*.gif`; do mv ${File} 4_${File}; done
0070 cd ..
0071  
0072 
0073 cd QCD_${valrel}_vs_${refrel}_Startup
0074 cuy.py -b -x ValidationBTag_catprod.xml -p gif << +EOF
0075 q
0076 +EOF
0077 rm cuy.root
0078 rm ValidationBTag_catprod.xml
0079 rm *not*
0080 cp /afs/cern.ch/cms/btag/www/validation/img/0_leg*.gif .
0081 mv 0_leg1.gif 0_leg4.gif
0082 for File in `ls ${valrel}_*_ALL_tagger*.gif`; do mv ${File} 1_${File}; done
0083 for File in `ls ${valrel}_*jetPt*.gif`; do mv ${File} 2_${File}; done
0084 for File in `ls ${refrel}_*_ALL_tagger*.gif`; do mv ${File} 3_${File}; done
0085 for File in `ls ${valrel}_*jetEta*.gif`; do mv ${File} 4_${File}; done
0086 cd ..
0087 
0088 cd FastSim_TTbar_${valrel}_vs_TTbar_${valrel}
0089 cuy.py -b -x ValidationBTag_catprod.xml -p gif << +EOF
0090 q
0091 +EOF
0092 rm cuy.root
0093 #rm ValidationBTag_catprod.xml
0094 rm *not*
0095 cp /afs/cern.ch/cms/btag/www/validation/img/0_leg*.gif .
0096 mv 0_leg1.gif 0_leg4.gif
0097 for File in `ls ${valrel}*FastSim*_ALL_tagger*.gif`; do mv ${File} 1_${File}; done
0098 for File in `ls ${valrel}_*jetPt*.gif`; do mv ${File} 2_${File}; done
0099 for File in `ls ${valrel}*Startup*_ALL_tagger*.gif`; do mv ${File} 3_${File}; done
0100 for File in `ls ${valrel}_*jetEta*.gif`; do mv ${File} 4_${File}; done
0101 cd ..
0102 
0103 mkdir CMSSW_${valdir}
0104 mv *_${valrel}_vs_${refrel}_*                 CMSSW_${valdir}/
0105 mv FastSim_TTbar_${valrel}_vs_TTbar_${valrel} CMSSW_${valdir}/
0106 
0107 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
0108 
0109 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
0110 
0111 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
0112 
0113 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
0114 
0115 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
0116 
0117 
0118 
0119 mv index.html /afs/cern.ch/cms/btag/www/validation/CMSSW_${valdir}_topdir.html
0120 
0121 
0122 echo "https://cms-btag-validation.web.cern.ch/cms-btag-validation/validation/CMSSW_${valdir}_topdir.html" >& webpage.txt