CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
dtDQMClient_cfg.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
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.DTDQM=dict()
13 process.MessageLogger.resolution=dict()
14 process.MessageLogger.cerr = cms.untracked.PSet(
15  threshold = cms.untracked.string('WARNING'),
16  noLineBreaks = cms.untracked.bool(False),
17  DEBUG = cms.untracked.PSet(limit = cms.untracked.int32(0)),
18  INFO = cms.untracked.PSet(limit = cms.untracked.int32(0)),
19  DTDQM = cms.untracked.PSet(limit = cms.untracked.int32(-1)),
20  resolution = cms.untracked.PSet(limit = cms.untracked.int32(-1))
21 )
22 
23 process.load("DQMServices.Components.EDMtoMEConverter_cff")
24 
25 process.options = cms.untracked.PSet(
26  fileMode = cms.untracked.string(config.fileMode)
27 )
28 
29 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
30 process.GlobalTag.globaltag = ''
31 
32 process.load("Configuration.StandardSequences.GeometryDB_cff")
33 process.load("Configuration.StandardSequences.MagneticField_AutoFromDBCurrent_cff")
34 process.load("Geometry.DTGeometry.dtGeometry_cfi")
35 process.DTGeometryESModule.applyAlignment = False
36 process.DTGeometryESModule.fromDDD = False
37 
38 process.load("CondCore.CondDB.CondDB_cfi")
39 process.load("DQMServices.Core.DQM_cfg")
40 
41 process.source = cms.Source("PoolSource",
42  processingMode = cms.untracked.string("RunsAndLumis"),
43  fileNames = cms.untracked.vstring()
44 )
45 
46 process.maxEvents = cms.untracked.PSet(
47  input = cms.untracked.int32(-1)
48 )
49 
50 process.eventInfoProvider = cms.EDFilter("EventCoordinatesSource",
51  eventInfoFolder = cms.untracked.string('EventInfo/')
52 )
53 
54 from DQMServices.Core.DQMQualityTester import DQMQualityTester
55 process.qTester = DQMQualityTester(
56  prescaleFactor = cms.untracked.int32(1),
57  qtList = cms.untracked.FileInPath('CalibMuon/DTCalibration/data/QualityTests_ttrig.xml')
58 )
59 
60 #process.load("DQM.DTMonitorClient.dtResolutionTestFinalCalib_cfi")
61 process.load("DQM.DTMonitorClient.dtResolutionTest_cfi")
62 process.resolutionTest.calibModule = True
63 process.resolutionTest.histoTag2D = 'hResDistVsDist_STEP3'
64 process.resolutionTest.histoTag = 'hResDist_STEP3'
65 process.resolutionTest.STEP = 'STEP3'
66 process.resolutionTest.meanMaxLimit = 0.02
67 process.resolutionTest.sigmaTest = True
68 process.resolutionTest.slopeTest = False
69 process.resolutionTest.meanWrongHisto = cms.untracked.bool(False)
70 process.resolutionTest.sigmaWrongHisto = cms.untracked.bool(False)
71 process.resolutionTest.readFile = cms.untracked.bool(False)
72 process.resolutionTest.OutputMEsInRootFile = cms.bool(False)
73 #process.resolutionTest.inputFile = cms.untracked.string('')
74 #process.resolutionTest.OutputFileName = cms.string('')
75 
76 workflowName = '/Mu/Calibration-v1/DQM'
77 if config.dqmAtRunEnd:
78  process.dqmSaver.convention = 'Offline'
79  process.dqmSaver.workflow = workflowName
80  process.EDMtoMEConverter.convertOnEndLumi = True
81  process.EDMtoMEConverter.convertOnEndRun = True
82 else:
83  process.dqmSaver.convention = 'Offline'
84  process.dqmSaver.workflow = workflowName
85  process.EDMtoMEConverter.convertOnEndLumi = True
86  process.EDMtoMEConverter.convertOnEndRun = True
87  process.dqmSaver.saveByRun = -1
88  process.dqmSaver.saveAtJobEnd = True
89  process.dqmSaver.forceRunNumber = 1
90 
91 #process.dqm_step = cms.Path(process.EDMtoMEConverter*
92 # process.qTester*process.resolutionTest*process.dqmSaver)
93 process.dqm_step = cms.Path(process.EDMtoMEConverter*
94  process.dqmSaver)
95 
96 #process.DQM.collectorHost = ''