3 from __future__
import print_function
9 cool_database_string = CalibDbDefaults.cool_database_string
10 cool_folder=CalibDbDefaults.cool_folder[
't0']
14 sys.stderr.write(
"Usage: " + argv0 +
" [-h] [-s <cool database string>] [-f <cool folder>] [-t <cool tag>] [<run nr> [<run nr> [..]]]\n")
17 optlist, args = getopt.gnu_getopt(sys.argv,
'hs:f:t:')
21 for opt, oa
in optlist:
24 cool_database_string =
'sqlite://;schema=' + oa +
';dbname=COMP200'
27 cool_database_string = oa
40 sys.argv=[ sys.argv[0],
'-b' ]
44 cool_tag =
GetFolderTag(cool_database_string, cool_folder)
47 print (
"Cool database: " + cool_database_string +
" " + cool_folder +
" " + cool_tag )
53 for run_nr
in args[1:]:
54 print (
"IOVs for run ", run_nr)
55 print ((len(
"IOVs for run ") + len(run_nr) + 1) *
"=")