File indexing completed on 2024-04-06 12:06:27
0001
0002
0003
0004 set DAT="2017-04-18_15_27_31"
0005 set RELEASE=CMSSW_10_4_0
0006
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 echo "Start script "
0015
0016 set WD="/afs/cern.ch/cms/CAF/CMSALCA/ALCA_HCALCALIB/HCALMONITORING/RDMScript/${RELEASE}/src/RecoHcal/HcalPromptAnalysis/test/RDM"
0017
0018 cd $SCRATCH
0019
0020 ls ${WD}/${TYPE}_LIST/runlist.tmp.${DAT}
0021 touch rootlog
0022 set jold=194165
0023 foreach i (`cat ${WD}/${TYPE}_LIST/runlist.tmpn.${DAT}`)
0024 set iold=`echo ${i} | awk -F _ '{print $1}'`
0025 set jold=`echo ${i} | awk -F _ '{print $2}'`
0026 set year=`echo ${i} | awk -F _ '{print $3}' | awk -F - '{print $1}'`
0027 set nevent=`echo ${i} | awk -F _ '{print $5}'`
0028 echo ${iold} ${jold} ${year} ${nevent} >> rootlog
0029
0030 if( ${nevent} >= "500") then
0031 echo "Start job " >> rootlog
0032 ${WD}/HcalRemoteMonitoringNewNewRoot.csh ${iold} ${DAT} ${jold} ${nevent} ${TYPE} >> &rootlog
0033 echo "End job "
0034
0035 endif
0036 end