Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 # -*- coding: utf-8 -*-
0002 import FWCore.ParameterSet.Config as cms
0003 process = cms.Process("L1TMuonEmulation")
0004 import optparse
0005 
0006 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0007 
0008 process.MessageLogger.cerr.FwkReport.reportEvery = cms.untracked.int32(1)
0009 process.options = cms.untracked.PSet(wantSummary = cms.untracked.bool(False))
0010 
0011 process.source = cms.Source('PoolSource',
0012  fileNames = cms.untracked.vstring('file:/afs/cern.ch/work/g/gkaratha/private/bmtf/gen_samples/Singlemu_oneoverpt_100k.root')
0013                         )
0014 
0015 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(2000))
0016 
0017 # PostLS1 geometry used
0018 process.load('Configuration.Geometry.GeometryExtended2015Reco_cff')
0019 process.load('Configuration.Geometry.GeometryExtended2015_cff')
0020 ############################
0021 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0022 from Configuration.AlCa.GlobalTag import GlobalTag
0023 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc', '')
0024 
0025 
0026 ##ES Producer
0027 
0028 ####Event Setup Producer
0029 process.load('L1Trigger.L1TTwinMux.fakeTwinMuxParams_cff')
0030 process.esProd = cms.EDAnalyzer("EventSetupRecordDataGetter",
0031    toGet = cms.VPSet(
0032       cms.PSet(record = cms.string('L1TTwinMuxParamsRcd'),
0033                data = cms.vstring('L1TTwinMuxParams'))
0034                    ),
0035    verbose = cms.untracked.bool(True)
0036 )
0037 
0038 # process.fakeTwinMuxParams.verbose = cms.bool(True)
0039 # process.fakeTwinMuxParams.useOnlyRPC = cms.bool(False)
0040 
0041 
0042 ###TwinMux Emulator
0043 process.load('L1Trigger.L1TTwinMux.simTwinMuxDigis_cfi')
0044 
0045 
0046 process.L1TMuonSeq = cms.Sequence(  
0047         process.esProd
0048        +process.simTwinMuxDigis
0049 )
0050 
0051 process.L1TMuonPath = cms.Path(process.L1TMuonSeq)
0052 
0053 process.out = cms.OutputModule("PoolOutputModule", 
0054 
0055     outputCommands = cms.untracked.vstring(
0056         'drop *',
0057         #'keep *CSC*_*_*_*',
0058         'keep *RPC*_*_*_*',
0059         'keep *DT*_*_*_*',
0060         'keep *L1Mu*_*_*_*',
0061         'keep *_*Muon*_*_*',
0062         'keep *_*gen*_*_*',
0063         'keep *_*TwinMux*_*_*',
0064         'keep *_*Bmtf*_*_*',
0065         'keep GenEventInfoProduct_generator_*_*'),  
0066    fileName = cms.untracked.string("l1twinmux.root")
0067 )
0068 
0069 process.output_step = cms.EndPath(process.out)
0070 process.schedule = cms.Schedule(process.L1TMuonPath)
0071 process.schedule.extend([process.output_step])