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 
95 # the actually used sequences must be empty for pre-PPS data
96 from Configuration.Eras.Modifier_ctpps_cff import ctpps
97 
98 ctppsDQMOnlineSource = cms.Sequence()
99 ctppsDQMOnlineHarvest = cms.Sequence()
100 ctpps.toReplaceWith(ctppsDQMOnlineSource, _ctppsDQMOnlineSource)
101 ctpps.toReplaceWith(ctppsDQMOnlineHarvest, _ctppsDQMOnlineHarvest)
102 
103 ctppsDQMCalibrationSource = cms.Sequence()
104 ctppsDQMCalibrationHarvest = cms.Sequence()
105 ctpps.toReplaceWith(ctppsDQMCalibrationSource, _ctppsDQMCalibrationSource)
106 ctpps.toReplaceWith(ctppsDQMCalibrationHarvest, _ctppsDQMCalibrationHarvest)
107 
108 ctppsDQMOfflineSource = cms.Sequence()
109 ctppsDQMOfflineHarvest = cms.Sequence()
110 ctpps.toReplaceWith(ctppsDQMOfflineSource, _ctppsDQMOfflineSource)
111 ctpps.toReplaceWith(ctppsDQMOfflineHarvest, _ctppsDQMOfflineHarvest)
112 
113 ctppsDQMRandomSource = cms.Sequence()
114 ctppsDQMRandomHarvest = cms.Sequence()
115 ctpps.toReplaceWith(ctppsDQMRandomSource, _ctppsDQMRandomSource)
116 ctpps.toReplaceWith(ctppsDQMRandomHarvest, _ctppsDQMRandomHarvest)