CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
dtDQMClient_cfg.py
Go to the documentation of this file.
2 
3 class config: pass
4 config.dqmAtRunEnd = False
5 if config.dqmAtRunEnd: config.fileMode = 'FULLMERGE'
6 else: config.fileMode = 'NOMERGE'
7 
8 process = cms.Process("DQMClient")
9 
10 process.load("FWCore.MessageLogger.MessageLogger_cfi")
11 
12 process.load("DQMServices.Components.EDMtoMEConverter_cff")
13 
14 process.options = cms.untracked.PSet(
15  fileMode = cms.untracked.string(config.fileMode)
16 )
17 
18 process.load("Configuration.StandardSequences.Geometry_cff")
19 process.load("Geometry.DTGeometry.dtGeometry_cfi")
20 process.DTGeometryESModule.applyAlignment = False
21 
22 process.load("CondCore.DBCommon.CondDBSetup_cfi")
23 process.load("DQMServices.Core.DQM_cfg")
24 
25 process.source = cms.Source("PoolSource",
26  processingMode = cms.untracked.string("RunsAndLumis"),
27  fileNames = cms.untracked.vstring()
28 )
29 
30 process.maxEvents = cms.untracked.PSet(
31  input = cms.untracked.int32(-1)
32 )
33 
34 process.eventInfoProvider = cms.EDFilter("EventCoordinatesSource",
35  eventInfoFolder = cms.untracked.string('EventInfo/')
36 )
37 
38 process.qTester = cms.EDAnalyzer("QualityTester",
39  prescaleFactor = cms.untracked.int32(1),
40  qtList = cms.untracked.FileInPath('CalibMuon/DTCalibration/data/QualityTests_ttrig.xml')
41 )
42 
43 process.load("DQM.DTMonitorClient.dtResolutionTestFinalCalib_cfi")
44 
45 workflowName = '/Mu/Calibration-v1/DQM'
46 if config.dqmAtRunEnd:
47  process.DQMStore.referenceFileName = ''
48  process.dqmSaver.convention = 'Offline'
49  process.dqmSaver.workflow = workflowName
50  process.DQMStore.collateHistograms = False
51  process.EDMtoMEConverter.convertOnEndLumi = True
52  process.EDMtoMEConverter.convertOnEndRun = True
53 else:
54  process.DQMStore.referenceFileName = ''
55  process.dqmSaver.convention = 'Offline'
56  process.dqmSaver.workflow = workflowName
57  process.DQMStore.collateHistograms = True
58  process.EDMtoMEConverter.convertOnEndLumi = True
59  process.EDMtoMEConverter.convertOnEndRun = True
60  process.dqmSaver.saveByRun = -1
61  process.dqmSaver.saveAtJobEnd = True
62  process.dqmSaver.forceRunNumber = 1
63 
64 process.dqm_step = cms.Path(process.EDMtoMEConverter*
65  process.resolutionTest*process.qTester*process.dqmSaver)
66 process.DQM.collectorHost = ''