Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #!/bin/csh
0002 ###
0003 ### Day/Time
0004 ### All files have the particular time
0005 ###
0006 #set DAT=`date '+%Y-%m-%d_%H_%M_%S'`
0007 set RELEASE=CMSSW_10_4_0
0008 set WD='/afs/cern.ch/cms/CAF/CMSALCA/ALCA_HCALCALIB/HCALMONITORING/RDMScript/${RELEASE}/src/RecoHcal/HcalPromptAnalysis/test/RDM'
0009 
0010 wget -q http://cmshcalweb01.cern.ch/DetDiag/Local_HTML/runlist.html -O runlist.html.${1}
0011 
0012 cat runlist.html.${1} | sed s/\"//g | sed st\>\/t' 'tg | sed sk\<\/td\>kkg | sed sk\<\/a\>kkg | tr '\n' ' ' | awk -F '</tr>' '{for(i=1;i<=NF;i++) printf $i"\n"}' | awk -F '<tr> <td' '{print $2}' | tail -n +4 | sed s/' '/-/g | grep LED > runlist.tmp0.${1}
0013 
0014 set count=0
0015 
0016 foreach i (`cat runlist.tmp0.${1}`)
0017 set TYPE=`echo $i | awk -F - '{print $13}'`
0018 set HTML=`echo $i | awk -F - '{print $25}' | awk -F 'href=' '{print $2}'`
0019 set RUNNUMBER=`echo $i | awk -F - '{print $9}'`
0020 set DAY=`echo $i | awk -F - '{print $19}'` 
0021 set MONTH=`echo $i | awk -F - '{print $18}'`
0022 set YEAR=`echo $i | awk -F - '{print $17}'`
0023 #if ( ${TYPE} == "LED" ) then
0024 #echo ${TYPE} ${HTML} ${RUNNUMBER}
0025 #wget -q ${HTML} -O ${WD}/LED_LIST/index.html.${1}
0026 #set NEVENTS=`cat ${WD}/LED_LIST/index.html.${1} | tail -n +14 | head -n 1 | awk -F '>' '{print $2}' | awk -F '<' '{print $1}'`
0027 #echo ${RUNNUMBER} "Number of events" ${NEVENTS}
0028 #if( ${NEVENTS} >= "10000" && ${RUNNUMBER} > ${LAST} ) then
0029 #echo ${RUNNUMBER} "Number of events" ${NEVENTS} >> ${WD}/LED_LIST/goodledruns.${1}
0030 #grep -q ${RUNNUMBER} ${WD}/LED_LIST/done.html.${1}
0031 #if( ${status} == "1") then
0032 #echo "${RUNNUMBER}_${REF}" >> ${WD}/LED_LIST/runlist.tmp.${1} 
0033 #if( ${count} == "0" ) then
0034 #rm LED_LIST/LASTRUN
0035 #echo ${RUNNUMBER} > LED_LIST/LASTRUN
0036 #endif
0037 #@ count = ${count} + "1"
0038 #endif
0039 #endif
0040 #rm ${WD}/LED_LIST/index.html.${1}
0041 #endif
0042 end
0043 
0044 
0045 
0046 
0047