Back to home page

Project CMSSW displayed by LXR

 
 

    


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

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