Back to home page

Project CMSSW displayed by LXR

 
 

    


Warning, /Validation/CaloTowers/test/macros/RunRVMacrosP1.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/TopLevelRelVal.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/Digis_Phase1.html TTbar/HcalDigis/index.html
0048 cat ../html_indices/RecHits_Phase1.html | sed -e s/DATA_SAMPLE/TTbar/ > TTbar/RecHits/index.html
0049 cp ../html_indices/RelVal_CaloTowers.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 #QCD
0056 mkdir QCD
0057 mkdir QCD/CaloTowers
0058 mkdir QCD/RecHits
0059 mkdir QCD/RBX
0060 mkdir QCD/HcalDigis
0061 
0062 cp ../html_indices/Digis_Phase1.html QCD/HcalDigis/index.html
0063 cat ../html_indices/RecHits_Phase1.html | sed -e s/DATA_SAMPLE/QCD_80_120/ > QCD/RecHits/index.html
0064 cp ../html_indices/RelVal_CaloTowers.html QCD/CaloTowers/index.html
0065 cp ../html_indices/RBX.html               QCD/RBX/index.html
0066 
0067 #cp -r QCD QCDStartup
0068 #mv    QCD QCDMC
0069 
0070 #High Pt QCD
0071 mkdir HighPtQCD
0072 mkdir HighPtQCD/CaloTowers
0073 mkdir HighPtQCD/RecHits
0074 mkdir HighPtQCD/RBX
0075 mkdir HighPtQCD/HcalDigis
0076 
0077 cp ../html_indices/Digis_Phase1.html HighPtQCD/HcalDigis/index.html
0078 cat ../html_indices/RecHits_Phase1.html | sed -e s/DATA_SAMPLE/QCD_3000_3500/ > HighPtQCD/RecHits/index.html
0079 cp ../html_indices/RelVal_CaloTowers.html HighPtQCD/CaloTowers/index.html
0080 cp ../html_indices/RBX.html               HighPtQCD/RBX/index.html
0081 
0082 #MinBias
0083 mkdir MinBias
0084 mkdir MinBias/CaloTowers
0085 mkdir MinBias/RecHits
0086 mkdir MinBias/RBX
0087 mkdir MinBias/HcalDigis
0088 
0089 cp ../html_indices/Digis_Phase1.html MinBias/HcalDigis/index.html
0090 cat ../html_indices/RecHits_Phase1.html | sed -e s/DATA_SAMPLE/MinBias/ > MinBias/RecHits/index.html
0091 cp ../html_indices/RelVal_CaloTowers.html MinBias/CaloTowers/index.html
0092 cp ../html_indices/RBX.html               MinBias/RBX/index.html
0093 
0094 
0095 #Single Pions
0096 
0097 mkdir SinglePi50_ECAL+HCAL_Scan
0098 
0099 cp ../html_indices/SinglePiScan.html       SinglePi50_ECAL+HCAL_Scan/index.html
0100 
0101 cd ../
0102 
0103 
0104 #Process Startup TTbar
0105 #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")'
0106 ./RelValMacro.py ${OLD_VERS} ${NEW_VERS} HcalRecHitValidationRelVal_TTbar_${OLD_VERS}.root HcalRecHitValidationRelVal_TTbar_${NEW_VERS}.root rangeMedium
0107 
0108 mv *HcalDigi*.gif   ${NEW_VERS}_vs_${OLD_VERS}_RelVal/TTbar/HcalDigis/
0109 mv *CaloTowers*.gif ${NEW_VERS}_vs_${OLD_VERS}_RelVal/TTbar/CaloTowers/
0110 mv RBX*gif          ${NEW_VERS}_vs_${OLD_VERS}_RelVal/TTbar/RBX/
0111 mv *gif             ${NEW_VERS}_vs_${OLD_VERS}_RelVal/TTbar/RecHits/
0112 
0113 #Process Startup QCD
0114 #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")'
0115 ./RelValMacro.py ${OLD_VERS} ${NEW_VERS} HcalRecHitValidationRelVal_QCD_${OLD_VERS}.root HcalRecHitValidationRelVal_QCD_${NEW_VERS}.root rangeMedium
0116 
0117 mv *HcalDigi*.gif   ${NEW_VERS}_vs_${OLD_VERS}_RelVal/QCD/HcalDigis/
0118 mv *CaloTowers*.gif ${NEW_VERS}_vs_${OLD_VERS}_RelVal/QCD/CaloTowers/
0119 mv RBX*gif          ${NEW_VERS}_vs_${OLD_VERS}_RelVal/QCD/RBX/
0120 mv *gif             ${NEW_VERS}_vs_${OLD_VERS}_RelVal/QCD/RecHits/
0121 
0122 #Process Startup HighPtQCD
0123 #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")'
0124 ./RelValMacro.py ${OLD_VERS} ${NEW_VERS} HcalRecHitValidationRelVal_HighPtQCD_${OLD_VERS}.root HcalRecHitValidationRelVal_HighPtQCD_${NEW_VERS}.root rangeHigh
0125 
0126 mv *HcalDigi*.gif   ${NEW_VERS}_vs_${OLD_VERS}_RelVal/HighPtQCD/HcalDigis/
0127 mv *CaloTowers*.gif ${NEW_VERS}_vs_${OLD_VERS}_RelVal/HighPtQCD/CaloTowers/
0128 mv RBX*gif          ${NEW_VERS}_vs_${OLD_VERS}_RelVal/HighPtQCD/RBX/
0129 mv *gif             ${NEW_VERS}_vs_${OLD_VERS}_RelVal/HighPtQCD/RecHits/
0130 
0131 #Process Startup MinBias
0132 #root -b -l -q 'RelValMacro.C("'${OLD_VERS}'","'${NEW_VERS}'","'HcalRecHitValidationRelVal_MinBias_${OLD_VERS}.root'","'HcalRecHitValidationRelVal_MinBias_${NEW_VERS}.root'","InputRelVal_Low.txt")'
0133 ./RelValMacro.py ${OLD_VERS} ${NEW_VERS} HcalRecHitValidationRelVal_MinBias_${OLD_VERS}.root HcalRecHitValidationRelVal_MinBias_${NEW_VERS}.root rangeLow
0134 
0135 mv *HcalDigi*.gif   ${NEW_VERS}_vs_${OLD_VERS}_RelVal/MinBias/HcalDigis/
0136 mv *CaloTowers*.gif ${NEW_VERS}_vs_${OLD_VERS}_RelVal/MinBias/CaloTowers/
0137 mv RBX*gif          ${NEW_VERS}_vs_${OLD_VERS}_RelVal/MinBias/RBX/
0138 mv *gif             ${NEW_VERS}_vs_${OLD_VERS}_RelVal/MinBias/RecHits/
0139 
0140 #Process single pions
0141 
0142 set OLV = `echo ${OLD_VERS} | sed 's/\([^_]*\).*/\1/'`
0143 set NWV = `echo ${NEW_VERS} | sed 's/\([^_]*\).*/\1/'`
0144 ./singlePi.exe ${OLV} ${NWV}
0145 mv *gif  ${NEW_VERS}_vs_${OLD_VERS}_RelVal/SinglePi50_ECAL+HCAL_Scan
0146 
0147 exit