Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-06-07 22:22:30

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from Configuration.Eras.Era_Run3_cff import Run3
0004 process = cms.Process('DQM', Run3)
0005 
0006 process.MessageLogger = cms.Service("MessageLogger",
0007     statistics = cms.untracked.vstring(),
0008     destinations = cms.untracked.vstring('cerr'),
0009     cerr = cms.untracked.PSet(
0010         threshold = cms.untracked.string('WARNING')
0011     )
0012 )
0013 
0014 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0015 from Configuration.AlCa.GlobalTag import GlobalTag
0016 process.GlobalTag = GlobalTag(None, 'auto:phase1_2022_cosmics', '')
0017 
0018 process.load("DQM.Integration.config.environment_cfi")
0019 process.dqmEnv.subSystemFolder = "GEM"
0020 process.dqmEnv.eventInfoFolder = "EventInfo"
0021 process.dqmSaver.path = ""
0022 process.dqmSaver.tag = "GEM"
0023 
0024 from FWCore.ParameterSet.VarParsing import VarParsing
0025 options = VarParsing('analysis')
0026 options.parseArguments()
0027 
0028 process.source = cms.Source("PoolSource",
0029     fileNames = cms.untracked.vstring(options.inputFiles),
0030     inputCommands = cms.untracked.vstring(
0031         'keep *',
0032     )
0033 )
0034 
0035 process.maxEvents = cms.untracked.PSet(
0036   input = cms.untracked.int32(options.maxEvents)
0037 )
0038 
0039 process.load("EventFilter.GEMRawToDigi.muonGEMDigis_cfi")
0040 process.load('RecoLocalMuon.GEMRecHit.gemRecHits_cfi')
0041 process.load("Configuration.StandardSequences.RawToDigi_Data_cff")
0042 process.load("Configuration.StandardSequences.Reconstruction_cff")
0043 process.load('RecoLocalMuon.GEMCSCSegment.gemcscSegments_cfi')
0044 process.load("DQM.GEM.gemEffByGEMCSCSegment_cff")
0045 
0046 process.muonGEMDigis.useDBEMap = True
0047 process.muonGEMDigis.keepDAQStatus = True  # DEFAULT
0048 
0049 
0050 process.muonCSCDigis.InputObjects = "rawDataCollector"
0051 
0052 #--------------------------------------------------
0053 print("Running with run type = ", process.runType.getRunType())
0054 if (process.runType.getRunType() == process.runType.hi_run):
0055     process.muonCSCDigis.InputObjects = "rawDataRepacker"
0056 
0057 
0058 ####################################
0059 process.path = cms.Path(
0060     process.muonGEMDigis *
0061     process.gemRecHits *
0062     process.muonCSCDigis *
0063     process.csc2DRecHits *
0064     process.cscSegments *
0065     process.gemcscSegments *
0066     process.gemEffByGEMCSCSegment
0067 )
0068 
0069 process.end_path = cms.EndPath(
0070     process.dqmEnv +
0071     process.dqmSaver
0072 )
0073 
0074 process.schedule = cms.Schedule(
0075     process.path,
0076     process.end_path
0077 )