Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:07:01

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from DQM.CTPPS.totemDAQTriggerDQMSource_cfi import *
0004 
0005 from DQM.CTPPS.totemRPDQMHarvester_cfi import *
0006 from DQM.CTPPS.totemRPDQMSource_cfi import *
0007 
0008 from DQM.CTPPS.ctppsDiamondDQMSource_cfi import *
0009 
0010 from DQM.CTPPS.diamondSampicDQMSource_cfi import *
0011 
0012 from DQM.CTPPS.totemTimingDQMSource_cfi import *
0013 
0014 from DQM.CTPPS.totemT2DQMSource_cfi import *
0015 
0016 from DQM.CTPPS.ctppsPixelDQMSource_cfi import *
0017 
0018 from DQM.CTPPS.elasticPlotDQMSource_cfi import *
0019 
0020 from DQM.CTPPS.ctppsCommonDQMSource_cfi import *
0021 
0022 from DQM.CTPPS.ctppsRandomDQMSource_cfi import *
0023 
0024 # sequences used by the online DQM in normal running
0025 ctppsCommonDQMSourceOnline = ctppsCommonDQMSource.clone(
0026   makeProtonRecoPlots = False
0027 )
0028 
0029 _ctppsDQMOnlineSource = cms.Sequence(
0030   ctppsPixelDQMSource
0031   + ctppsDiamondDQMSource
0032   + diamondSampicDQMSourceOnline
0033   + ctppsCommonDQMSourceOnline
0034 )
0035 
0036 _ctppsDQMOnlineHarvest = cms.Sequence(
0037 )
0038 
0039 # sequences used by the online DQM in calibration mode
0040 _ctppsDQMCalibrationSource = cms.Sequence(
0041   totemRPDQMSource
0042   + ctppsPixelDQMSource
0043   + ctppsDiamondDQMSource
0044   + diamondSampicDQMSourceOnline
0045   + ctppsCommonDQMSourceOnline
0046   + elasticPlotDQMSource
0047   + totemT2DQMSource
0048 )
0049 
0050 _ctppsDQMCalibrationHarvest = cms.Sequence(
0051   totemRPDQMHarvester
0052 )
0053 
0054 # sequences used by the offline DQM
0055 ctppsCommonDQMSourceOffline = ctppsCommonDQMSource.clone(
0056   makeProtonRecoPlots = True
0057 )
0058 
0059 # sequences used by the dedicated random trigger stream
0060 _ctppsDQMRandomSource = cms.Sequence(
0061   ctppsRandomDQMSource
0062 )
0063 
0064 _ctppsDQMRandomHarvest = cms.Sequence(
0065 )
0066 
0067 #Check if perLSsaving is enabled to mask MEs vs LS
0068 from Configuration.ProcessModifiers.dqmPerLSsaving_cff import dqmPerLSsaving
0069 dqmPerLSsaving.toModify(ctppsDiamondDQMSource, perLSsaving=True)
0070 dqmPerLSsaving.toModify(diamondSampicDQMSourceOffline, perLSsaving=True)
0071 dqmPerLSsaving.toModify(ctppsCommonDQMSourceOffline, perLSsaving=True)
0072 dqmPerLSsaving.toModify(ctppsDiamondDQMOfflineSource, perLSsaving=True)
0073 dqmPerLSsaving.toModify(totemTimingDQMSource, perLSsaving=True)
0074 
0075 _ctppsDQMOfflineSource = cms.Sequence(
0076   ctppsPixelDQMOfflineSource
0077   + ctppsDiamondDQMOfflineSource
0078   + diamondSampicDQMSourceOffline
0079   + ctppsCommonDQMSourceOffline
0080 )
0081 
0082 _ctppsDQMOfflineHarvest = cms.Sequence(
0083 )
0084 
0085 from Configuration.Eras.Modifier_ctpps_2018_cff import ctpps_2018
0086 ctpps_2018.toReplaceWith(
0087     _ctppsDQMOfflineSource,
0088     cms.Sequence(
0089       ctppsPixelDQMOfflineSource
0090       + ctppsDiamondDQMOfflineSource
0091       + totemTimingDQMSource
0092       + ctppsCommonDQMSourceOffline
0093     )
0094     
0095 )
0096 
0097 from Configuration.Eras.Modifier_ctpps_2016_cff import ctpps_2016
0098 ctpps_2016.toReplaceWith(
0099     _ctppsDQMOfflineSource,
0100     cms.Sequence(
0101     )
0102 )
0103 
0104 
0105 # the actually used sequences must be empty for pre-PPS data
0106 from Configuration.Eras.Modifier_ctpps_cff import ctpps
0107 
0108 ctppsDQMOnlineSource = cms.Sequence()
0109 ctppsDQMOnlineHarvest = cms.Sequence()
0110 ctpps.toReplaceWith(ctppsDQMOnlineSource, _ctppsDQMOnlineSource)
0111 ctpps.toReplaceWith(ctppsDQMOnlineHarvest, _ctppsDQMOnlineHarvest)
0112 
0113 ctppsDQMCalibrationSource = cms.Sequence()
0114 ctppsDQMCalibrationHarvest = cms.Sequence()
0115 ctpps.toReplaceWith(ctppsDQMCalibrationSource, _ctppsDQMCalibrationSource)
0116 ctpps.toReplaceWith(ctppsDQMCalibrationHarvest, _ctppsDQMCalibrationHarvest)
0117 
0118 ctppsDQMOfflineSource = cms.Sequence()
0119 ctppsDQMOfflineHarvest = cms.Sequence()
0120 ctpps.toReplaceWith(ctppsDQMOfflineSource, _ctppsDQMOfflineSource)
0121 ctpps.toReplaceWith(ctppsDQMOfflineHarvest, _ctppsDQMOfflineHarvest)
0122 
0123 ctppsDQMRandomSource = cms.Sequence()
0124 ctppsDQMRandomHarvest = cms.Sequence()
0125 ctpps.toReplaceWith(ctppsDQMRandomSource, _ctppsDQMRandomSource)
0126 ctpps.toReplaceWith(ctppsDQMRandomHarvest, _ctppsDQMRandomHarvest)