Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:13:45

0001 #!/bin/bash
0002 # like '/SingleElectron/Run2017D-09Aug2019_UL2017-v1/DQMIO'
0003 DATASET=$1
0004 # like 302663
0005 RUN=$2
0006 
0007 SOURCE='root://cms-xrd-global.cern.ch/'
0008 
0009 DIR=$(echo $DATASET | tr / _)
0010 
0011 FILES=$(dasgoclient -query="file dataset=$DATASET run=$RUN" -limit=-1)
0012 mkdir $DIR
0013 
0014 echo 'process.source.fileNames = cms.untracked.vstring('
0015 for f in $FILES; do
0016   edmCopyUtil "$SOURCE$f" $DIR &
0017   echo "  'file:$DIR/$(basename $f)',"
0018 done
0019 echo ')'
0020 
0021 # wait for parallel transfers to complete
0022 wait
0023 
0024 
0025 
0026 
0027