1 import FWCore.ParameterSet.Config
as cms
4 config.dqmAtRunEnd =
False
5 if config.dqmAtRunEnd: config.fileMode =
'FULLMERGE'
6 else: config.fileMode =
'NOMERGE'
8 process = cms.Process(
"DQMClient")
10 process.load(
"FWCore.MessageService.MessageLogger_cfi")
11 process.MessageLogger.debugModules = cms.untracked.vstring(
'')
12 process.MessageLogger.destinations = cms.untracked.vstring(
'cerr')
13 process.MessageLogger.categories.append(
'DTDQM')
14 process.MessageLogger.categories.append(
'resolution')
15 process.MessageLogger.cerr = cms.untracked.PSet(
16 threshold = cms.untracked.string(
'WARNING'),
17 noLineBreaks = cms.untracked.bool(
False),
18 DEBUG = cms.untracked.PSet(limit = cms.untracked.int32(0)),
19 INFO = cms.untracked.PSet(limit = cms.untracked.int32(0)),
20 DTDQM = cms.untracked.PSet(limit = cms.untracked.int32(-1)),
21 resolution = cms.untracked.PSet(limit = cms.untracked.int32(-1))
24 process.load(
"DQMServices.Components.EDMtoMEConverter_cff")
26 process.options = cms.untracked.PSet(
27 fileMode = cms.untracked.string(config.fileMode)
30 process.load(
"Configuration.StandardSequences.FrontierConditions_GlobalTag_condDBv2_cff")
31 process.GlobalTag.globaltag =
''
33 process.load(
"Configuration.StandardSequences.GeometryDB_cff")
34 process.load(
"Geometry.DTGeometry.dtGeometry_cfi")
35 process.DTGeometryESModule.applyAlignment =
False
36 process.DTGeometryESModule.fromDDD =
False
38 process.load(
"CondCore.DBCommon.CondDBSetup_cfi")
39 process.load(
"DQMServices.Core.DQM_cfg")
41 process.source = cms.Source(
"PoolSource",
42 processingMode = cms.untracked.string(
"RunsAndLumis"),
43 fileNames = cms.untracked.vstring()
46 process.maxEvents = cms.untracked.PSet(
47 input = cms.untracked.int32(-1)
50 process.eventInfoProvider = cms.EDFilter(
"EventCoordinatesSource",
51 eventInfoFolder = cms.untracked.string(
'EventInfo/')
54 process.qTester = cms.EDAnalyzer(
"QualityTester",
55 prescaleFactor = cms.untracked.int32(1),
56 qtList = cms.untracked.FileInPath(
'CalibMuon/DTCalibration/data/QualityTests_ttrig.xml')
60 process.load(
"DQM.DTMonitorClient.dtResolutionTest_cfi")
61 process.resolutionTest.calibModule =
True
62 process.resolutionTest.histoTag2D =
'hResDistVsDist_STEP3'
63 process.resolutionTest.histoTag =
'hResDist_STEP3'
64 process.resolutionTest.STEP =
'STEP3'
65 process.resolutionTest.meanMaxLimit = 0.02
66 process.resolutionTest.sigmaTest =
True
67 process.resolutionTest.slopeTest =
False
68 process.resolutionTest.meanWrongHisto = cms.untracked.bool(
False)
69 process.resolutionTest.sigmaWrongHisto = cms.untracked.bool(
False)
70 process.resolutionTest.readFile = cms.untracked.bool(
False)
71 process.resolutionTest.OutputMEsInRootFile = cms.bool(
False)
75 workflowName =
'/Mu/Calibration-v1/DQM'
76 if config.dqmAtRunEnd:
77 process.DQMStore.referenceFileName =
''
78 process.dqmSaver.convention =
'Offline'
79 process.dqmSaver.workflow = workflowName
80 process.DQMStore.collateHistograms =
False
81 process.EDMtoMEConverter.convertOnEndLumi =
True
82 process.EDMtoMEConverter.convertOnEndRun =
True
84 process.DQMStore.referenceFileName =
''
85 process.dqmSaver.convention =
'Offline'
86 process.dqmSaver.workflow = workflowName
87 process.DQMStore.collateHistograms =
True
88 process.EDMtoMEConverter.convertOnEndLumi =
True
89 process.EDMtoMEConverter.convertOnEndRun =
True
90 process.dqmSaver.saveByRun = -1
91 process.dqmSaver.saveAtJobEnd =
True
92 process.dqmSaver.forceRunNumber = 1
96 process.dqm_step = cms.Path(process.EDMtoMEConverter*