10 if [
"$ncores" =
"" ] || [ ! -f
"$datasetlist" ]
14 echo
"Usage: $0 <book> <datasetlist> <ncores>" 16 echo
"<datasetlist> must be the name of a text file" 17 echo
"with a list of datasets to hadd together." 26 hadd /data/t3home000/dabercro/$book/$1.root /mnt/hadoop/cms/store/user/paus/$book/*$1*/*.root
32 test -d /data/t3home000/dabercro/$book || mkdir -p /data/t3home000/dabercro/$book
34 cat $datasetlist | awk -F
"+" '{ print $1 }' | uniq | xargs -P$ncores bash -c
'_do_hadd "$@"'