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 DAT=`date '+%Y-%m-%d_%H_%M_%S'`
0004 
0005 set DAT="2016-05-11_18_25_40"
0006 
0007 set valdas=${1}
0008 if( ${1} == "PEDESTAL" ) then
0009 set valdas=pedestal
0010 endif
0011 
0012 if( ${1} == "LASER" ) then
0013 set valdas=laser
0014 endif
0015 
0016 echo ${valdas}
0017 
0018 ### set DAT="2015-10-07_14_50_47"
0019 
0020 set RELEASE=CMSSW_10_4_0
0021 ### Get list of done from RDM webpage ###
0022 set TYPE=${1}
0023 echo ${TYPE}
0024 if( ${TYPE} != "LED" && ${TYPE} != "LASER" && ${TYPE} != "PEDESTAL" ) then
0025 echo "Please check type " ${TYPE} "should be LED or LASER or PEDESTAL"
0026 exit
0027 endif
0028 
0029 set WD="/afs/cern.ch/cms/CAF/CMSALCA/ALCA_HCALCALIB/HCALMONITORING/RDMScript/${RELEASE}/src/RecoHcal/HcalPromptAnalysis/test/RDM"
0030 
0031 #${WD}/parce_newsql_valdas.csh ${valdas} ${DAT}
0032 #ls ${WD}/${TYPE}_LIST/runlist.tmp.${DAT}
0033 
0034 set jold=194165
0035 foreach i (`cat ${WD}/${TYPE}_LIST/runlist.tmp.${DAT}`)
0036 echo "Run" ${i}
0037 
0038 set iold=`echo ${i} | awk -F _ '{print $1}'`
0039 set jold=`echo ${i} | awk -F _ '{print $2}'`
0040 set year=`echo ${i} | awk -F _ '{print $3}' | awk -F - '{print $1}'`
0041 set nevent=`echo ${i} | awk -F _ '{print $5}'`
0042 echo ${iold} ${jold} ${year} ${nevent}
0043 if( ${nevent} != "None" ) then
0044 if( ${nevent} >= "500") then  
0045 echo  "Start job "
0046 ${WD}/HcalRemoteMonitoringNewNew.csh ${iold} ${DAT} ${jold} ${nevent} ${TYPE}
0047 ###ls ${WD}/HcalRemoteMonitoringNewNew.csh
0048 ####/afs/cern.ch/cms/caf/scripts/cmsbsub -q 8nh -o ${WD}/LOG1/batchlog_${iold}.log -e ${WD}/LOG1/ebatchlog_${iold}.log ${WD}/HcalRemoteMonitoringNewNew.csh ${iold} ${DAT} ${jold} ${nevent} ${TYPE}
0049 echo  "End job "
0050 break;
0051 sleep 1
0052 endif
0053 endif
0054 end