Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:32:11

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 #Go to CaloTowers test directory
0019 cd $CMSSW_BASE/src/Validation/CaloTowers/test/macros/MinBias
0020 
0021 #Check if base directory already exists
0022 if (-d ${NEW_VERS}_vs_${OLD_VERS}_RelVal) then
0023     echo "Directory already exists"
0024     exit
0025 endif
0026 
0027 #Create base directory and top directories
0028 mkdir ${NEW_VERS}_vs_${OLD_VERS}_RelVal
0029 cd ${NEW_VERS}_vs_${OLD_VERS}_RelVal
0030 
0031 cp ../../html_indices/MinBiasTopLevel.html index.html
0032 
0033 #MinBias
0034 mkdir MinBias
0035 mkdir MinBias/CalTowHB
0036 mkdir MinBias/CalTowHE
0037 mkdir MinBias/CalTowHF
0038 mkdir MinBias/RecHits
0039 
0040 cp ../../html_indices/RelVal_RecHits_QCD.html MinBias/RecHits/index.html
0041 cp ../../html_indices/CaloTowers_HB.html      MinBias/CalTowHB/index.html
0042 cp ../../html_indices/CaloTowers_HE.html      MinBias/CalTowHE/index.html
0043 cp ../../html_indices/CaloTowers_HF.html      MinBias/CalTowHF/index.html
0044 
0045 cd ../
0046 
0047 #Process MC MinBias
0048 root -l -q 'RelValMacro.C("'${OLD_VERS}'","'${NEW_VERS}'","'HcalRecHitValidationRelVal_MinBias_${OLD_VERS}.root'","'HcalRecHitValidationRelVal_MinBias_${NEW_VERS}.root'")'
0049 
0050 mv HB_CaloTowers*HB.gif ${NEW_VERS}_vs_${OLD_VERS}_RelVal/MinBias/CalTowHB/
0051 mv HE_CaloTowers*HE.gif ${NEW_VERS}_vs_${OLD_VERS}_RelVal/MinBias/CalTowHE/
0052 mv HF_CaloTowers*HF.gif ${NEW_VERS}_vs_${OLD_VERS}_RelVal/MinBias/CalTowHF/
0053 rm emean_seq_*.gif
0054 mv *gif                 ${NEW_VERS}_vs_${OLD_VERS}_RelVal/MinBias/RecHits/
0055 
0056 
0057 exit