Back to home page

Project CMSSW displayed by LXR

 
 

    


Warning, /Validation/CaloTowers/test/macros/RunRVMacros_DATA.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_DATA.html index.html
0038 
0039 #JetHT
0040 mkdir JetHT
0041 mkdir JetHT/CaloTowers
0042 mkdir JetHT/RecHits
0043 mkdir JetHT/RBX
0044 
0045 cat ../html_indices/RelVal_RecHits.html | sed -e s/DATA_SAMPLE/JetHT/ > JetHT/RecHits/index.html
0046 cp ../html_indices/RelVal_CaloTowers.html JetHT/CaloTowers/index.html
0047 cp ../html_indices/RBX.html               JetHT/RBX/index.html
0048 
0049 #MinBias
0050 #mkdir MinBias
0051 #mkdir MinBias/CaloTowers
0052 #mkdir MinBias/RecHits
0053 #mkdir MinBias/RBX
0054 
0055 #cat ../html_indices/RelVal_RecHits.html | sed -e s/DATA_SAMPLE/MinBias/ > MinBias/RecHits/index.html
0056 #cp ../html_indices/RelVal_CaloTowers.html MinBias/CaloTowers/index.html
0057 #cp ../html_indices/RBX.html               MinBias/RBX/index.html
0058 
0059 
0060 #ZeroBias
0061 mkdir ZeroBias
0062 mkdir ZeroBias/CaloTowers
0063 mkdir ZeroBias/RecHits
0064 mkdir ZeroBias/RBX
0065 
0066 cat ../html_indices/RelVal_RecHits.html | sed -e s/DATA_SAMPLE/ZeroBias/ > ZeroBias/RecHits/index.html
0067 cp ../html_indices/RelVal_CaloTowers.html ZeroBias/CaloTowers/index.html
0068 cp ../html_indices/RBX.html               ZeroBias/RBX/index.html
0069 
0070 cd ..
0071 
0072 #Process Startup Jet
0073 #root -b -l -q 'RelValMacro.C("'${OLD_VERS}_Startup'","'${NEW_VERS}_Startup'","'HcalRecHitValidationRelVal_Jet_${OLD_VERS}.root'","'HcalRecHitValidationRelVal_Jet_${NEW_VERS}.root'","InputRelVal_Medium_DATA.txt")'
0074 ./RelValMacro.py ${OLD_VERS} ${NEW_VERS} HcalRecHitValidationRelVal_JetHT_${OLD_VERS}.root HcalRecHitValidationRelVal_JetHT_${NEW_VERS}.root rangeMediumData
0075 
0076 mv *CaloTowers*.gif ${NEW_VERS}_vs_${OLD_VERS}_RelVal/JetHT/CaloTowers/
0077 mv RBX*gif          ${NEW_VERS}_vs_${OLD_VERS}_RelVal/JetHT/RBX/
0078 mv *gif             ${NEW_VERS}_vs_${OLD_VERS}_RelVal/JetHT/RecHits/
0079 
0080 #Process Startup MinBias
0081 #root -b -l -q 'RelValMacro.C("'${OLD_VERS}'","'${NEW_VERS}'","'HcalRecHitValidationRelVal_MinBias_${OLD_VERS}.root'","'HcalRecHitValidationRelVal_MinBias_${NEW_VERS}.root'","InputRelVal_Medium_DATA.txt")'
0082 #./RelValMacro.py ${OLD_VERS} ${NEW_VERS} HcalRecHitValidationRelVal_MinBias_${OLD_VERS}.root HcalRecHitValidationRelVal_MinBias_${NEW_VERS}.root rangeMediumData
0083 
0084 #mv *CaloTowers*.gif ${NEW_VERS}_vs_${OLD_VERS}_RelVal/MinBias/CaloTowers/
0085 #mv RBX*gif          ${NEW_VERS}_vs_${OLD_VERS}_RelVal/MinBias/RBX/
0086 #mv *gif             ${NEW_VERS}_vs_${OLD_VERS}_RelVal/MinBias/RecHits/
0087 
0088 
0089 #Process Startup ZeroBias
0090 #root -b -l -q 'RelValMacro.C("'${OLD_VERS}'","'${NEW_VERS}'","'HcalRecHitValidationRelVal_ZeroBias_${OLD_VERS}.root'","'HcalRecHitValidationRelVal_ZeroBias_${NEW_VERS}.root'","InputRelVal_Medium_DATA.txt")'
0091 ./RelValMacro.py ${OLD_VERS} ${NEW_VERS} HcalRecHitValidationRelVal_ZeroBias_${OLD_VERS}.root HcalRecHitValidationRelVal_ZeroBias_${NEW_VERS}.root rangeLowData
0092 
0093 mv *CaloTowers*.gif ${NEW_VERS}_vs_${OLD_VERS}_RelVal/ZeroBias/CaloTowers/
0094 mv RBX*gif          ${NEW_VERS}_vs_${OLD_VERS}_RelVal/ZeroBias/RBX/
0095 mv *gif             ${NEW_VERS}_vs_${OLD_VERS}_RelVal/ZeroBias/RecHits/
0096 
0097 exit