Warning, /Validation/CaloTowers/test/macros/RunPions.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 at least 2 input variables"
0012 exit
0013 endif
0014
0015 set NEW_VERS=$1
0016 set OLD_VERS=$2
0017
0018 #If only 2 arguments are given, assume it is FullSim
0019 if ($#argv<3) then
0020 echo "No 3rd argument given, by default this is FullSim"
0021 set FASTSIM=false
0022 else
0023 set FASTSIM=$3
0024 endif
0025
0026 #Go to CaloTowers test directory
0027 cd $CMSSW_BASE/src/Validation/CaloTowers/test/macros
0028
0029 #Check if base directory already exists
0030 if (-d ${NEW_VERS}_vs_${OLD_VERS}_RelVal) then
0031 echo "Directory already exists"
0032 exit
0033 endif
0034
0035 #Create base directory and top directories
0036 mkdir ${NEW_VERS}_vs_${OLD_VERS}_SinglePi
0037 cd ${NEW_VERS}_vs_${OLD_VERS}_SinglePi
0038
0039 #Single Pions
0040
0041 if ($FASTSIM != true) then
0042 cp ../html_indices/SinglePiScan.html index.html
0043 else
0044 cp ../html_indices/SinglePiScanFastSim.html index.html
0045 endif
0046
0047 cd ../
0048
0049 root -b -q 'SinglePi.C("'${OLD_VERS}'","'${NEW_VERS}'",'${FASTSIM}')'
0050 mv *gif ${NEW_VERS}_vs_${OLD_VERS}_SinglePi/
0051
0052 exit