Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:46:18

0001 #!/bin/bash
0002 
0003 DATASET=$1
0004 FILELIST=$2
0005 
0006 if [ "$#" -lt '1' ] || [ $1 == "-h" ] || [ $1 == "--help" ]
0007 then
0008   printf "\nUsage: "
0009   printf "downloadFiles.sh [DataSet] [FileName(optional)]\n\n"
0010   exit 1;
0011 fi
0012  
0013 if [ "$#" != '2' ]
0014 then
0015 FILELIST="fileList.txt"
0016 fi
0017 
0018 das_client.py --limit=0 --query="file dataset=$DATASET | grep file.name, file.nevents > 0" >& $FILELIST
0019 
0020