Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-03-08 02:27:14

0001 #!/bin/tcsh
0002 
0003 set time=`dasgoclient --query="file dataset=/HcalNZS/Run2018A-v1/RAW  run=316636 | grep file.name, file.size, file.date" | awk '{print $3}' | awk -F , '{for ( k=1 ; k <= NF ; k++ ) {print $k"\n"}}' | grep last_modification_date |  awk -F : '{print $2}'`
0004 
0005 set nevents=`dasgoclient --query="file dataset=/HcalNZS/Run2018A-v1/RAW  run=316636 | grep file.name, file.size, file.date" | awk '{print $3}' | awk -F , '{for ( k=1 ; k <= NF ; k++ ) {print $k"\n"}}' | grep nevents |  awk -F : '{print $2}'`
0006 
0007 set size=`dasgoclient --query="file dataset=/HcalNZS/Run2018A-v1/RAW  run=316636 | grep file.name, file.size, file.date" | awk '{print $3}' | awk -F , '{for ( k=1 ; k <= NF ; k++ ) {print $k"\n"}}' | grep size |  awk -F : '{print $2}'`
0008 
0009 set time1=`date -d @${time}`
0010 
0011 set time2=`date -d @${time} +%Y-%m-%d:%H-%M-%S`
0012 
0013 
0014 echo ${time} ${nevents}
0015 
0016 echo ${time1}
0017 
0018 echo ${time2}
0019 
0020 echo ${time} ${nevents} ${size}
0021 
0022 dasgoclient  --query="file dataset=/HcalNZS/Run2018A-v1/RAW  run=316636 | grep file.size, file.nevents, file.modification_time "  > tmp
0023 
0024   echo "111"
0025 cat tmp 
0026 set sizetmp=`cat tmp | awk '{print $1}'`
0027 set neventstmp=`cat tmp | awk '{print $2}'`
0028 set timetmp=`cat tmp | awk '{print $3}'`
0029 set timetmp2=`date -d @${timetmp} +%Y-%m-%d:%H-%M-%S`
0030   echo "final:run=316636"
0031 echo ${sizetmp} ${neventstmp} ${timetmp2}
0032   echo "222"
0033 set nls=`dasgoclient --query="summary dataset=/HcalNZS/Run2018A-v1/RAW  run=316636 | grep summary.nfiles, summary.nlumis, summary.nevents" | awk '{print $3}' | awk -F , '{for ( k=1 ; k <= NF ; k++ ) {print $k"\n"}}' | grep nlumis |  awk -F : '{print $2}'`
0034 
0035 
0036   echo "start:run=316700"
0037 dasgoclient  --query="file dataset=/HcalNZS/Run2018A-v1/RAW  run=316700 | grep file.size, file.nevents, file.modification_time "  > tmp
0038 cat tmp 
0039   echo "333"
0040 set sizetmp=`cat tmp | awk '{print $1}'`
0041 sizetmp=`echo "${sizetmp}" | sed 'sk,k\ kg' | sed 'sk;k\ kg'`
0042 set neventstmp=`cat tmp | awk '{print $2}'`
0043 neventstmp=`echo "${neventstmp}" | sed 'sk,k\ kg' | sed 'sk;k\ kg'`
0044 set timetmp=`cat tmp | awk '{print $3}'`
0045 timetmp=`echo "${timetmp}" | sed 'sk,k\ kg' | sed 'sk;k\ kg'`
0046   echo "444"
0047 set timetmp2=`date -d @${timetmp} +%Y-%m-%d:%H-%M-%S`
0048   echo "final:run=316700"
0049 echo ${sizetmp} ${neventstmp} ${timetmp2}
0050 #echo ${sizetmp} ${neventstmp} 
0051 
0052   echo "555"
0053 #set nls=`dasgoclient --query="summary dataset=/HcalNZS/Run2018A-v1/RAW  run=316636 | grep summary.nfiles, summary.nlumis, summary.nevents" | awk '{print $3}' | awk -F , '{for ( k=1 ; k <= NF ; k++ ) {print $k"\n"}}' | grep nlumis |  awk -F : '{print $2}'`
0054 #echo ${nls}
0055 
0056 #  echo "for starting:"
0057 #runList=`cat ${sizetmp}`
0058 #for i in ${runList} ; do
0059 #sizetmp=`echo "${sizetmp}" | sed 'sk,k\ kg' | sed 'sk;k\ kg'`
0060 #for i in ${runList} ; do
0061 #NRUN=$i
0062 #echo $NRUN
0063 #done
0064 
0065 
0066   echo "final END"
0067 
0068 
0069 
0070 
0071 
0072 
0073 
0074 
0075 
0076 
0077 
0078 
0079 #dasgoclient --query="file dataset=/HcalNZS/Run2018A-v1/RAW run=316636 | grep file.size, file.nevents, file.modification_time"
0080 #6991615   63   1527727485
0081 
0082 
0083 #dasgoclient --query="summary dataset=/HcalNZS/Run2018A-v1/RAW run=316636 |grep summary.nlumis, summary.nevents"
0084 #19   63 
0085 
0086 #date -d @1527727485
0087 #Thu May 31 02:44:45 CEST 2018
0088 
0089 #date -d @1527727485 +%Y-%m-%d:%H-%M-%S
0090 #2018-05-31:02-44-45
0091