File indexing completed on 2024-04-06 12:07:27
0001 import FWCore.ParameterSet.Config as cms
0002
0003 import os
0004
0005 from Configuration.Eras.Era_Run3_cff import Run3
0006
0007 process = cms.Process('DQM', Run3)
0008
0009
0010 process.MessageLogger = cms.Service("MessageLogger",
0011 statistics = cms.untracked.vstring(),
0012 destinations = cms.untracked.vstring('cerr'),
0013 cerr = cms.untracked.PSet(
0014 threshold = cms.untracked.string('WARNING')
0015 )
0016 )
0017
0018 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0019 from Configuration.AlCa.GlobalTag import GlobalTag
0020 process.GlobalTag = GlobalTag(None, 'auto:phase1_2022_cosmics', '')
0021
0022
0023
0024 process.load("DQM.Integration.config.environment_cfi")
0025 process.dqmEnv.subSystemFolder = "GEM"
0026 process.dqmEnv.eventInfoFolder = "EventInfo"
0027 process.dqmSaver.path = ""
0028 process.dqmSaver.tag = "GEM"
0029
0030 process.source = cms.Source("PoolSource",
0031 fileNames = cms.untracked.vstring(
0032 'file:/eos/cms/store/express/Commissioning2018/ExpressCosmics/FEVT/Express-v1/000/310/292/00000/6C23251D-4F18-E811-AEC5-02163E01A41D.root'
0033 ),
0034 inputCommands = cms.untracked.vstring(
0035 'keep *',
0036
0037 )
0038 )
0039 import sys
0040 AddFile = lambda l: [ s if s.startswith("root://") else "file:" + s for s in l ]
0041 listCand = [ s for s in sys.argv if s.endswith(".root") ]
0042 listSrc = AddFile(listCand)
0043 listCand = [ s for s in sys.argv if s.endswith(".txt") ]
0044 for s in listCand:
0045 with open(s) as fSrc: listSrc += AddFile(fSrc.read().splitlines())
0046 if len(listSrc) > 0: process.source.fileNames = cms.untracked.vstring(*listSrc)
0047
0048 process.maxEvents = cms.untracked.PSet(
0049 input = cms.untracked.int32(-1)
0050 )
0051
0052 process.load("EventFilter.GEMRawToDigi.muonGEMDigis_cfi")
0053 process.load('RecoLocalMuon.GEMRecHit.gemRecHits_cfi')
0054 process.load("DQM.GEM.GEMDQM_cff")
0055
0056 process.muonGEMDigis.useDBEMap = True
0057
0058 process.muonGEMDigis.keepDAQStatus = True
0059
0060
0061
0062
0063
0064
0065
0066
0067
0068
0069
0070
0071
0072
0073
0074
0075
0076
0077 process.path = cms.Path(
0078 process.muonGEMDigis *
0079 process.gemRecHits *
0080 process.GEMDQM
0081 )
0082
0083 process.end_path = cms.EndPath(
0084 process.dqmEnv +
0085 process.dqmSaver
0086 )
0087
0088 process.schedule = cms.Schedule(
0089 process.path,
0090 process.end_path
0091 )