13 CMSSW package DQM/TrackerCommon
16 $ getRunRegistry.py [ARGUMENTOPTION1] [ARGUMENT1] ... [OPTION2] ...
18 Valid argument options are:
20 API address of RunRegistry server
21 default: 'http://pccmsdqm04.cern.ch/runregistry/xmlrpc'
24 available: 'RUN', 'RUNLUMISECTION'
28 available: 'RPC', 'HLT', 'L1T', 'TRACKER', 'CSC', 'GLOBAL', 'ECAL'
33 - table 'RUN' : 'chart_runs_cum_evs_vs_bfield', 'chart_runs_cum_l1_124_vs_bfield', 'chart_stacked_component_status', 'csv_datasets', 'csv_run_numbers', 'csv_runs', 'tsv_datasets', 'tsv_runs', 'xml_all', 'xml_datasets'
34 - table 'RUNLUMISECTION': 'json', 'xml'
35 default: 'xml_all' (for table 'RUN')
38 default: 'runRegistry.xml'
40 lower bound of run numbers to consider
43 upper bound of run numbers to consider
48 display this help and exit
54 '-s':
'http://pccmsdqm04.cern.ch/runregistry/xmlrpc'
58 ,
'-f':
'runRegistry.xml'
66 for token
in sys.argv[ 1:-1 ]:
67 iArgument = iArgument + 1
68 if token
in sOptions.keys():
69 if not sys.argv[ iArgument + 1 ]
in sOptions.keys()
and not sys.argv[ iArgument + 1 ]
in bOptions.keys():
71 sOptions[ token ] = sys.argv[ iArgument + 1 ]
72 for token
in sys.argv[ 1: ]:
73 if token
in bOptions.keys():
75 bOptions[ token ] =
True
82 server = xmlrpclib.ServerProxy( sOptions[
'-s' ] )
84 runs =
'{runNumber} >= ' + sOptions[
'-l' ] +
'and {runNumber} <= ' + sOptions[
'-u' ]
85 data = server.DataExporter.export( sOptions[
'-T' ], sOptions[
'-w' ], sOptions[
'-t' ], runs )
87 file = open( sOptions[
'-f' ],
'w' )