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 
21 
22 # sequences used by the online DQM in normal running
23 ctppsCommonDQMSourceOnline = ctppsCommonDQMSource.clone(
24  makeProtonRecoPlots = False
25 )
26 
27 _ctppsDQMOnlineSource = cms.Sequence(
28  ctppsPixelDQMSource
29  + ctppsDiamondDQMSource
30  + diamondSampicDQMSourceOnline
31  + ctppsCommonDQMSourceOnline
32 )
33 
34 _ctppsDQMOnlineHarvest = cms.Sequence(
35 )
36 
37 # sequences used by the online DQM in calibration mode
38 _ctppsDQMCalibrationSource = cms.Sequence(
39  totemRPDQMSource
40  + ctppsPixelDQMSource
41  + ctppsDiamondDQMSource
42  + diamondSampicDQMSourceOnline
43  + ctppsCommonDQMSourceOnline
44  + elasticPlotDQMSource
45 )
46 
47 _ctppsDQMCalibrationHarvest = cms.Sequence(
48  totemRPDQMHarvester
49 )
50 
51 # sequences used by the offline DQM
52 ctppsCommonDQMSourceOffline = ctppsCommonDQMSource.clone(
53  makeProtonRecoPlots = True
54 )
55 
56 # sequences used by the dedicated random trigger stream
57 _ctppsDQMRandomSource = cms.Sequence(
58  ctppsRandomDQMSource
59 )
60 
61 _ctppsDQMRandomHarvest = cms.Sequence(
62 )
63 
64 #Check if perLSsaving is enabled to mask MEs vs LS
65 from Configuration.ProcessModifiers.dqmPerLSsaving_cff import dqmPerLSsaving
66 dqmPerLSsaving.toModify(ctppsDiamondDQMSource, perLSsaving=True)
67 dqmPerLSsaving.toModify(diamondSampicDQMSourceOffline, perLSsaving=True)
68 dqmPerLSsaving.toModify(ctppsCommonDQMSourceOffline, perLSsaving=True)
69 dqmPerLSsaving.toModify(ctppsDiamondDQMOfflineSource, perLSsaving=True)
70 dqmPerLSsaving.toModify(totemTimingDQMSource, perLSsaving=True)
71 
72 _ctppsDQMOfflineSource = cms.Sequence(
73  ctppsPixelDQMOfflineSource
74  + ctppsDiamondDQMOfflineSource
75  + diamondSampicDQMSourceOffline
76  + ctppsCommonDQMSourceOffline
77 )
78 
79 _ctppsDQMOfflineHarvest = cms.Sequence(
80 )
81 
82 from Configuration.Eras.Modifier_ctpps_2018_cff import ctpps_2018
83 ctpps_2018.toReplaceWith(
84  _ctppsDQMOfflineSource,
85  cms.Sequence(
86  ctppsPixelDQMOfflineSource
87  + ctppsDiamondDQMOfflineSource
88  + totemTimingDQMSource
89  + ctppsCommonDQMSourceOffline
90  )
91 
92 )
93 
94 from Configuration.Eras.Modifier_ctpps_2016_cff import ctpps_2016
95 ctpps_2016.toReplaceWith(
96  _ctppsDQMOfflineSource,
97  cms.Sequence(
98  )
99 )
100 
101 # the actually used sequences must be empty for pre-PPS data
102 from Configuration.Eras.Modifier_ctpps_cff import ctpps
103 
104 ctppsDQMOnlineSource = cms.Sequence()
105 ctppsDQMOnlineHarvest = cms.Sequence()
106 ctpps.toReplaceWith(ctppsDQMOnlineSource, _ctppsDQMOnlineSource)
107 ctpps.toReplaceWith(ctppsDQMOnlineHarvest, _ctppsDQMOnlineHarvest)
108 
109 ctppsDQMCalibrationSource = cms.Sequence()
110 ctppsDQMCalibrationHarvest = cms.Sequence()
111 ctpps.toReplaceWith(ctppsDQMCalibrationSource, _ctppsDQMCalibrationSource)
112 ctpps.toReplaceWith(ctppsDQMCalibrationHarvest, _ctppsDQMCalibrationHarvest)
113 
114 ctppsDQMOfflineSource = cms.Sequence()
115 ctppsDQMOfflineHarvest = cms.Sequence()
116 ctpps.toReplaceWith(ctppsDQMOfflineSource, _ctppsDQMOfflineSource)
117 ctpps.toReplaceWith(ctppsDQMOfflineHarvest, _ctppsDQMOfflineHarvest)
118 
119 ctppsDQMRandomSource = cms.Sequence()
120 ctppsDQMRandomHarvest = cms.Sequence()
121 ctpps.toReplaceWith(ctppsDQMRandomSource, _ctppsDQMRandomSource)
122 ctpps.toReplaceWith(ctppsDQMRandomHarvest, _ctppsDQMRandomHarvest)