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}) 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}
0029 cd ${NEW_VERS}_vs_${OLD_VERS}
0030 
0031 mkdir Digis
0032 
0033 #Create lower directories and distribute html files
0034 mkdir Digis/HB
0035 mkdir Digis/HE
0036 mkdir Digis/HF
0037 mkdir Digis/HO
0038 
0039 cp ../../html_indices/Digis_HB.html Digis/HB/index.html
0040 cp ../../html_indices/Digis_HE.html Digis/HE/index.html
0041 cp ../../html_indices/Digis_HF.html Digis/HF/index.html
0042 cp ../../html_indices/Digis_HO.html Digis/HO/index.html
0043 
0044 cp ../../html_indices/DigisTopLevel.html index.html
0045 
0046 cd ../
0047 
0048 #Digis + DB
0049 root -l -q 'CombinedDigis.C("'${OLD_VERS}'","'${NEW_VERS}'")'
0050 
0051 mv HcalDigiTask_*HB.gif ${NEW_VERS}_vs_${OLD_VERS}/Digis/HB/
0052 mv HcalDigiTask_*HE.gif ${NEW_VERS}_vs_${OLD_VERS}/Digis/HE/
0053 mv HcalDigiTask_*HF.gif ${NEW_VERS}_vs_${OLD_VERS}/Digis/HF/
0054 mv HcalDigiTask_*HO.gif ${NEW_VERS}_vs_${OLD_VERS}/Digis/HO/
0055 
0056 
0057 exit
0058