10 os.path.join(os.curdir,
"dqm_run_config"),
13 config = ConfigParser.ConfigParser()
14 files_read = config.read(conf_locations)
16 print "Loaded configuration file from:", files_read
21 dqmRunConfigDefaults = {
23 type = cms.untracked.string(
"userarea"),
24 collectorPort = cms.untracked.int32(9190),
25 collectorHost = cms.untracked.string(
'dqm-c2d07-29.cms'),
28 type = cms.untracked.string(
"playback"),
29 collectorPort = cms.untracked.int32(9090),
30 collectorHost = cms.untracked.string(
'dqm-integration.cms'),
32 'production': cms.PSet(
33 type = cms.untracked.string(
"production"),
34 collectorPort = cms.untracked.int32(9090),
35 collectorHost = cms.untracked.string(
'dqm-prod-local.cms'),
41 dqmRunConfigType =
"userarea"
42 if dqmFileConfig.has_option(
"host",
"type"):
43 dqmRunConfigType = dqmFileConfig.get(
"host",
"type")
45 dqmRunConfig = dqmRunConfigDefaults[dqmRunConfigType]
48 if dqmFileConfig.has_option(
"host",
"collectorPort"):
49 dqmRunConfig.collectorPort = int(dqmFileConfig.get(
"host",
"collectorPort"))
51 if dqmFileConfig.has_option(
"host",
"collectorHost"):
52 dqmRunConfig.collectorHost = dqmFileConfig.get(
"host",
"collectorHost")
56 print "dqmRunConfig:", dqmRunConfig
60 DQM = cms.Service(
"DQM",
61 debug = cms.untracked.bool(
False),
62 publishFrequency = cms.untracked.double(5.0),
63 collectorPort = dqmRunConfig.collectorPort,
64 collectorHost = dqmRunConfig.collectorHost,
65 filter = cms.untracked.string(
''),
68 DQMMonitoringService = cms.Service(
"DQMMonitoringService")
74 dqmSaver.path =
"./upload"
75 dqmSaver.tag =
"PID%06d" % os.getpid()
76 dqmSaver.producer =
'DQM'
77 dqmSaver.backupLumiCount = 15
def loadDQMRunConfigFromFile