Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:08:46

0001 #!/bin/csh
0002 
0003 set runnumber=${1}
0004 set refnumber=${3}
0005 set runNevents=${4}
0006 set CALIB=${5}
0007 set ERA=${6}
0008 
0009 set RELEASE=CMSSW_10_4_0
0010 
0011 set fullSrc0='/store/group/dpg_hcal/comm_hcal/USC'
0012 set fullSrc1='/store/group/dpg_hcal/comm_hcal/LS1'
0013 set fullSrc='NO'
0014 set HistoDir=`pwd`
0015 set WD=`pwd`
0016 
0017 echo ${runnumber} >> ${WD}/LOG/batchlog
0018 grep -q ${runnumber} ${WD}/${CALIB}_LIST/fullSrc0_list_${2}
0019 if( ${status} == "0" ) then
0020 set fullSrc=${fullSrc0}
0021 endif
0022 
0023 grep -q ${runnumber} ${WD}/${CALIB}_LIST/fullSrc1_list_${2}
0024 if( ${status} == "0" ) then
0025 set fullSrc=${fullSrc1}
0026 endif
0027 
0028 if( ${fullSrc} == "NO" ) then
0029 echo "No Batch submission" ${runnumber} >> ${WD}/batchlog
0030 exit
0031 endif
0032 
0033 echo "Batch submission" ${fullSrc} " " ${runnumber} >> ${WD}/batchlog
0034 
0035 ###exit
0036 
0037 ### We are at working node
0038 mkdir ${runnumber}
0039 setenv WORK `pwd`/${runnumber}
0040 
0041 cd ..
0042 cmsenv
0043 cp ${WD}/remoteMonitoring_${CALIB}_${ERA}_cfg.py ${WORK}/remoteMonitoring_cfg.py
0044 cp ${WD}/RemoteMonitoringMAP.cc ${WORK}
0045 cp ${WD}/compile.csh ${WORK}
0046 cp ${WD}/LogEleMapdb.h ${WORK}
0047 cp ${WD}/${CALIB}_LIST/runlist.tmp.${2} ${WORK}/runlist.tmp
0048 
0049 cd ${WORK}
0050 
0051 #### cmsRun Start
0052 ### Temporarily
0053 #rm LOG/log_${runnumber}
0054 #rm ${HistoDir}/${CALIB}_${runnumber}.root
0055 
0056 echo " Start CMS run ">${WD}/log_${runnumber}
0057 echo ${LD_LIBRARY_PATH} >>${WD}/log_${runnumber}
0058 
0059 cmsRun remoteMonitoring_cfg.py ${runnumber} ${fullSrc} ${HistoDir} >> & ${WD}/log_${runnumber}
0060 mv ${HistoDir}/LED_${runnumber}.root ${HistoDir}/${CALIB}_${runnumber}.root
0061 
0062 echo " After CMS run ">>${WD}/log_${runnumber}
0063 ./compile.csh RemoteMonitoringMAP.cc  >> & ${WD}/log_${runnumber}
0064 ./RemoteMonitoringMAP.cc.exe "${HistoDir}/${CALIB}_${runnumber}.root" "${HistoDir}/${CALIB}_${refnumber}.root" ${CALIB} >> & ${WD}/log_${runnumber}
0065