Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-06-29 02:25:42

0001 import FWCore.ParameterSet.Config as cms
0002 import sys
0003 
0004 from Configuration.Eras.Era_Run3_cff import Run3
0005 process = cms.Process('GEMDQM', Run3)
0006 
0007 unitTest = False
0008 if 'unitTest=True' in sys.argv:
0009     unitTest=True
0010 
0011 process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
0012 process.load("DQM.Integration.config.FrontierCondition_GT_cfi")
0013 
0014 if unitTest:
0015     process.load("DQM.Integration.config.unittestinputsource_cfi")
0016     from DQM.Integration.config.unittestinputsource_cfi import options
0017 else:
0018     process.load("DQM.Integration.config.inputsource_cfi")
0019     from DQM.Integration.config.inputsource_cfi import options
0020 
0021 process.load("DQM.Integration.config.environment_cfi")
0022 process.dqmEnv.subSystemFolder = "GEM"
0023 process.dqmSaver.tag = "GEM"
0024 process.dqmSaver.runNumber = options.runNumber
0025 process.dqmSaverPB.tag = "GEM"
0026 process.dqmSaverPB.runNumber = options.runNumber
0027 
0028 process.load("DQMServices.Components.DQMProvInfo_cfi")
0029 
0030 process.load("Configuration.StandardSequences.RawToDigi_Data_cff")
0031 process.load("Configuration.StandardSequences.Reconstruction_cff")
0032 process.load('RecoLocalMuon.GEMCSCSegment.gemcscSegments_cfi')
0033 process.load("DQM.GEM.GEMDQM_cff")
0034 process.load("DQM.GEM.gemEffByGEMCSCSegment_cff")
0035 
0036 process.muonCSCDigis.InputObjects = "rawDataCollector"
0037 if (process.runType.getRunType() == process.runType.hi_run):
0038     process.muonGEMDigis.InputLabel = "rawDataRepacker"
0039     process.muonCSCDigis.InputObjects = "rawDataRepacker"
0040 
0041 process.muonGEMDigis.useDBEMap = True
0042 process.muonGEMDigis.keepDAQStatus = True
0043 
0044 process.GEMDigiSource.runType = "online"
0045 process.GEMRecHitSource.runType = "online"
0046 process.GEMDAQStatusSource.runType = "online"
0047 
0048 # from csc_dqm_sourceclient-live_cfg.py
0049 process.CSCGeometryESModule.useGangedStripsInME1a = False
0050 process.idealForDigiCSCGeometry.useGangedStripsInME1a = False
0051 process.CSCIndexerESProducer.AlgoName = "CSCIndexerPostls1"
0052 process.CSCChannelMapperESProducer.AlgoName = "CSCChannelMapperPostls1"
0053 process.csc2DRecHits.readBadChambers = False
0054 process.csc2DRecHits.readBadChannels = False
0055 process.csc2DRecHits.CSCUseGasGainCorrections = False
0056 
0057 process.path = cms.Path(
0058     process.muonGEMDigis *
0059     process.gemRecHits *
0060     process.muonCSCDigis *
0061     process.csc2DRecHits *
0062     process.cscSegments *
0063     process.gemcscSegments *
0064     process.GEMDQM *
0065     process.gemEffByGEMCSCSegment
0066 )
0067 
0068 process.end_path = cms.EndPath(
0069     process.dqmEnv +
0070     process.dqmSaver +
0071     process.dqmSaverPB
0072 )
0073 
0074 process.schedule = cms.Schedule(
0075     process.path,
0076     process.end_path
0077 )
0078 
0079 process.dqmProvInfo.runType = process.runType.getRunTypeName()
0080 
0081 from DQM.Integration.config.online_customizations_cfi import *
0082 process = customise(process)
0083 print("Final Source settings:", process.source)