Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #!/bin/csh
0002 
0003 ###set DAT="TEST"
0004 ###set DAT="2015-10-07_14_50_47"
0005 
0006 cmsenv
0007 
0008 set DAT=TEST
0009 
0010 set ERA=${2}
0011 set RELEASE=${CMSSW_VERSION}
0012 
0013 ### Get list of done from RDM webpage ###
0014 set TYPE=${1}
0015 echo ${TYPE}
0016 if( ${TYPE} != "LED" && ${TYPE} != "LASER" && ${TYPE} != "PEDESTAL" ) then
0017 echo "Please check type " ${TYPE} "should be LED or LASER or PEDESTAL"
0018 exit
0019 endif
0020 
0021 set WD="/afs/cern.ch/cms/CAF/CMSALCA/ALCA_HCALCALIB/HCALMONITORING/RDMScript"
0022 set SCRIPT=`pwd`
0023 set PYTHON=${CMSSW_BASE}/src/DPGAnalysis/HcalTools/python
0024 echo ${WD}
0025 
0026 #${CMSSW_BASE}/src/DPGAnalysis/HcalTools/scripts/rmt/parce_newsql_aleko.csh ${TYPE} ${DAT} ${ERA} 
0027 
0028 #exit
0029 ls ${WD}/${TYPE}_LIST/runlist.tmp.${DAT}
0030 rm ${WD}/${TYPE}_LIST/RUNS_TMP
0031 cat ${WD}/${TYPE}_LIST/runlist.tmp.${DAT} > ${WD}/${TYPE}_LIST/RUNS_TMP
0032 
0033 set jold=194165
0034 foreach i (`cat ${WD}/${TYPE}_LIST/RUNS_TMP`)
0035 echo "Run" ${i}
0036 
0037 set iold=`echo ${i} | awk -F _ '{print $1}'`
0038 set jold=`echo ${i} | awk -F _ '{print $2}'`
0039 set year=`echo ${i} | awk -F _ '{print $3}' | awk -F - '{print $1}'`
0040 set nevent=`echo ${i} | awk -F _ '{print $5}'`
0041 echo ${iold} ${jold} ${year} ${nevent}
0042 if( ${nevent} != "None" ) then
0043 if( ${nevent} >= "500" && ${nevent} <= "11000") then  
0044 echo  "Start job "
0045 
0046 ${SCRIPT}/HcalRemoteMonitoringNewNewTestInt.csh ${iold} ${DAT} ${jold} ${nevent} ${TYPE} ${ERA} ${RELEASE} ${SCRAM_ARCH} ${PYTHON}
0047 
0048 sleep 1
0049 endif
0050 endif
0051 end