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.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))
22 )
23 
24 process.load("DQMServices.Components.EDMtoMEConverter_cff")
25 
26 process.options = cms.untracked.PSet(
27  fileMode = cms.untracked.string(config.fileMode)
28 )
29 
30 process.load("Configuration.StandardSequences.Geometry_cff")
31 process.load("Geometry.DTGeometry.dtGeometry_cfi")
32 process.DTGeometryESModule.applyAlignment = False
33 
34 process.load("CondCore.DBCommon.CondDBSetup_cfi")
35 process.load("DQMServices.Core.DQM_cfg")
36 
37 process.source = cms.Source("PoolSource",
38  processingMode = cms.untracked.string("RunsAndLumis"),
39  fileNames = cms.untracked.vstring()
40 )
41 
42 process.maxEvents = cms.untracked.PSet(
43  input = cms.untracked.int32(-1)
44 )
45 
46 process.eventInfoProvider = cms.EDFilter("EventCoordinatesSource",
47  eventInfoFolder = cms.untracked.string('EventInfo/')
48 )
49 
50 process.qTester = cms.EDAnalyzer("QualityTester",
51  prescaleFactor = cms.untracked.int32(1),
52  qtList = cms.untracked.FileInPath('CalibMuon/DTCalibration/data/QualityTests_ttrig.xml')
53 )
54 
55 #process.load("DQM.DTMonitorClient.dtResolutionTestFinalCalib_cfi")
56 process.load("DQM.DTMonitorClient.dtResolutionTest_cfi")
57 process.resolutionTest.calibModule = True
58 process.resolutionTest.histoTag2D = 'hResDistVsDist_STEP3'
59 process.resolutionTest.histoTag = 'hResDist_STEP3'
60 process.resolutionTest.STEP = 'STEP3'
61 process.resolutionTest.meanMaxLimit = 0.02
62 process.resolutionTest.sigmaTest = True
63 process.resolutionTest.slopeTest = False
64 process.resolutionTest.meanWrongHisto = cms.untracked.bool(False)
65 process.resolutionTest.sigmaWrongHisto = cms.untracked.bool(False)
66 process.resolutionTest.readFile = cms.untracked.bool(False)
67 process.resolutionTest.OutputMEsInRootFile = cms.bool(False)
68 #process.resolutionTest.inputFile = cms.untracked.string('')
69 #process.resolutionTest.OutputFileName = cms.string('')
70 
71 workflowName = '/Mu/Calibration-v1/DQM'
72 if config.dqmAtRunEnd:
73  process.DQMStore.referenceFileName = ''
74  process.dqmSaver.convention = 'Offline'
75  process.dqmSaver.workflow = workflowName
76  process.DQMStore.collateHistograms = False
77  process.EDMtoMEConverter.convertOnEndLumi = True
78  process.EDMtoMEConverter.convertOnEndRun = True
79 else:
80  process.DQMStore.referenceFileName = ''
81  process.dqmSaver.convention = 'Offline'
82  process.dqmSaver.workflow = workflowName
83  process.DQMStore.collateHistograms = True
84  process.EDMtoMEConverter.convertOnEndLumi = True
85  process.EDMtoMEConverter.convertOnEndRun = True
86  process.dqmSaver.saveByRun = -1
87  process.dqmSaver.saveAtJobEnd = True
88  process.dqmSaver.forceRunNumber = 1
89 
90 #process.dqm_step = cms.Path(process.EDMtoMEConverter*
91 # process.qTester*process.resolutionTest*process.dqmSaver)
92 process.dqm_step = cms.Path(process.EDMtoMEConverter*
93  process.dqmSaver)
94 
95 process.DQM.collectorHost = ''