File indexing completed on 2024-04-06 12:06:30
0001
0002
0003
0004
0005 if( ${1} != "LED" && ${1} != "laser" && ${1} != "pedestal" ) then
0006 echo " Please select run type ./parce_newsql_valdas.csh LED `date '+%Y-%m-%d_%H_%M_%S'`"
0007 exit
0008 endif
0009
0010 set runorigped=286893
0011 set runorigled=286946
0012 set runoriglas=286766
0013
0014 if( ${3} == "era2019" ) then
0015 set runorigled=328157
0016 endif
0017
0018
0019
0020
0021 set RELEASE=CMSSW_10_4_0
0022 set WD=/afs/cern.ch/cms/CAF/CMSALCA/ALCA_HCALCALIB/HCALMONITORING/RDMScript/${RELEASE}/src/RecoHcal/HcalPromptAnalysis/test/RDM
0023
0024 set LAST=0
0025 set OUTLAST=lasttmp
0026 set runref=0
0027 set outfile=tmp
0028
0029 echo "Here" ${1}
0030
0031 if( ${1} == "LED" ) then
0032 set LAST=`cat ${WD}/LED_LIST/LASTRUN`
0033 set OUTLAST=${WD}/LED_LIST/LASTRUN
0034
0035 echo ${LAST}
0036
0037 python /afs/cern.ch/cms/CAF/CMSALCA/ALCA_HCALCALIB/HCALMONITORING/RDMScript/${RELEASE}/src/RecoHcal/HcalPromptAnalysis/test/RDM/hcal_runs_valdas.py ${LAST} - | grep ${1} | sed 's/"//g' > tmp.list
0038 cat tmp.list | sed s/" "/_/g > tmp.list.${1}
0039
0040 set runref=${runorigled}
0041 touch ${WD}/LED_LIST/runlist.tmp.${2}
0042 set outfile=${WD}/LED_LIST/runlist.tmp.${2}
0043 endif
0044
0045 if( ${1} == "laser" ) then
0046 echo "Laser"
0047 set runref=${runoriglas}
0048 set LAST=`cat ${WD}/LASER_LIST/LASTRUN`
0049 set OUTLAST=${WD}/LASER_LIST/LASTRUN
0050 python /afs/cern.ch/cms/CAF/CMSALCA/ALCA_HCALCALIB/HCALMONITORING/RDMScript/${RELEASE}/src/RecoHcal/HcalPromptAnalysis/test/RDM/hcal_runs_valdas.py ${LAST} - | grep ${1} | sed 's/"//g' > tmp.list
0051 cat tmp.list | sed s/" "/_/g > tmp.list.${1}
0052 rm tmp.list
0053 touch ${WD}/LASER_LIST/runlist.tmp.${2}
0054 set outfile=${WD}/LASER_LIST/runlist.tmp.${2}
0055 endif
0056
0057 if( ${1} == "pedestal" ) then
0058 set runref=${runorigped}
0059 set LAST=`cat ${WD}/PEDESTAL_LIST/LASTRUN`
0060 set OUTLAST=${WD}/PEDESTAL_LIST/LASTRUN
0061 python /afs/cern.ch/cms/CAF/CMSALCA/ALCA_HCALCALIB/HCALMONITORING/RDMScript/${RELEASE}/src/RecoHcal/HcalPromptAnalysis/test/RDM/hcal_runs_valdas.py ${LAST} - | grep ${1} | sed 's/"//g' > tmp.list
0062 cat tmp.list | sed s/" "/_/g > tmp.list.${1}
0063 rm tmp.list
0064 touch ${WD}/PEDESTAL_LIST/runlist.tmp.${2}
0065 set outfile=${WD}/PEDESTAL_LIST/runlist.tmp.${2}
0066 endif
0067
0068 echo "Here 1"
0069 foreach i (`cat tmp.list.${1}`)
0070 set run=`echo ${i} | awk -F_ '{print $1}'`
0071 set mydate=`echo ${i} | awk -F_ '{print $3}'`
0072 set mytime=`echo ${i} | awk -F_ '{print $4}'`
0073 set nevent=`echo ${i} | awk -F_ '{print $5}'`
0074 if( ${run} > ${LAST} ) then
0075 if( ${1} == "LED" ) then
0076 echo ${run}"_"${runref}"_"${mydate}"_"${mytime}"_"${nevent} >> ${outfile}
0077 else
0078 echo ${run}"_"${run}"_"${mydate}"_"${mytime}"_"${nevent} >> ${outfile}
0079 endif
0080 rm ${OUTLAST}
0081 echo ${run} > ${OUTLAST}
0082 endif
0083 end
0084 if( ${1} == "LED" ) then
0085 eos ls /eos/cms/store/group/dpg_hcal/comm_hcal/USC > ${WD}/LED_LIST/fullSrc0_list_${2}
0086 endif
0087 if( ${1} == "laser" ) then
0088 eos ls /eos/cms/store/group/dpg_hcal/comm_hcal/USC > ${WD}/LASER_LIST/fullSrc0_list_${2}
0089 endif
0090 if( ${1} == "pedestal" ) then
0091 eos ls /eos/cms/store/group/dpg_hcal/comm_hcal/USC > ${WD}/PEDESTAL_LIST/fullSrc0_list_${2}
0092 endif
0093