Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 09:41:13

0001 #!/bin/tcsh
0002 echo "Starting job on " `date` #Date/time of start of job
0003 echo "Running on: `uname -a`" #Condor job is running on this node
0004 echo "System software: `cat /etc/redhat-release`" #Operating System on that node
0005 source /cvmfs/cms.cern.ch/cmsset_default.csh  ## if a bash script, use .sh instead of .csh
0006 
0007 echo "myStart run_condor.csh"
0008 
0009 echo "myStart: set dir pwd"
0010 set m=`pwd`
0011 
0012 cd ${m}
0013 #setenv SCRAM_ARCH slc7_amd64_gcc10
0014 #cmsrel CMSSW_12_3_4
0015 #cd CMSSW_12_3_4/src 
0016 #setenv SCRAM_ARCH ec8_amd64_gcc10
0017 setenv SCRAM_ARCH ec8_amd64_gcc11
0018 cmsrel CMSSW_13_0_0_pre1
0019 cd CMSSW_13_0_0_pre1/src 
0020 
0021 mkdir DPGAnalysis
0022 cd DPGAnalysis
0023 
0024 mkdir HcalTools
0025 cd HcalTools
0026 
0027 mv ../../../../BuildFile.xml .
0028 ls
0029 
0030 mkdir interface
0031 mv ../../../../CMTRawAnalyzer.h interface/.
0032 mkdir src
0033 mv ../../../../CMTRawAnalyzer.cc src/.
0034 
0035 cd src
0036 ls
0037 eval `scramv1 runtime -csh` # cmsenv is an alias not on the workers
0038 echo "myStart: scram b"
0039 scram b 
0040 echo "myStart: scram b DONE"
0041 
0042 cd -
0043 mkdir test
0044 cd test
0045 cp ../../../../../* .
0046 ls
0047 
0048 setenv X509_USER_PROXY ${4}
0049 voms-proxy-info -all
0050 voms-proxy-info -all -file ${4}
0051 
0052 ./mkcfg_new120.csh ${1}
0053 ls PYTHON_${1}/*py
0054 
0055 ################################################################ loop:  
0056 echo "myStart: loop in run_condor.csh"
0057 if( ${status} == "0" ) then
0058 foreach i (`ls PYTHON_${1}`)
0059 
0060 set j=`echo ${i} | awk -F _ '{print $2}'`
0061 set k=`echo ${i} | awk -F _ '{print $3}'`
0062 
0063 echo ${m} ${1} ${i} ${j} ${k} 
0064 
0065 eval `scramv1 runtime -csh` # cmsenv is an alias not on the workers 
0066 cmsRun PYTHON_${1}/Reco_${j}_${k}_cfg.py 
0067 
0068 ### Copy output files to EOS
0069 ### xrdcp -f Global_${j}_${k}.root /eos/cms/store/user/zhokin/CMT/test/Global_${j}_${k}.root
0070 #eoscp Global_${j}_${k}.root /eos/cms/store/user/zhokin/CMT/RootFilesToBeMarched/2022/Global_${j}_${k}.root
0071 #eoscp Global_${j}_${k}.root /eos/cms/store/user/zhokin/CMT/RootFilesToBeMarched/2022/run3a1/Global_${j}_${k}.root
0072 eoscp Global_${j}_${k}.root /eos/cms/store/user/zhokin/CMT/RootFilesToBeMarched/2023/Global_${j}_${k}.root
0073 #eoscp Global_${j}_${k}.root /eos/cms/store/user/zhokin/CMT/test/Global_${j}_${k}.root
0074 
0075 ################################################################
0076 end
0077 else
0078 echo "Problem: No jobs are created: check PYTHON_${1} directory: Notify developpers"
0079 endif
0080