Back to home page

Project CMSSW displayed by LXR

 
 

    


Warning, /Validation/CaloTowers/test/macros/RunRVMacros2017.csh is written in an unsupported language. File is not indexed.

0001 #!/bin/env tcsh
0002 
0003 #Check to see if the CMS environment is set up
0004 if ($?CMSSW_BASE != 1) then
0005     echo "CMS environment not set up"
0006 #    exit
0007 endif
0008 
0009 #Check for correct number of arguments
0010 if ($#argv<2) then
0011     echo "Script needs 2 input variable"
0012 #    exit
0013 endif
0014 
0015 set NEW_VERS=$1
0016 set OLD_VERS=$2
0017 
0018 # Two bit value with the first corresponding to whether the validation version is centrally
0019 # harvested (1) or not (0) and the second to whether the reference version is harvested. Thus:
0020 # 00: both are privately produced
0021 # 01: reference version is harvested, validation version is private
0022 # 10: validation version is harvested, reference version is private
0023 # 11: both versions are harvested
0024 # Any other value is the same as 0
0025 set harvest=11
0026 
0027 #Check if base directory already exists
0028 if (-d ${NEW_VERS}_vs_${OLD_VERS}_RelVal) then
0029     echo "Directory already exists"
0030     exit
0031 endif
0032 
0033 #Create base directory and top directories
0034 mkdir ${NEW_VERS}_vs_${OLD_VERS}_RelVal
0035 cd ${NEW_VERS}_vs_${OLD_VERS}_RelVal
0036 
0037 cp ../html_indices/TopLevelRelValSimHits.html index.html
0038 
0039 
0040 #TTbar
0041 mkdir TTbar
0042 mkdir TTbar/CaloTowers
0043 mkdir TTbar/RecHits
0044 mkdir TTbar/RBX
0045 mkdir TTbar/HcalDigis
0046 
0047 cp ../html_indices/RelVal_HcalDigis2017.html TTbar/HcalDigis/index.html
0048 cat ../html_indices/RelVal_RecHits2017.html | sed -e s/DATA_SAMPLE/TTbar/ > TTbar/RecHits/index.html
0049 cp ../html_indices/RelVal_CaloTowers2017.html TTbar/CaloTowers/index.html
0050 cp ../html_indices/RBX.html               TTbar/RBX/index.html
0051 
0052 #cp -r TTbar TTbarStartup
0053 #mv    TTbar TTbarMC
0054 
0055 mkdir -p TTbar/SimHits
0056 cp ../html_indices/RelVal_Simhits2017.html TTbar/SimHits/index.html
0057 
0058 #QCD
0059 mkdir QCD
0060 mkdir QCD/CaloTowers
0061 mkdir QCD/RecHits
0062 mkdir QCD/RBX
0063 mkdir QCD/HcalDigis
0064 
0065 cp ../html_indices/RelVal_HcalDigis2017.html QCD/HcalDigis/index.html
0066 cat ../html_indices/RelVal_RecHits2017.html | sed -e s/DATA_SAMPLE/QCD_80_120/ > QCD/RecHits/index.html
0067 cp ../html_indices/RelVal_CaloTowers2017.html QCD/CaloTowers/index.html
0068 cp ../html_indices/RBX.html               QCD/RBX/index.html
0069 
0070 #cp -r QCD QCDStartup
0071 #mv    QCD QCDMC
0072 
0073 mkdir -p QCD/SimHits
0074 cp ../html_indices/RelVal_Simhits2017.html QCD/SimHits/index.html
0075 
0076 #High Pt QCD
0077 mkdir HighPtQCD
0078 mkdir HighPtQCD/CaloTowers
0079 mkdir HighPtQCD/RecHits
0080 mkdir HighPtQCD/RBX
0081 mkdir HighPtQCD/HcalDigis
0082 
0083 cp ../html_indices/RelVal_HcalDigis2017.html HighPtQCD/HcalDigis/index.html
0084 cat ../html_indices/RelVal_RecHits2017.html | sed -e s/DATA_SAMPLE/QCD_3000_3500/ > HighPtQCD/RecHits/index.html
0085 cp ../html_indices/RelVal_CaloTowers2017.html HighPtQCD/CaloTowers/index.html
0086 cp ../html_indices/RBX.html               HighPtQCD/RBX/index.html
0087 
0088 mkdir -p HighPtQCD/SimHits
0089 cp ../html_indices/RelVal_Simhits2017.html HighPtQCD/SimHits/index.html
0090 
0091 #MinBias
0092 mkdir MinBias
0093 mkdir MinBias/CaloTowers
0094 mkdir MinBias/RecHits
0095 mkdir MinBias/RBX
0096 mkdir MinBias/HcalDigis
0097 
0098 cp ../html_indices/RelVal_HcalDigis2017.html MinBias/HcalDigis/index.html
0099 cat ../html_indices/RelVal_RecHits2017.html | sed -e s/DATA_SAMPLE/MinBias/ > MinBias/RecHits/index.html
0100 cp ../html_indices/RelVal_CaloTowers2017.html MinBias/CaloTowers/index.html
0101 cp ../html_indices/RBX.html               MinBias/RBX/index.html
0102 
0103 mkdir -p MinBias/SimHits
0104 cp ../html_indices/RelVal_Simhits2017.html MinBias/SimHits/index.html
0105 
0106 
0107 #Single Pions
0108 
0109 mkdir SinglePi50_ECAL+HCAL_Scan
0110 
0111 cp ../html_indices/SinglePiScan.html       SinglePi50_ECAL+HCAL_Scan/index.html
0112 
0113 cd ../
0114 
0115 
0116 #Process Startup TTbar
0117 #root -b -l -q 'RelValMacro.C("'${OLD_VERS}_Startup'","'${NEW_VERS}_Startup'","'HcalRecHitValidationRelVal_TTbar_${OLD_VERS}.root'","'HcalRecHitValidationRelVal_TTbar_${NEW_VERS}.root'","InputRelVal_Medium.txt")'
0118 ./RelValMacro.py ${OLD_VERS} ${NEW_VERS} HcalRecHitValidationRelVal_TTbar_${OLD_VERS}.root HcalRecHitValidationRelVal_TTbar_${NEW_VERS}.root rangeHigh
0119 
0120 mv *HcalDigi*.gif   ${NEW_VERS}_vs_${OLD_VERS}_RelVal/TTbar/HcalDigis/
0121 mv *CaloTowers*.gif ${NEW_VERS}_vs_${OLD_VERS}_RelVal/TTbar/CaloTowers/
0122 mv RBX*gif          ${NEW_VERS}_vs_${OLD_VERS}_RelVal/TTbar/RBX/
0123 mv *gif             ${NEW_VERS}_vs_${OLD_VERS}_RelVal/TTbar/RecHits/
0124 
0125 ./RelValMacro.py ${OLD_VERS} ${NEW_VERS} HcalRecHitValidationRelVal_TTbar_${OLD_VERS}.root HcalRecHitValidationRelVal_TTbar_${NEW_VERS}.root rangeSim
0126 #root -b -q 'RelValMacro_SimHitsValidationHcal.C("'${OLD_VERS}'","'${NEW_VERS}'","'HcalRecHitValidationRelVal_TTbar_${OLD_VERS}.root'","'HcalRecHitValidationRelVal_TTbar_${NEW_VERS}.root'","InputRelVal_SimHits_Low_Free_y.txt",'${harvest}')'
0127 #root -b -q 'RelValMacro_HcalSimHitsTask.C("'${OLD_VERS}'","'${NEW_VERS}'","'HcalRecHitValidationRelVal_TTbar_${OLD_VERS}.root'","'HcalRecHitValidationRelVal_TTbar_${NEW_VERS}.root'","InputRelVal_SimHits.txt",'${harvest}')'
0128 mv *.gif   ${NEW_VERS}_vs_${OLD_VERS}_RelVal/TTbar/SimHits
0129 
0130 #Process Startup QCD
0131 #root -b -l -q 'RelValMacro.C("'${OLD_VERS}_Startup'","'${NEW_VERS}_Startup'","'HcalRecHitValidationRelVal_QCD_${OLD_VERS}.root'","'HcalRecHitValidationRelVal_QCD_${NEW_VERS}.root'","InputRelVal_Medium.txt")'
0132 ./RelValMacro.py ${OLD_VERS} ${NEW_VERS} HcalRecHitValidationRelVal_QCD_${OLD_VERS}.root HcalRecHitValidationRelVal_QCD_${NEW_VERS}.root rangeHigh
0133 
0134 mv *HcalDigi*.gif   ${NEW_VERS}_vs_${OLD_VERS}_RelVal/QCD/HcalDigis/
0135 mv *CaloTowers*.gif ${NEW_VERS}_vs_${OLD_VERS}_RelVal/QCD/CaloTowers/
0136 mv RBX*gif          ${NEW_VERS}_vs_${OLD_VERS}_RelVal/QCD/RBX/
0137 mv *gif             ${NEW_VERS}_vs_${OLD_VERS}_RelVal/QCD/RecHits/
0138 
0139 ./RelValMacro.py ${OLD_VERS} ${NEW_VERS} HcalRecHitValidationRelVal_QCD_${OLD_VERS}.root HcalRecHitValidationRelVal_QCD_${NEW_VERS}.root rangeSim
0140 #root -b -q 'RelValMacro_SimHitsValidationHcal.C("'${OLD_VERS}'","'${NEW_VERS}'","'HcalRecHitValidationRelVal_QCD_${OLD_VERS}.root'","'HcalRecHitValidationRelVal_QCD_${NEW_VERS}.root'","InputRelVal_SimHits_Low_Free_y.txt",'${harvest}')'
0141 #root -b -q 'RelValMacro_HcalSimHitsTask.C("'${OLD_VERS}'","'${NEW_VERS}'","'HcalRecHitValidationRelVal_QCD_${OLD_VERS}.root'","'HcalRecHitValidationRelVal_QCD_${NEW_VERS}.root'","InputRelVal_SimHits.txt",'${harvest}')'
0142 mv *.gif   ${NEW_VERS}_vs_${OLD_VERS}_RelVal/QCD/SimHits
0143 
0144 #Process Startup HighPtQCD
0145 #root -b -l -q 'RelValMacro.C("'${OLD_VERS}_Startup'","'${NEW_VERS}_Startup'","'HcalRecHitValidationRelVal_HighPtQCD_${OLD_VERS}.root'","'HcalRecHitValidationRelVal_HighPtQCD_${NEW_VERS}.root'","InputRelVal_High.txt")'
0146 ./RelValMacro.py ${OLD_VERS} ${NEW_VERS} HcalRecHitValidationRelVal_HighPtQCD_${OLD_VERS}.root HcalRecHitValidationRelVal_HighPtQCD_${NEW_VERS}.root rangeHigh
0147 
0148 mv *HcalDigi*.gif   ${NEW_VERS}_vs_${OLD_VERS}_RelVal/HighPtQCD/HcalDigis/
0149 mv *CaloTowers*.gif ${NEW_VERS}_vs_${OLD_VERS}_RelVal/HighPtQCD/CaloTowers/
0150 mv RBX*gif          ${NEW_VERS}_vs_${OLD_VERS}_RelVal/HighPtQCD/RBX/
0151 mv *gif             ${NEW_VERS}_vs_${OLD_VERS}_RelVal/HighPtQCD/RecHits/
0152 
0153 ./RelValMacro.py ${OLD_VERS} ${NEW_VERS} HcalRecHitValidationRelVal_HighPtQCD_${OLD_VERS}.root HcalRecHitValidationRelVal_HighPtQCD_${NEW_VERS}.root rangeSim
0154 #root -b -q 'RelValMacro_SimHitsValidationHcal.C("'${OLD_VERS}'","'${NEW_VERS}'","'HcalRecHitValidationRelVal_HighPtQCD_${OLD_VERS}.root'","'HcalRecHitValidationRelVal_HighPtQCD_${NEW_VERS}.root'","InputRelVal_SimHits_Low_Free_y.txt",'${harvest}')'
0155 #root -b -q 'RelValMacro_HcalSimHitsTask.C("'${OLD_VERS}'","'${NEW_VERS}'","'HcalRecHitValidationRelVal_HighPtQCD_${OLD_VERS}.root'","'HcalRecHitValidationRelVal_HighPtQCD_${NEW_VERS}.root'","InputRelVal_SimHits.txt",'${harvest}')'
0156 
0157 mv *.gif   ${NEW_VERS}_vs_${OLD_VERS}_RelVal/HighPtQCD/SimHits
0158 
0159 #Process Startup MinBias
0160 #root -b -l -q 'RelValMacro.C("'${OLD_VERS}'","'${NEW_VERS}'","'HcalRecHitValidationRelVal_MinBias_${OLD_VERS}.root'","'HcalRecHitValidationRelVal_MinBias_${NEW_VERS}.root'","InputRelVal_Low.txt")'
0161 ./RelValMacro.py ${OLD_VERS} ${NEW_VERS} HcalRecHitValidationRelVal_MinBias_${OLD_VERS}.root HcalRecHitValidationRelVal_MinBias_${NEW_VERS}.root rangeHigh
0162 
0163 mv *HcalDigi*.gif   ${NEW_VERS}_vs_${OLD_VERS}_RelVal/MinBias/HcalDigis/
0164 mv *CaloTowers*.gif ${NEW_VERS}_vs_${OLD_VERS}_RelVal/MinBias/CaloTowers/
0165 mv RBX*gif          ${NEW_VERS}_vs_${OLD_VERS}_RelVal/MinBias/RBX/
0166 mv *gif             ${NEW_VERS}_vs_${OLD_VERS}_RelVal/MinBias/RecHits/
0167 
0168 #Process single pions
0169 
0170 #set OLV = `echo ${OLD_VERS} | sed 's/\([^_]*\).*/\1/'`
0171 #set NWV = `echo ${NEW_VERS} | sed 's/\([^_]*\).*/\1/'`
0172 #./singlePi.exe ${OLV} ${NWV}
0173 #mv *gif  ${NEW_VERS}_vs_${OLD_VERS}_RelVal/SinglePi50_ECAL+HCAL_Scan
0174 
0175 ./RelValMacro.py ${OLD_VERS} ${NEW_VERS} HcalRecHitValidationRelVal_MinBias_${OLD_VERS}.root HcalRecHitValidationRelVal_MinBias_${NEW_VERS}.root rangeSim
0176 #root -b -q 'RelValMacro_SimHitsValidationHcal.C("'${OLD_VERS}'","'${NEW_VERS}'","'HcalRecHitValidationRelVal_MinBias_${OLD_VERS}.root'","'HcalRecHitValidationRelVal_MinBias_${NEW_VERS}.root'","InputRelVal_SimHits_Low.txt",'${harvest}')'
0177 #root -b -q 'RelValMacro_HcalSimHitsTask.C("'${OLD_VERS}'","'${NEW_VERS}'","'HcalRecHitValidationRelVal_MinBias_${OLD_VERS}.root'","'HcalRecHitValidationRelVal_MinBias_${NEW_VERS}.root'","InputRelVal_SimHits.txt",'${harvest}')'
0178 
0179 mv *.gif   ${NEW_VERS}_vs_${OLD_VERS}_RelVal/MinBias/SimHits
0180 
0181 exit