Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-11-19 23:59:14

0001 #!/bin/csh
0002 
0003 set RELEASE=${CMSSW_VERSION}
0004 ### Get list of done from RDM webpage ###
0005 set TYPE=${1}
0006 echo ${TYPE}
0007 if( ${TYPE} != "LED" && ${TYPE} != "LASER" && ${TYPE} != "PEDESTAL" ) then
0008 echo "Please check type " ${TYPE} "should be LED or LASER or PEDESTAL"
0009 exit
0010 endif
0011 
0012 set WD="/afs/cern.ch/cms/CAF/CMSALCA/ALCA_HCALCALIB/HCALMONITORING/RDMScript"
0013 set SCRIPT=`pwd`
0014 set PYTHON=${CMSSW_BASE}/src/DPGAnalysis/HcalTools/python
0015 echo ${WD}
0016 
0017 set jold=194165
0018 foreach i (`cat tmp.list.${TYPE}`)
0019 echo "Run" ${i}
0020 set iold=`echo ${i} | awk -F _ '{print $1}'`
0021 set date=`echo ${i} | awk -F _ '{print $2}'`
0022 set time=`echo ${i} | awk -F _ '{print $3}'`
0023 set year=`echo ${date} | awk -F - '{print $1}'`
0024 set nevent=`echo ${i} | awk -F _ '{print $4}'`
0025 echo ${iold} ${jold} ${year} ${nevent}
0026 
0027 echo  "Start job "
0028 touch ${WD}/BATCHLOG/batchlogroot_${iold}.log ${WD}/BATCHLOG/ebatchlogroot_${iold}.log
0029 set MYOUTJOB=${WD}/BATCHLOG/batchlogroot_${iold}.log 
0030 echo ${MYOUTJOB}
0031 set MYERRJOB=${WD}/BATCHLOG/ebatchlogroot_${iold}.log
0032 echo ${MYERRJOB}
0033 set MYCONDOR=${WD}/BATCHLOG/condorroot.log
0034 echo ${MYCONDOR}
0035 
0036 rm ${WD}/BSUB/jobroot_${iold}.sub
0037 cat >> ${WD}/BSUB/jobroot_${iold}.sub << EOF
0038 executable            = ${SCRIPT}/HcalRemoteMonitoringNewNewRoot.csh
0039 arguments             = ${TYPE} ${iold} ${iold} ${nevent} ${RELEASE}
0040 output                = ${MYOUTJOB}
0041 error                 = ${MYERRJOB}
0042 log                   = ${MYCONDOR}
0043 +JobFlavour           = "workday"
0044 queue 1
0045 EOF
0046 
0047 echo "Make a job"
0048 condor_submit ${WD}/BSUB/jobroot_${iold}.sub
0049 echo  "End job "
0050 sleep 1
0051 end