Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #!/bin/csh
0002 
0003 
0004 set valdas=${1}
0005 if( ${1} == "PEDESTAL" ) then
0006 set valdas=pedestal
0007 endif
0008 
0009 if( ${1} == "LASER" ) then
0010 set valdas=laser
0011 endif
0012 
0013 echo ${valdas}
0014 ###2017-03-17_10_24_06
0015 set DAT="2017-03-20_09_36_54"
0016 
0017 set RELEASE=CMSSW_10_4_0
0018 ### Get list of done from RDM webpage ###
0019 set TYPE=${1}
0020 echo ${TYPE}
0021 if( ${TYPE} != "LED" && ${TYPE} != "LASER" && ${TYPE} != "PEDESTAL" ) then
0022 echo "Please check type " ${TYPE} "should be LED or LASER or PEDESTAL"
0023 exit
0024 endif
0025 
0026 set WD="/afs/cern.ch/cms/CAF/CMSALCA/ALCA_HCALCALIB/HCALMONITORING/RDMScript/${RELEASE}/src/RecoHcal/HcalPromptAnalysis/test/RDM"
0027 
0028 #${WD}/parce_newsql_valdas.csh ${valdas} ${DAT}
0029 ls ${WD}/${TYPE}_LIST/runlist.tmp.${DAT}
0030 
0031 set jold=194165
0032 foreach i (`cat ${WD}/${TYPE}_LIST/runlist.tmp.${DAT}`)
0033 echo "Run" ${i}
0034 
0035 set iold=`echo ${i} | awk -F _ '{print $1}'`
0036 set jold=`echo ${i} | awk -F _ '{print $2}'`
0037 set year=`echo ${i} | awk -F _ '{print $3}' | awk -F - '{print $1}'`
0038 set nevent=`echo ${i} | awk -F _ '{print $5}'`
0039 echo ${iold} ${jold} ${year} ${nevent}
0040 if( ${nevent} != "None" ) then
0041 echo "Start " ${nevent}
0042 if( ${nevent} >= "500" && ${nevent} < "1000000") then  
0043 echo  "Start job " ${nevent}
0044 ${WD}/HcalRemoteMonitoringNewNew.csh ${iold} ${DAT} ${jold} ${nevent} ${TYPE} 
0045 echo  "End job "
0046 sleep 1
0047 endif
0048 endif
0049 end