CMS 3D CMS Logo

ctppsDQM_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
4 
7 
9 
11 
13 
15 
17 
19 
20 # sequences used by the online DQM in normal running
21 ctppsCommonDQMSourceOnline = ctppsCommonDQMSource.clone(
22  makeProtonRecoPlots = False
23 )
24 
25 _ctppsDQMOnlineSource = cms.Sequence(
26  ctppsPixelDQMSource
27  + ctppsDiamondDQMSource
28  + diamondSampicDQMSourceOnline
29  + ctppsCommonDQMSourceOnline
30 )
31 
32 _ctppsDQMOnlineHarvest = cms.Sequence(
33 )
34 
35 # sequences used by the online DQM in calibration mode
36 _ctppsDQMCalibrationSource = cms.Sequence(
37  totemRPDQMSource
38  + ctppsPixelDQMSource
39  + ctppsDiamondDQMSource
40  + diamondSampicDQMSourceOnline
41  + ctppsCommonDQMSourceOnline
42  + elasticPlotDQMSource
43 )
44 
45 _ctppsDQMCalibrationHarvest = cms.Sequence(
46  totemRPDQMHarvester
47 )
48 
49 # sequences used by the offline DQM
50 ctppsCommonDQMSourceOffline = ctppsCommonDQMSource.clone(
51  makeProtonRecoPlots = True
52 )
53 
54 #Check if perLSsaving is enabled to mask MEs vs LS
55 from Configuration.ProcessModifiers.dqmPerLSsaving_cff import dqmPerLSsaving
56 dqmPerLSsaving.toModify(ctppsDiamondDQMSource, perLSsaving=True)
57 dqmPerLSsaving.toModify(diamondSampicDQMSourceOffline, perLSsaving=True)
58 dqmPerLSsaving.toModify(ctppsCommonDQMSourceOffline, perLSsaving=True)
59 dqmPerLSsaving.toModify(ctppsDiamondDQMOfflineSource, perLSsaving=True)
60 dqmPerLSsaving.toModify(totemTimingDQMSource, perLSsaving=True)
61 
62 _ctppsDQMOfflineSource = cms.Sequence(
63  ctppsPixelDQMOfflineSource
64  + ctppsDiamondDQMOfflineSource
65  + diamondSampicDQMSourceOffline
66  + ctppsCommonDQMSourceOffline
67 )
68 
69 _ctppsDQMOfflineHarvest = cms.Sequence(
70 )
71 
72 from Configuration.Eras.Modifier_ctpps_2018_cff import ctpps_2018
73 ctpps_2018.toReplaceWith(
74  _ctppsDQMOfflineSource,
75  cms.Sequence(
76  ctppsPixelDQMOfflineSource
77  + ctppsDiamondDQMOfflineSource
78  + totemTimingDQMSource
79  + ctppsCommonDQMSourceOffline
80  )
81 
82 )
83 
84 
85 # the actually used sequences must be empty for pre-PPS data
86 from Configuration.Eras.Modifier_ctpps_cff import ctpps
87 
88 ctppsDQMOnlineSource = cms.Sequence()
89 ctppsDQMOnlineHarvest = cms.Sequence()
90 ctpps.toReplaceWith(ctppsDQMOnlineSource, _ctppsDQMOnlineSource)
91 ctpps.toReplaceWith(ctppsDQMOnlineHarvest, _ctppsDQMOnlineHarvest)
92 
93 ctppsDQMCalibrationSource = cms.Sequence()
94 ctppsDQMCalibrationHarvest = cms.Sequence()
95 ctpps.toReplaceWith(ctppsDQMCalibrationSource, _ctppsDQMCalibrationSource)
96 ctpps.toReplaceWith(ctppsDQMCalibrationHarvest, _ctppsDQMCalibrationHarvest)
97 
98 ctppsDQMOfflineSource = cms.Sequence()
99 ctppsDQMOfflineHarvest = cms.Sequence()
100 ctpps.toReplaceWith(ctppsDQMOfflineSource, _ctppsDQMOfflineSource)
101 ctpps.toReplaceWith(ctppsDQMOfflineHarvest, _ctppsDQMOfflineHarvest)