2 "Interface with the DBS API to get the whatever you want of a requirements. ALWAYS RETURN A LIST OF STRINGS"
4 from DBSAPI.dbsApi
import DbsApi
6 args[
'url']=
'http://cmsdbsprod.cern.ch/cms_dbs_prod_global/servlet/DBSServlet'
7 args[
'version']=
'DBS_2_0_9'
10 data = api.executeQuery(
"find %s where %s" % (toFind, requirements))
12 dbs = domresults.getElementsByTagName(
'dbs')
13 result = dbs[0].getElementsByTagName(
'results')
14 rows=result[0].getElementsByTagName(
'row')
17 resultXML = row.getElementsByTagName(toFind)[0]
18 node=(resultXML.childNodes)[0]
19 retList.append(str(node.nodeValue))
25 'ZTT' : {
'primds' :
'RelValZTT',
'tier' :
'GEN-SIM-RECO',},
26 'QCD' : {
'primds' :
'RelValQCD_FlatPt_15_3000',
'tier' :
'GEN-SIM-RECO',},
27 'ZMM' : {
'primds' :
'RelValZMM',
'tier' :
'GEN-SIM-RECO',},
28 'ZEE' : {
'primds' :
'RelValZEE',
'tier' :
'GEN-SIM-RECO',},
30 'RealData' : {
'primds' :
'Jet',
'tier' :
'RECO',
'dataset' :
'*RelVal*'},
31 'RealMuonsData' : {
'primds' :
'Mu',
'tier' :
'RECO',
'dataset' :
'*RelVal*'},
32 'RealElectronsData' : {
'primds' :
'Electron',
'tier' :
'RECO',
'dataset' :
'*RelVal*'},
34 'ZTTFastSim' : {
'primds' :
'RelValZTT',
'tier' :
'GEN-SIM-DIGI-RECO',
'dataset' :
'*FastSim*',},
37 'ZEEFastSim' : {
'primds' :
'RelValZEE',
'tier' :
'GEN-SIM-DIGI-RECO',
'dataset' :
'*FastSim*',},
void parseString(std::string &title)