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 import os
0004 
0005 from Configuration.Eras.Era_Run3_cff import Run3
0006 #from Configuration.StandardSequences.Eras import eras
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 #process.load("DQM.Integration.config.FrontierCondition_GT_cfi")
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     #'keep FEDRawDataCollection_*_*_*'
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 #process.muonGEMDigis.unPackStatusDigis = True  # DEFAULT
0058 process.muonGEMDigis.keepDAQStatus = True  # DEFAULT
0059 #process.muonGEMDigis.unPackStatusDigis = False
0060 
0061 #process.GEMDQMStatusDigi.pathOfPrevDQMRoot = "DQM_V0001_GEM_R000030000.root"
0062 #process.GEMDQMHarvester.fromFile = "DQM_V0001_GEM_R000020150.root"
0063 
0064 ############## DB file ################# 
0065 #from CondCore.CondDB.CondDB_cfi import *
0066 #CondDB.DBParameters.authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0067 #CondDB.connect = cms.string('sqlite_fip:DQM/GEM/data/GEMeMap.db')
0068 #
0069 #process.GEMCabling = cms.ESSource("PoolDBESSource",
0070 #    CondDB,
0071 #    toGet = cms.VPSet(cms.PSet(
0072 #        record = cms.string('GEMeMapRcd'),
0073 #        tag = cms.string('GEMeMap_v2')
0074 #    )),
0075 #)
0076 ####################################
0077 process.path = cms.Path(
0078   process.muonGEMDigis *  # DEFAULT
0079   process.gemRecHits *    # DEFAULT
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 )