Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:10:59

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from FWCore.PythonUtilities.LumiList import LumiList
0004 from FWCore.ParameterSet.VarParsing import VarParsing
0005 
0006 options = VarParsing("analysis")
0007 options.register("runList"
0008                  , [320855]
0009                  , VarParsing.multiplicity.list
0010                  , VarParsing.varType.int
0011                  , "Run selection")
0012 options.register("lumiList"
0013                  , "step1_lumiRanges.log"
0014                  , VarParsing.multiplicity.singleton
0015                  , VarParsing.varType.string
0016                  , "JSON file")
0017 options.parseArguments()
0018  
0019 process = cms.Process("testRPCNewReadoutDQM")
0020 
0021 process.load("FWCore.MessageService.MessageLogger_cfi")
0022 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0023 
0024 process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
0025 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0026 process.GlobalTag.globaltag = "102X_dataRun2_Sep2018Rereco_test_v1"
0027 
0028 #######################################################
0029 ### RPC RawToDigi
0030 ### RPC RawToDigi - from Legacy
0031 process.load("EventFilter.RPCRawToDigi.rpcUnpackingModule_cfi")
0032 
0033 ### RPC RawToDigi - from TwinMux
0034 process.load("EventFilter.RPCRawToDigi.RPCTwinMuxRawToDigi_cff")
0035 
0036 ### RPC RawToDigi - from CPPF
0037 process.load("EventFilter.RPCRawToDigi.RPCCPPFRawToDigi_cff")
0038 # process.load("EventFilter.RPCRawToDigi.RPCCPPFRawToDigi_sqlite_cff") #to load CPPF link maps from the local DB
0039 
0040 ### RPC RawToDigi - from OMTF
0041 process.load('Configuration.StandardSequences.RawToDigi_Data_cff')
0042 process.omtfStage2Digis = cms.EDProducer("OmtfUnpacker",
0043   inputLabel = cms.InputTag('rawDataCollector'),
0044 )
0045 
0046 ### RPC Digi Merger
0047 process.load("EventFilter.RPCRawToDigi.RPCDigiMerger_cff")
0048 
0049 #######################################################
0050 ### RPCRecHit - from legacy
0051 process.load('RecoLocalMuon.RPCRecHit.rpcRecHits_cfi')
0052 from RecoLocalMuon.RPCRecHit.rpcRecHits_cfi import *
0053 process.rpcLegacyRecHits = process.rpcRecHits.clone()
0054 process.rpcLegacyRecHits.rpcDigiLabel = cms.InputTag('rpcUnpackingModule')
0055 ### RPCRecHit - from TwinMux
0056 process.rpcTwinMuxRecHits = process.rpcRecHits.clone()
0057 process.rpcTwinMuxRecHits.rpcDigiLabel = cms.InputTag('rpcTwinMuxRawToDigi')
0058 ### RPCRecHit - from CPPF
0059 process.rpcCPPFRecHits = process.rpcRecHits.clone()
0060 process.rpcCPPFRecHits.rpcDigiLabel = cms.InputTag('rpcCPPFRawToDigi')
0061 ### RPCRecHit - from OMTF
0062 process.rpcOMTFRecHits = process.rpcRecHits.clone()
0063 process.rpcOMTFRecHits.rpcDigiLabel = cms.InputTag('omtfStage2Digis')
0064 ### RPCRecHit - from Merger
0065 process.rpcMergerRecHits = process.rpcRecHits.clone()
0066 process.rpcMergerRecHits.rpcDigiLabel = cms.InputTag('rpcDigiMerger')
0067 
0068 ### Print Summary
0069 process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) )
0070 
0071 #######################################################
0072 ### DQM - from legacy
0073 process.load("DQM.RPCMonitorDigi.RPCDigiMonitoring_cfi")
0074 process.rpcdigidqm.UseRollInfo = True
0075 process.rpcdigidqm.UseMuon =  False
0076 process.rpcdigidqm.NoiseFolder = cms.untracked.string("AllHitsLegacy")
0077 process.rpcdigidqm.RecHitLabel = cms.InputTag("rpcLegacyRecHits")
0078 ### DQM - from TwinMux
0079 process.rpcTwinMuxdigidqm = process.rpcdigidqm.clone()
0080 process.rpcTwinMuxdigidqm.NoiseFolder = cms.untracked.string("AllHitsTwinMux")
0081 process.rpcTwinMuxdigidqm.RecHitLabel = cms.InputTag("rpcTwinMuxRecHits")
0082 ### DQM - from CPPF
0083 process.rpcCPPFdigidqm = process.rpcdigidqm.clone()
0084 process.rpcCPPFdigidqm.NoiseFolder = cms.untracked.string("AllHitsCPPF")
0085 process.rpcCPPFdigidqm.RecHitLabel = cms.InputTag("rpcCPPFRecHits")
0086 ### DQM - from OMTF
0087 process.rpcOMTFdigidqm = process.rpcdigidqm.clone()
0088 process.rpcOMTFdigidqm.NoiseFolder = cms.untracked.string("AllHitsOMTF")
0089 process.rpcOMTFdigidqm.RecHitLabel = cms.InputTag("rpcOMTFRecHits")
0090 ### DQM - from Merger
0091 process.rpcMergerdigidqm = process.rpcdigidqm.clone()
0092 process.rpcMergerdigidqm.NoiseFolder = cms.untracked.string("AllHitsMerger")
0093 process.rpcMergerdigidqm.RecHitLabel = cms.InputTag("rpcMergerRecHits")
0094 
0095 #######################################################
0096 ### DQM Saver
0097 process.load("Configuration.StandardSequences.DQMSaverAtJobEnd_cff")
0098 process.dqmEnv.subSystemFolder = 'RPC'
0099 
0100 # Source
0101 process.source = cms.Source("PoolSource"
0102                             , fileNames = cms.untracked.vstring(
0103                                     "/store/data/Run2018D/SingleMuon/RAW/v1/000/321/909/00000/34C0D29C-E3AA-E811-84FB-FA163EF5DB03.root",
0104                                     "/store/data/Run2018D/SingleMuon/RAW/v1/000/321/909/00000/DEF27B09-E7AA-E811-B671-FA163EDF3211.root",
0105                                     "/store/data/Run2018D/SingleMuon/RAW/v1/000/321/909/00000/163BB720-E7AA-E811-988D-FA163EC62C4D.root",
0106                                     "/store/data/Run2018D/SingleMuon/RAW/v1/000/321/909/00000/B06CF0A5-E9AA-E811-AC1F-FA163EF7BA8C.root",
0107                                     "/store/data/Run2018D/SingleMuon/RAW/v1/000/321/909/00000/AADE09C6-E9AA-E811-97DC-FA163E516F48.root",
0108                                     "/store/data/Run2018D/SingleMuon/RAW/v1/000/321/909/00000/F4EB1DA6-E9AA-E811-8CF8-FA163ECCF441.root",
0109                                     "/store/data/Run2018D/SingleMuon/RAW/v1/000/321/909/00000/A867DCA3-E9AA-E811-B8B3-FA163E1F69DA.root",
0110                                     "/store/data/Run2018D/SingleMuon/RAW/v1/000/321/909/00000/DC0E29CC-E9AA-E811-AC0B-FA163E41F45F.root",
0111                                     "/store/data/Run2018D/SingleMuon/RAW/v1/000/321/909/00000/8A5DAFA8-E9AA-E811-89C2-FA163EFF6119.root",
0112                                     "/store/data/Run2018D/SingleMuon/RAW/v1/000/321/909/00000/B00828AF-E9AA-E811-8117-FA163E10FE53.root",
0113                                     "/store/data/Run2018D/SingleMuon/RAW/v1/000/321/909/00000/28D7492E-E4AA-E811-9635-02163E013E90.root",
0114                                     "/store/data/Run2018D/SingleMuon/RAW/v1/000/321/909/00000/FE2A5BAC-E9AA-E811-BC34-FA163E0639A2.root",
0115                                     "/store/data/Run2018D/SingleMuon/RAW/v1/000/321/909/00000/7602E088-EDAA-E811-ABCA-FA163E749606.root",
0116                                     "/store/data/Run2018D/SingleMuon/RAW/v1/000/321/909/00000/B49BB2AB-E9AA-E811-A0A0-FA163E3F57D2.root",
0117                                     "/store/data/Run2018D/SingleMuon/RAW/v1/000/321/909/00000/14822C7E-EDAA-E811-8189-02163E01A095.root",
0118                                     "/store/data/Run2018D/SingleMuon/RAW/v1/000/321/909/00000/B05E9DA8-EDAA-E811-B422-02163E016528.root",
0119                             )
0120 )
0121 
0122 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1000) )
0123 
0124 process.p = cms.Path( 
0125                       (process.rpcUnpackingModule + process.rpcTwinMuxRawToDigi + process.rpcCPPFRawToDigi + process.omtfStage2Digis) 
0126                       * process.rpcDigiMerger 
0127                       * (process.rpcLegacyRecHits + process.rpcTwinMuxRecHits + process.rpcCPPFRecHits + process.rpcOMTFRecHits + process.rpcMergerRecHits)
0128                       * (process.rpcdigidqm + process.rpcTwinMuxdigidqm + process.rpcCPPFdigidqm + process.rpcOMTFdigidqm + process.rpcMergerdigidqm)
0129                       * process.DQMSaver
0130                     )
0131 
0132 # Output
0133 process.out = cms.OutputModule("PoolOutputModule"
0134                                , outputCommands = cms.untracked.vstring("drop *"
0135                                                                         , "keep *_rpc*RecHits_*_*")
0136                                , fileName = cms.untracked.string("testRPCNewReadoutDQM.root")
0137                                , SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring("p"))
0138 )
0139 
0140 process.e = cms.EndPath(process.out)