Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:30:24

0001 ##Unpackers and Emulator of BMTF-TwinMux
0002 
0003 import FWCore.ParameterSet.Config as cms
0004 
0005 process = cms.Process("TwinMuxRawToDigi")
0006 
0007 process.load("FWCore.MessageService.MessageLogger_cfi")
0008 process.MessageLogger.cerr.FwkReport.reportEvery = 1000
0009 
0010 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0011 process.GlobalTag.globaltag = "80X_dataRun2_Express_v10"
0012 
0013 process.load("EventFilter.RPCRawToDigi.rpcUnpackingModule_cfi")
0014 process.load("CondTools.RPC.RPCLinkMap_sqlite_cff")
0015 process.load("EventFilter.L1TXRawToDigi.twinMuxStage2Digis_cfi")
0016 process.load("EventFilter.RPCRawToDigi.RPCTwinMuxRawToDigi_cfi")
0017 process.RPCTwinMuxRawToDigi.bxMin = cms.int32(-5)
0018 process.RPCTwinMuxRawToDigi.bxMax = cms.int32(5)
0019 
0020 process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(False) )
0021 
0022 
0023 process.source = cms.Source ("NewEventStreamFileReader",  #"PoolSource",
0024 #process.source = cms.Source ("PoolSource",
0025  
0026        fileNames=cms.untracked.vstring(
0027 '/store/t0streamer/Data/PhysicsMuons/000/280/307/run280307_ls0016_streamPhysicsMuons_StorageManager.dat',
0028 
0029         ),
0030     )
0031 
0032 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1000))
0033 
0034 # PostLS1 geometry used
0035 process.load('Configuration.Geometry.GeometryExtended2015Reco_cff')
0036 process.load('Configuration.Geometry.GeometryExtended2015_cff')
0037 ############################
0038 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0039 from Configuration.AlCa.GlobalTag import GlobalTag
0040 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc', '')
0041 
0042 
0043 ####Event Setup Producer
0044 process.load('L1Trigger.L1TTwinMux.fakeTwinMuxParams_cff')
0045 
0046 process.esProd = cms.EDAnalyzer("EventSetupRecordDataGetter",
0047    toGet = cms.VPSet(
0048       cms.PSet(record = cms.string('L1TwinMuxParamsRcd'),
0049                data = cms.vstring('L1TwinMuxParams'))      
0050               ),
0051    verbose = cms.untracked.bool(True)
0052 )
0053 
0054 ###TwinMux Emulator
0055 process.load('L1Trigger.L1TTwinMux.simTwinMuxDigis_cfi')
0056 process.simTwinMuxDigis.DTDigi_Source = cms.InputTag("twinMuxStage2Digis:PhIn")
0057 process.simTwinMuxDigis.DTThetaDigi_Source = cms.InputTag("twinMuxStage2Digis:ThIn")
0058 process.simTwinMuxDigis.RPC_Source = cms.InputTag("RPCTwinMuxRawToDigi")
0059 
0060 
0061 process.dumpED = cms.EDAnalyzer("EventContentAnalyzer")
0062 process.dumpES = cms.EDAnalyzer("PrintEventSetupContent")
0063 
0064 
0065 
0066 
0067 #########################################
0068 ##########Ntuples Block#################
0069 ########################################
0070 #process.load("UIoannina.TrUpS.L1TwinMuxProducer")
0071 #
0072 #process.L1TwinMuxProducer = process.L1TwinMuxProducer.clone(
0073 #     twinmuxOutputDigis = cms.InputTag("twinMuxStage2Digis:PhOut"),
0074 #     twinmuxInputPhDigis = cms.InputTag("twinMuxStage2Digis:PhIn"),
0075 #       twinmuxInputThDigis = cms.InputTag("twinMuxStage2Digis:ThIn"),
0076 #     twinmuxInputRPCDigis = cms.InputTag("RPCTwinMuxRawToDigi")
0077 #
0078 #)
0079 #
0080 #process.L1TwinMuxProducerEmulator = process.L1TwinMuxProducer.clone(
0081 #     twinmuxOutputDigis = cms.InputTag("simTwinMuxDigis"),
0082 #     twinmuxInputPhDigis = cms.InputTag("twinMuxStage2Digis:PhIn"),
0083 #        twinmuxInputThDigis = cms.InputTag("twinMuxStage2Digis:ThIn"),
0084 #     twinmuxInputRPCDigis = cms.InputTag("RPCTwinMuxRawToDigi")
0085 #
0086 #)
0087 #process.load("UIoannina.TrUpS.EVRProducer_cfi")
0088 #
0089 #
0090 # output file
0091 #process.TFileService = cms.Service("TFileService",
0092 #     fileName = cms.string('Ntuple_l1ttwinmux_data_run280307.root')
0093 #)
0094 
0095 ############################
0096 
0097 
0098 
0099 process.L1TMuonSeq = cms.Sequence(process.RPCTwinMuxRawToDigi
0100                      + process.twinMuxStage2Digis
0101                      + process.rpcUnpackingModule
0102                      + process.esProd
0103                      + process.simTwinMuxDigis                     
0104 #                     + process.EVRTProducer
0105 #                     + process.L1TwinMuxProducer    
0106 #                     + process.L1TwinMuxProducerEmulator  
0107 )
0108 
0109 
0110 process.L1TMuonPath = cms.Path(process.L1TMuonSeq)
0111 
0112  process.out = cms.OutputModule("PoolOutputModule", 
0113      outputCommands = cms.untracked.vstring(
0114          'drop *',
0115          #'keep *CSC*_*_*_*',
0116          'keep *RPC*_*_*_*',
0117          'keep *DT*_*_*_*',
0118          'keep *L1Mu*_*_*_*',
0119          'keep *_*Muon*_*_*',
0120          'keep *_*gen*_*_*',
0121          'keep *_*TwinMux*_*_*',
0122          'keep *_*Bmtf*_*_*',
0123          'keep GenEventInfoProduct_generator_*_*'),
0124  
0125    fileName = cms.untracked.string("l1ttwinmux.root")
0126  )
0127 
0128 process.output_step = cms.EndPath(process.out)
0129 process.schedule = cms.Schedule(process.L1TMuonPath)
0130 process.schedule.extend([process.output_step])