Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:33:44

0001 #!/bin/tcsh
0002 eval `scramv1 runtime -csh`
0003 
0004 set file=$1
0005 set name=$2
0006 set setName=$3
0007 set version=$4
0008 set tag=$5
0009 
0010 set input=templates/write_template.py
0011 set inputpoolfrag=templates/Pool_template.py
0012 set inputbtagfragment=templates/BTag_template.py
0013 set inputtestfragment=templates/testDB.py
0014 
0015 #Online fragments
0016 set inputtestfragmentOnline=templates/testDB_Online.py
0017 set inputpoolfragOnline=templates/Pool_template_Online.py
0018 set inputbtagfragmentOnline=templates/BTag_template_Online.py
0019 
0020 #set oututfragname=templates/Pool_template.py
0021 #set oututbtagfragname=templates/BTag_template.py
0022 set outputtestfragname=Test_template.py
0023 
0024 rm -f tmp.py
0025 
0026 cat $input | sed  "s#FILE#$file#g" | sed  "s#NAME#$name#g"> tmp.py
0027 rm -f test/Pool_$name.py
0028 cat $inputpoolfrag | sed  "s#NAME#$name#g" > test/Pool_$name.py
0029 rm -f test/Btag_$name.py
0030 cat $inputbtagfragment | sed  "s#NAME#$name#g" > test/Btag_$name.py
0031 rm -f test/test_$name.py
0032 cat $inputtestfragment | sed "s#NAME#$name#g" | sed "s#FILE#$file#g" > test/test_$name.py
0033 
0034 
0035 #Online test
0036 rm -f testOnline/Pool_$name.py
0037 cat $inputpoolfragOnline | sed  "s#TEMPLATE#$name#g" | sed "s#VERSION#$version#g" > testOnline/Pool_$name.py
0038 rm -f testOnline/Btag_$name.py
0039 cat $inputbtagfragmentOnline | sed  "s#TEMPLATE#$name#g"  | sed "s#VERSION#$version#g" > testOnline/Btag_$name.py
0040 rm -f testOnline/test_$name.py
0041 cat $inputtestfragmentOnline | sed "s#NAME#$name#g" | sed "s#FILE#$file#g" > testOnline/test_$name.py
0042 
0043 cat templates/Pool_template.fragment | sed "s#TAG#$tag#g" | sed "s#TEMPLATE#$name#g" | sed "s#VERSION#$version#g" >> Pool_$setName.py
0044 cat templates/Btag_template.fragment | sed "s#TEMPLATE#$name#g" | sed "s#VERSION#$version#g" >> Btag_$setName.py
0045 
0046 rm -f DBs/$name.db
0047 cmsRun tmp.py