5 from __future__
import print_function
14 CMSSW package DQM/TrackerCommon 17 $ getRunRegistry.py [ARGUMENTOPTION1] [ARGUMENT1] ... [OPTION2] ... 19 Valid argument options are: 21 API address of RunRegistry server 22 default: 'http://pccmsdqm04.cern.ch/runregistry/xmlrpc' 25 available: 'RUN', 'RUNLUMISECTION' 29 available: 'RPC', 'HLT', 'L1T', 'TRACKER', 'CSC', 'GLOBAL', 'ECAL' 34 - 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' 35 - table 'RUNLUMISECTION': 'json', 'xml' 36 default: 'xml_all' (for table 'RUN') 39 default: 'runRegistry.xml' 41 lower bound of run numbers to consider 44 upper bound of run numbers to consider 49 display this help and exit 55 '-s':
'http://pccmsdqm04.cern.ch/runregistry/xmlrpc' 59 ,
'-f':
'runRegistry.xml' 67 for token
in sys.argv[ 1:-1 ]:
68 iArgument = iArgument + 1
69 if token
in sOptions.keys():
70 if not sys.argv[ iArgument + 1 ]
in sOptions.keys()
and not sys.argv[ iArgument + 1 ]
in bOptions.keys():
72 sOptions[ token ] = sys.argv[ iArgument + 1 ]
73 for token
in sys.argv[ 1: ]:
74 if token
in bOptions.keys():
76 bOptions[ token ] =
True 83 server = xmlrpclib.ServerProxy( sOptions[
'-s' ] )
85 runs =
'{runNumber} >= ' + sOptions[
'-l' ] +
'and {runNumber} <= ' + sOptions[
'-u' ]
86 data = server.DataExporter.export( sOptions[
'-T' ], sOptions[
'-w' ], sOptions[
'-t' ], runs )
88 file = open( sOptions[
'-f' ],
'w' )
S & print(S &os, JobReport::InputFile const &f)