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 set DAT="2015-09-15_18_50_34"
0005 set RELEASE=CMSSW_10_4_0
0006 ### Get list of done from RDM webpage ###
0007 set TYPE=${1}
0008 echo ${TYPE}
0009 if( ${TYPE} != "LED" && ${TYPE} != "LASER" && ${TYPE} != "PEDESTAL" ) then
0010 echo "Please check type " ${TYPE} "should be LED or LASER or PEDESTAL"
0011 exit
0012 endif
0013 
0014 set WD="/afs/cern.ch/cms/CAF/CMSALCA/ALCA_HCALCALIB/HCALMONITORING/RDMScript/${RELEASE}/src/RecoHcal/HcalPromptAnalysis/test/RDM"
0015 
0016 cd $SCRATCH
0017 
0018 ls ${WD}/${TYPE}_LIST/runlist.tmp.${DAT}
0019 touch rootlog
0020 set jold=194165
0021 foreach i (`cat ${WD}/${TYPE}_LIST/runlist.tmp.${DAT}`)
0022 set iold=`echo ${i} | awk -F _ '{print $1}'`
0023 set jold=`echo ${i} | awk -F _ '{print $2}'`
0024 set year=`echo ${i} | awk -F _ '{print $3}' | awk -F - '{print $1}'`
0025 set nevent=`echo ${i} | awk -F _ '{print $5}'`
0026 echo ${iold} ${jold} ${year} >> rootlog
0027 #if( ${year} == "2011" ) then
0028 if( ${nevent} >= "500") then  
0029 echo  "Start job " >> rootlog
0030 ${WD}/HcalRemoteMonitoringNewNewRoot.csh ${iold} ${DAT} ${jold} ${nevent} ${TYPE} >> &rootlog
0031 echo  "End job "
0032 endif
0033 end