CMS 3D CMS Logo

dtDQMClient_cfg.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 from Configuration.StandardSequences.Eras import eras
3 
4 class config: pass
5 config.dqmAtRunEnd = False
6 if config.dqmAtRunEnd: config.fileMode = 'FULLMERGE'
7 else: config.fileMode = 'NOMERGE'
8 
9 process = cms.Process("DQMClient",eras.Run3)
10 
11 process.load("FWCore.MessageService.MessageLogger_cfi")
12 process.MessageLogger.debugModules = cms.untracked.vstring('')
13 process.MessageLogger.DTDQM=dict()
14 process.MessageLogger.resolution=dict()
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.FrontierConditions_GlobalTag_cff")
31 from Configuration.AlCa.autoCond import autoCond
32 process.GlobalTag.globaltag=autoCond['run3_data']
33 
34 process.load("Configuration.StandardSequences.GeometryDB_cff")
35 process.load("Configuration.StandardSequences.MagneticField_AutoFromDBCurrent_cff")
36 process.load("Geometry.DTGeometry.dtGeometry_cfi")
37 process.DTGeometryESModule.applyAlignment = False
38 process.DTGeometryESModule.fromDDD = False
39 
40 process.load("CondCore.CondDB.CondDB_cfi")
41 process.load("DQMServices.Core.DQM_cfg")
42 
43 process.source = cms.Source("PoolSource",
44  processingMode = cms.untracked.string("RunsAndLumis"),
45  fileNames = cms.untracked.vstring()
46 )
47 
48 process.maxEvents = cms.untracked.PSet(
49  input = cms.untracked.int32(-1)
50 )
51 
52 process.eventInfoProvider = cms.EDFilter("EventCoordinatesSource",
53  eventInfoFolder = cms.untracked.string('EventInfo/')
54 )
55 
56 from DQMServices.Core.DQMQualityTester import DQMQualityTester
57 process.qTester = DQMQualityTester(
58  prescaleFactor = cms.untracked.int32(1),
59  qtList = cms.untracked.FileInPath('CalibMuon/DTCalibration/data/QualityTests_ttrig.xml')
60 )
61 
62 #process.load("DQM.DTMonitorClient.dtResolutionTestFinalCalib_cfi")
63 process.load("DQM.DTMonitorClient.dtResolutionTest_cfi")
64 process.resolutionTest.calibModule = True
65 process.resolutionTest.histoTag2D = 'hResDistVsDist_STEP3'
66 process.resolutionTest.histoTag = 'hResDist_STEP3'
67 process.resolutionTest.STEP = 'STEP3'
68 process.resolutionTest.meanMaxLimit = 0.02
69 process.resolutionTest.sigmaTest = True
70 process.resolutionTest.slopeTest = False
71 process.resolutionTest.meanWrongHisto = cms.untracked.bool(False)
72 process.resolutionTest.sigmaWrongHisto = cms.untracked.bool(False)
73 process.resolutionTest.readFile = cms.untracked.bool(False)
74 process.resolutionTest.OutputMEsInRootFile = cms.bool(False)
75 #process.resolutionTest.inputFile = cms.untracked.string('')
76 #process.resolutionTest.OutputFileName = cms.string('')
77 
78 workflowName = '/Mu/Calibration-v1/DQM'
79 if config.dqmAtRunEnd:
80  process.dqmSaver.convention = 'Offline'
81  process.dqmSaver.workflow = workflowName
82  process.EDMtoMEConverter.convertOnEndLumi = True
83  process.EDMtoMEConverter.convertOnEndRun = True
84 else:
85  process.dqmSaver.convention = 'Offline'
86  process.dqmSaver.workflow = workflowName
87  process.EDMtoMEConverter.convertOnEndLumi = True
88  process.EDMtoMEConverter.convertOnEndRun = True
89  process.dqmSaver.saveByRun = -1
90  process.dqmSaver.saveAtJobEnd = True
91  process.dqmSaver.forceRunNumber = 1
92 
93 #process.dqm_step = cms.Path(process.EDMtoMEConverter*
94 # process.qTester*process.resolutionTest*process.dqmSaver)
95 process.dqm_step = cms.Path(process.EDMtoMEConverter*
96  process.dqmSaver)
97 
98 #process.DQM.collectorHost = ''