Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:31:56

0001 #!/bin/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_PileUp) 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_PileUp
0035 cd ${NEW_VERS}_vs_${OLD_VERS}_RelVal_PileUp
0036 
0037 cp ../html_indices/TopLevelRelVal_PileUp.html index.html
0038 
0039 #TTbar
0040 mkdir TTbar
0041 mkdir TTbar/HcalDigis
0042 mkdir TTbar/CaloTowers
0043 mkdir TTbar/RecHits
0044 mkdir TTbar/RBX
0045 
0046 cat ../html_indices/RelVal_RecHits2021.html | sed -e s/DATA_SAMPLE/TTbar/ > TTbar/RecHits/index.html
0047 
0048 cp ../html_indices/RelVal_CaloTowers2021.html TTbar/CaloTowers/index.html
0049 cp ../html_indices/RelVal_HcalDigis2021.html  TTbar/HcalDigis/index.html
0050 cp ../html_indices/RBX.html               TTbar/RBX/index.html
0051 
0052 cd ../
0053 
0054 #Process Startup TTbar
0055 #root -b -q 'RelValMacro.C("'${OLD_VERS}_Startup'","'${NEW_VERS}_Startup'","'HcalRecHitValidationRelVal_TTbar_Startup_${OLD_VERS}_PileUp.root'","'HcalRecHitValidationRelVal_TTbar_Startup_${NEW_VERS}_PileUp.root'","InputRelVal_Medium.txt",'${harvest}')'
0056 cp InputRelVal.json-2023-12July2023 InputRelVal.json
0057 ./RelValMacro.py ${OLD_VERS} ${NEW_VERS} HcalRecHitValidationRelVal_TTbar_${OLD_VERS}.root HcalRecHitValidationRelVal_TTbar_${NEW_VERS}.root rangeMediumPileup
0058 
0059 mv *HcalDigi*.gif   ${NEW_VERS}_vs_${OLD_VERS}_RelVal_PileUp/TTbar/HcalDigis/
0060 mv *CaloTowers*.gif ${NEW_VERS}_vs_${OLD_VERS}_RelVal_PileUp/TTbar/CaloTowers/
0061 mv RBX*gif          ${NEW_VERS}_vs_${OLD_VERS}_RelVal_PileUp/TTbar/RBX/
0062 mv *gif             ${NEW_VERS}_vs_${OLD_VERS}_RelVal_PileUp/TTbar/RecHits/
0063 
0064 exit