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