Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:33:37

0001 #!/bin/csh
0002 setenv sim    ${1}
0003 setenv type   ${2}
0004 setenv sample ${3} 
0005 
0006 
0007 echo '===> simulation' $sim
0008 echo '===> type'       $type
0009 echo '===> sample.'  $sample 
0010 
0011 
0012 if ( $sample == SingleGammaPt10 ) then
0013 setenv outFileName SingleGammaPt10
0014 else if (  $sample == SingleGammaPt35 ) then
0015 setenv outFileName SingleGammaPt35
0016 else if (  $sample == SingleGammaFlatPt10To100 ) then
0017 setenv outFileName SingleGammaFlatPt10To100
0018 else if (  $sample ==  H130GGgluonfusion ) then
0019 setenv outFileName H130GGgluonfusion
0020 else if (  $sample == PhotonJets_Pt_10 ) then
0021 setenv outFileName  PhotonJets_Pt_10
0022 else if (  $sample == QCD_Pt_20_30 ) then
0023 setenv outFileName  QCD_Pt_20_30
0024 else if (  $sample == QCD_Pt_80_120 ) then
0025 setenv outFileName  QCD_Pt_80_120
0026 endif
0027 
0028 if ($sim == Full ) then
0029 setenv confName  ${type}Validator
0030 else if ( $sim == Fast ) then
0031 setenv confName  PhotonValidatorFastSim
0032 endif
0033 
0034 setenv MYWORKDIR /afs/cern.ch/user/n/nancy/scratch0/CMSSW/test/CMSSW_3_11_0_pre5/src/Validation/RecoEgamma/test
0035 
0036 echo ${MYWORKDIR}
0037 setenv MYOUT ${MYWORKDIR}
0038 #----------------
0039 cd ${MYWORKDIR}
0040 eval `scramv1 runtime -csh`
0041 
0042 if ( $sim == Full ) then
0043 cp ${MYWORKDIR}/${confName}_${sample}.py    ${WORKDIR}/conf.py
0044 else if ( $sim == Fast ) then
0045 cp ${MYWORKDIR}/${confName}.py    ${WORKDIR}/conf.py
0046 endif
0047 
0048 
0049 cd ${WORKDIR}
0050 echo ${WORKDIR}
0051 
0052 cmsRun  conf.py > & ${outFileName}.log
0053 #---------------------------------------------------------------
0054 
0055 
0056 if ( $sim == Full ) then
0057  rfcp   ${outFileName}.log             ${MYOUT}/${outFileName}.log
0058  rfcp   PhotonValidationRelVal3_11_0_pre5_${outFileName}.root            ${MYOUT}/.
0059  rfcp   ConversionValidationRelVal3_11_0_pre5_${outFileName}.root        ${MYOUT}/.
0060 else if ( $sim == Fast ) then
0061  rfcp   ${outFileName}.log             ${MYOUT}/${outFileName}_FastSim.log
0062  rfcp   PhotonValidationRelVal3_11_0_pre5_${outFileName}_FastSim.root            ${MYOUT}/.
0063 endif