Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-03-08 02:27:16

0001 import FWCore.ParameterSet.Config as cms
0002 import sys
0003 
0004 from Configuration.Eras.Era_Run3_cff import Run3
0005 process = cms.Process("DQM", Run3)
0006 
0007 unitTest = False
0008 if 'unitTest=True' in sys.argv:
0009     unitTest=True
0010 
0011 #----------------------------
0012 #### Event Source
0013 #----------------------------
0014 
0015 if unitTest:
0016     process.load("DQM.Integration.config.unittestinputsource_cfi")
0017     from DQM.Integration.config.unittestinputsource_cfi import options
0018 else:
0019     # for live online DQM in P5
0020     process.load("DQM.Integration.config.inputsource_cfi")
0021     from DQM.Integration.config.inputsource_cfi import options
0022 
0023 # for testing in lxplus
0024 #process.load("DQM.Integration.config.fileinputsource_cfi")
0025 #from DQM.Integration.config.fileinputsource_cfi import options
0026 
0027 #----------------------------
0028 #### DQM Environment
0029 #----------------------------
0030 process.load("DQM.Integration.config.environment_cfi")
0031 process.dqmEnv.subSystemFolder = 'Scal'
0032 process.dqmSaver.tag = 'Scal'
0033 process.dqmSaver.runNumber = options.runNumber
0034 process.dqmSaverPB.tag = 'Scal'
0035 process.dqmSaverPB.runNumber = options.runNumber
0036 #-----------------------------
0037 process.load("DQMServices.Components.DQMScalInfo_cfi")
0038 
0039 # message logger
0040 process.MessageLogger = cms.Service("MessageLogger",
0041                                     destinations = cms.untracked.vstring('cout'),
0042                                     cout = cms.untracked.PSet(threshold = cms.untracked.string('WARNING'))
0043                                     )
0044 
0045 # Global tag
0046 # Condition for P5 cluster
0047 process.load("DQM.Integration.config.FrontierCondition_GT_cfi")
0048 process.load("EventFilter.L1GlobalTriggerRawToDigi.l1GtUnpack_cfi")
0049 process.load("EventFilter.L1GlobalTriggerRawToDigi.l1GtEvmUnpack_cfi")
0050 process.load("EventFilter.L1GlobalTriggerRawToDigi.l1GtRecord_cfi")
0051 
0052 import EventFilter.L1GlobalTriggerRawToDigi.l1GtUnpack_cfi
0053 gtDigis = EventFilter.L1GlobalTriggerRawToDigi.l1GtUnpack_cfi.l1GtUnpack.clone()
0054 import EventFilter.L1GlobalTriggerRawToDigi.l1GtEvmUnpack_cfi
0055 gtEvmDigis = EventFilter.L1GlobalTriggerRawToDigi.l1GtEvmUnpack_cfi.l1GtEvmUnpack.clone()
0056 
0057 if (process.runType.getRunType() == process.runType.pp_run and not unitTest):
0058     process.source.SelectEvents = ['HLT_ZeroBias*']
0059 
0060 process.physicsBitSelector = cms.EDFilter("PhysDecl",
0061                                                    applyfilter = cms.untracked.bool(False),
0062                                                    debugOn     = cms.untracked.bool(False),
0063                                                    HLTriggerResults = cms.InputTag("TriggerResults","","HLT")
0064                                           )
0065 
0066 
0067 process.load("EventFilter.ScalersRawToDigi.ScalersRawToDigi_cfi")
0068 
0069 ## Collision Reconstruction
0070 process.load("Configuration.StandardSequences.RawToDigi_Data_cff")
0071 #process.load("Configuration.StandardSequences.Reconstruction_cff")
0072 
0073 #-----------------------------
0074 #### Sub-system configuration follows
0075 process.dump = cms.EDAnalyzer('EventContentAnalyzer')
0076 
0077 # DQM Modules
0078 process.dqmmodules = cms.Sequence(process.dqmEnv + process.dqmSaver + process.dqmSaverPB)
0079 process.evfDQMmodulesPath = cms.Path(
0080                               process.l1GtUnpack*
0081                   process.gtDigis*
0082                   process.l1GtRecord*
0083                   process.physicsBitSelector*
0084                               process.scalersRawToDigi*
0085                               process.dqmscalInfo*
0086                               process.dqmmodules
0087                               )
0088 process.schedule = cms.Schedule(process.evfDQMmodulesPath)
0089 
0090 if (process.runType.getRunType() == process.runType.hi_run):
0091     process.castorDigis.InputLabel = "rawDataRepacker"
0092     process.csctfDigis.producer = "rawDataRepacker"
0093     process.dttfDigis.DTTF_FED_Source = "rawDataRepacker"
0094     process.ecalDigis.cpu.InputLabel = "rawDataRepacker"
0095     process.ecalPreshowerDigis.sourceTag = "rawDataRepacker"
0096     process.gctDigis.inputLabel = "rawDataRepacker"
0097     process.gtDigis.DaqGtInputTag = "rawDataRepacker"
0098     process.gtEvmDigis.EvmGtInputTag = "rawDataRepacker"
0099     process.hcalDigis.InputLabel = "rawDataRepacker"
0100     process.muonCSCDigis.InputObjects = "rawDataRepacker"
0101     process.muonDTDigis.inputLabel = "rawDataRepacker"
0102     process.muonRPCDigis.InputLabel = "rawDataRepacker"
0103     process.scalersRawToDigi.scalersInputTag = "rawDataRepacker"
0104     process.siPixelDigis.cpu.InputLabel = "rawDataRepacker"
0105     process.siStripDigis.ProductLabel = "rawDataRepacker"
0106 
0107 
0108 ### process customizations included here
0109 from DQM.Integration.config.online_customizations_cfi import *
0110 process = customise(process)
0111 print("Final Source settings:", process.source)