Back to home page

Project CMSSW displayed by LXR

 
 

    


Warning, /Validation/CaloTowers/test/macros/RunRVMacros_2023.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_2023.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_HcalDigis_2023.html TTbar/HcalDigis/index.html
0048 cat ../html_indices/RelVal_RecHits_2023.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 #MinBias
0056 mkdir MinBias
0057 mkdir MinBias/CaloTowers
0058 mkdir MinBias/RecHits
0059 mkdir MinBias/RBX
0060 mkdir MinBias/HcalDigis
0061 
0062 cp ../html_indices/RelVal_HcalDigis_2023.html MinBias/HcalDigis/index.html
0063 cat ../html_indices/RelVal_RecHits_2023.html | sed -e s/DATA_SAMPLE/MinBias/ > MinBias/RecHits/index.html
0064 cp ../html_indices/RelVal_CaloTowers.html MinBias/CaloTowers/index.html
0065 cp ../html_indices/RBX.html               MinBias/RBX/index.html
0066 
0067 cd ..
0068 
0069 #Process Startup TTbar
0070 #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")'
0071 ./RelValMacro.py ${OLD_VERS} ${NEW_VERS} HcalRecHitValidationRelVal_TTbar_${OLD_VERS}.root HcalRecHitValidationRelVal_TTbar_${NEW_VERS}.root rangeMedium
0072 
0073 mv *HcalDigi*.gif   ${NEW_VERS}_vs_${OLD_VERS}_RelVal/TTbar/HcalDigis/
0074 mv *CaloTowers*.gif ${NEW_VERS}_vs_${OLD_VERS}_RelVal/TTbar/CaloTowers/
0075 mv RBX*gif          ${NEW_VERS}_vs_${OLD_VERS}_RelVal/TTbar/RBX/
0076 mv *gif             ${NEW_VERS}_vs_${OLD_VERS}_RelVal/TTbar/RecHits/
0077 
0078 #Process Startup MinBias
0079 #root -b -l -q 'RelValMacro.C("'${OLD_VERS}'","'${NEW_VERS}'","'HcalRecHitValidationRelVal_MinBias_${OLD_VERS}.root'","'HcalRecHitValidationRelVal_MinBias_${NEW_VERS}.root'","InputRelVal_Low.txt")'
0080 ./RelValMacro.py ${OLD_VERS} ${NEW_VERS} HcalRecHitValidationRelVal_MinBias_${OLD_VERS}.root HcalRecHitValidationRelVal_MinBias_${NEW_VERS}.root rangeLow
0081 
0082 mv *HcalDigi*.gif   ${NEW_VERS}_vs_${OLD_VERS}_RelVal/MinBias/HcalDigis/
0083 mv *CaloTowers*.gif ${NEW_VERS}_vs_${OLD_VERS}_RelVal/MinBias/CaloTowers/
0084 mv RBX*gif          ${NEW_VERS}_vs_${OLD_VERS}_RelVal/MinBias/RBX/
0085 mv *gif             ${NEW_VERS}_vs_${OLD_VERS}_RelVal/MinBias/RecHits/
0086 
0087 exit