Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:26:16

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 
0008 process = cms.Process("testRPCDigiMerger")
0009 
0010 process.load("FWCore.MessageService.MessageLogger_cfi")
0011 process.MessageLogger.cerr.FwkReport.reportEvery = 1000
0012 
0013 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0014 process.GlobalTag.globaltag = "102X_dataRun2_Sep2018Rereco_test_v1"
0015 
0016 #######################################################
0017 ### RPC RawToDigi
0018 ### RPC RawToDigi - from Legacy
0019 process.load("EventFilter.RPCRawToDigi.rpcUnpackingModule_cfi")
0020 
0021 ### RPC RawToDigi - from TwinMux
0022 process.load("EventFilter.RPCRawToDigi.RPCTwinMuxRawToDigi_cff")
0023 
0024 ### RPC RawToDigi - from CPPF
0025 process.load("EventFilter.RPCRawToDigi.RPCCPPFRawToDigi_cff")
0026 # process.load("EventFilter.RPCRawToDigi.RPCCPPFRawToDigi_sqlite_cff") #to load CPPF link maps from the local DB
0027 
0028 ### RPC RawToDigi - from OMTF
0029 process.load('Configuration.StandardSequences.RawToDigi_Data_cff')
0030 process.omtfStage2Digis = cms.EDProducer("OmtfUnpacker",
0031   inputLabel = cms.InputTag('rawDataCollector'),
0032 )
0033 
0034 process.load("EventFilter.RPCRawToDigi.RPCDigiMerger_cff")
0035 
0036 process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) )
0037 
0038 # Source
0039 process.source = cms.Source("PoolSource"
0040                             , fileNames = cms.untracked.vstring(
0041                                     "/store/data/Run2018D/SingleMuon/RAW/v1/000/321/909/00000/34C0D29C-E3AA-E811-84FB-FA163EF5DB03.root",
0042                                     "/store/data/Run2018D/SingleMuon/RAW/v1/000/321/909/00000/DEF27B09-E7AA-E811-B671-FA163EDF3211.root",
0043                                     "/store/data/Run2018D/SingleMuon/RAW/v1/000/321/909/00000/163BB720-E7AA-E811-988D-FA163EC62C4D.root",
0044                                     "/store/data/Run2018D/SingleMuon/RAW/v1/000/321/909/00000/B06CF0A5-E9AA-E811-AC1F-FA163EF7BA8C.root",
0045                                     "/store/data/Run2018D/SingleMuon/RAW/v1/000/321/909/00000/AADE09C6-E9AA-E811-97DC-FA163E516F48.root",
0046                                     "/store/data/Run2018D/SingleMuon/RAW/v1/000/321/909/00000/F4EB1DA6-E9AA-E811-8CF8-FA163ECCF441.root",
0047                                     "/store/data/Run2018D/SingleMuon/RAW/v1/000/321/909/00000/A867DCA3-E9AA-E811-B8B3-FA163E1F69DA.root",
0048                                     "/store/data/Run2018D/SingleMuon/RAW/v1/000/321/909/00000/DC0E29CC-E9AA-E811-AC0B-FA163E41F45F.root",
0049                                     "/store/data/Run2018D/SingleMuon/RAW/v1/000/321/909/00000/8A5DAFA8-E9AA-E811-89C2-FA163EFF6119.root",
0050                                     "/store/data/Run2018D/SingleMuon/RAW/v1/000/321/909/00000/B00828AF-E9AA-E811-8117-FA163E10FE53.root",
0051                                     "/store/data/Run2018D/SingleMuon/RAW/v1/000/321/909/00000/28D7492E-E4AA-E811-9635-02163E013E90.root",
0052                                     "/store/data/Run2018D/SingleMuon/RAW/v1/000/321/909/00000/FE2A5BAC-E9AA-E811-BC34-FA163E0639A2.root",
0053                                     "/store/data/Run2018D/SingleMuon/RAW/v1/000/321/909/00000/7602E088-EDAA-E811-ABCA-FA163E749606.root",
0054                                     "/store/data/Run2018D/SingleMuon/RAW/v1/000/321/909/00000/B49BB2AB-E9AA-E811-A0A0-FA163E3F57D2.root",
0055                                     "/store/data/Run2018D/SingleMuon/RAW/v1/000/321/909/00000/14822C7E-EDAA-E811-8189-02163E01A095.root",
0056                                     "/store/data/Run2018D/SingleMuon/RAW/v1/000/321/909/00000/B05E9DA8-EDAA-E811-B422-02163E016528.root",
0057                             )
0058 )
0059 
0060 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1000) )
0061 
0062 process.p = cms.Path( 
0063                        (
0064                         process.rpcUnpackingModule 
0065                         + process.rpcTwinMuxRawToDigi 
0066                         + process.rpcCPPFRawToDigi 
0067                         + process.omtfStage2Digis
0068                         )
0069                        * process.rpcDigiMerger 
0070 )
0071 
0072 # Output
0073 process.out = cms.OutputModule("PoolOutputModule"
0074                                , outputCommands = cms.untracked.vstring("drop *"
0075                                                                         , "keep *_*_*_testRPCDigiMerger")
0076                                # , fileName = cms.untracked.string(options.outputFile)
0077                                , fileName = cms.untracked.string("testRPCDigiMerger.root")
0078                                #, fileName = cms.untracked.string("testRPCDigiMerger.root")
0079                                , SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring("p"))
0080 )
0081 
0082 process.e = cms.EndPath(process.out)