CombineIntoLibrary.sh
Go to the documentation of this file.
1 #!/bin/bash
2 
3 where=$1
4 BatchID=$2
5 echo "Assembling library for files from $where into $2"
6 
7 list=temp${BatchID}_FileList.txt
8 
9 #Produce the list of files to combine
10 ls -1 $where/root/*.root > $list
11 
12 root -b -q "AssembleSingleFile.C+g(\"$list\", \"\",\"lib_$BatchID.root\")"
13 
14 cp lib_$BatchID.root $where
15 
16 #clean up temporaryfiles
17 rm $list
18