File indexing completed on 2023-03-17 10:53:19
0001
0002
0003
0004
0005 if( ${1} != "LED" && ${1} != "LASER" && ${1} != "PEDESTAL" && ${1} != "MIXED_PEDESTAL" && ${1} != "MIXED_LED" && ${1} != "MIXED_LASER" ) then
0006 echo " Please select run type ./parce_newsql_aleko.csh LED `date '+%Y-%m-%d_%H_%M_%S'` era2019"
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
0022 set WD="/afs/cern.ch/cms/CAF/CMSALCA/ALCA_HCALCALIB/HCALMONITORING/RDMScript"
0023 set SCRIPT=`pwd`
0024
0025 set LAST=0
0026 set OUTLAST=""
0027 set runref=0
0028 set outfile=""
0029
0030 echo "Here" ${1}
0031
0032 setenv HCALDQM_DBCONNECT cms_hcl_runinfo/Donald_2_Duck@cms_omds_adg
0033
0034 set LAST=`cat ${WD}/${1}_LIST/LASTRUN`
0035
0036 set OUTLAST=${WD}/${1}_LIST/LASTRUN
0037
0038 set outfile=${WD}/${1}_LIST/runlist.tmp.${2}
0039 echo ${LAST} ${OUTLAST} ${outfile}
0040
0041 if($1 == "MIXED_PEDESTAL" || ${1} == "MIXED_LED" || ${1} == "MIXED_LASER") then
0042 python ${CMSSW_BASE}/src/DPGAnalysis/HcalTools/python/getInfo.py --runmin=${LAST} | grep led-ped-Gsel-bv-sequence | awk '{print $1"_"$3"_"$4"_"$7"_"$11}' > tmp.list.${1}
0043 set runref=${runorigled}
0044 endif
0045 if( ${1} == "LED") then
0046 python ${CMSSW_BASE}/src/DPGAnalysis/HcalTools/python/getInfo.py --runmin=${LAST} | grep LED | awk '{print $1"_"$3"_"$4"_"$7"_"$11}' > tmp.list.${1}
0047 set runref=${runorigled}
0048 endif
0049 if( ${1} == "LASER" ) then
0050 python ${CMSSW_BASE}/src/DPGAnalysis/HcalTools/python/getInfo.py --runmin=${LAST} | grep Laser | awk '{print $1"_"$3"_"$4"_"$7"_"$11}' > tmp.list.${1}
0051 set runref=${runoriglas}
0052 endif
0053 if( ${1} == "PEDESTAL" ) then
0054 set runref=${runorigped}
0055 python ${CMSSW_BASE}/src/DPGAnalysis/HcalTools/python/getInfo.py --runmin=${LAST} | grep Pedestal | awk '{print $1"_"$3"_"$4"_"$7"_"$11}' > tmp.list.${1}
0056 endif
0057
0058 touch ${outfile}
0059
0060 foreach i (`cat tmp.list.${1}`)
0061 echo ${i}
0062 set run=`echo ${i} | awk -F_ '{print $1}'`
0063 set mydate=`echo ${i} | awk -F_ '{print $2}'`
0064 set mytime=`echo ${i} | awk -F_ '{print $3}'`
0065 set nevent=`echo ${i} | awk -F_ '{print $4}'`
0066 echo ${outfile}
0067 echo ${run}"_"${run}"_"${mydate}"_"${mytime}"_"${nevent} >> ${outfile}
0068 echo ${OUTLAST}
0069 echo ${run} > ${OUTLAST}
0070 end
0071
0072 eos ls /eos/cms/store/group/dpg_hcal/comm_hcal/USC > ${WD}/${1}_LIST/fullSrc0_list_${2}