Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:21:21

0001 # -*- coding: utf-8 -*-
0002 import FWCore.ParameterSet.Config as cms
0003 process = cms.Process("L1TMuonEmulation")
0004 import os
0005 import sys
0006 
0007 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0008 
0009 process.MessageLogger.cerr.FwkReport.reportEvery = cms.untracked.int32(1)
0010 process.options = cms.untracked.PSet(wantSummary = cms.untracked.bool(False))
0011 
0012 process.source = cms.Source('PoolSource',
0013  fileNames = cms.untracked.vstring('file:/afs/cern.ch/work/g/gkaratha/private/bmtf/gen_samples/Singlemu_oneoverpt_100k.root')
0014 # ,eventsToProcess=cms.untracked.VEventRange('1:1:969-1:1:969')
0015 
0016                         )
0017 
0018 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(2400))
0019 
0020 # PostLS1 geometry used
0021 process.load('Configuration.Geometry.GeometryExtended2015Reco_cff')
0022 process.load('Configuration.Geometry.GeometryExtended2015_cff')
0023 ############################
0024 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0025 from Configuration.AlCa.GlobalTag import GlobalTag
0026 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc', '')
0027 
0028 
0029 
0030 ####Event Setup Producer
0031 process.load('L1Trigger.L1TMuonBarrel.fakeBmtfParams_cff')
0032 process.esProd = cms.EDAnalyzer("EventSetupRecordDataGetter",
0033    toGet = cms.VPSet(
0034       cms.PSet(record = cms.string('L1TMuonBarrelParamsRcd'),
0035                data = cms.vstring('L1TMuonBarrelParams'))
0036               ),
0037    verbose = cms.untracked.bool(True)
0038 )
0039 
0040 
0041 process.load('L1Trigger.L1TTwinMux.fakeTwinMuxParams_cff')
0042 process.esProdTM = cms.EDAnalyzer("EventSetupRecordDataGetter",
0043    toGet = cms.VPSet(
0044       cms.PSet(record = cms.string('L1TTwinMuxParamsRcd'),
0045                data = cms.vstring('L1TTwinMuxParams'))
0046               ),
0047    verbose = cms.untracked.bool(True)
0048 )
0049 
0050 
0051 
0052 ####BMTF Emulator
0053 process.load('L1Trigger.L1TTwinMux.simTwinMuxDigis_cfi')
0054 process.load('L1Trigger.L1TMuonBarrel.simBmtfDigis_cfi')
0055 process.simBmtfDigis.Debug = cms.untracked.int32(0)
0056 process.simBmtfDigis.DTDigi_Source = cms.InputTag("simTwinMuxDigis")
0057 
0058 
0059 ###TwinMux Emulator
0060 process.load('L1Trigger.L1TTwinMux.simTwinMuxDigis_cfi')
0061 
0062 
0063 process.dumpED = cms.EDAnalyzer("EventContentAnalyzer")
0064 process.dumpES = cms.EDAnalyzer("PrintEventSetupContent")
0065 
0066 process.L1TMuonSeq = cms.Sequence( process.esProd         
0067                    + process.esProdTM 
0068                                    + process.simTwinMuxDigis 
0069                                    + process.simBmtfDigis 
0070 #                                   + process.dumpED
0071 #                                   + process.dumpES
0072 )
0073 
0074 process.L1TMuonPath = cms.Path(process.L1TMuonSeq)
0075 
0076 process.out = cms.OutputModule("PoolOutputModule", 
0077 
0078     outputCommands = cms.untracked.vstring(
0079         'drop *',
0080         #'keep *CSC*_*_*_*',
0081         'keep *RPC*_*_*_*',
0082         'keep *DT*_*_*_*',
0083         'keep *L1Mu*_*_*_*',
0084         'keep *_*Muon*_*_*',
0085         'keep *_*gen*_*_*',
0086         'keep *_*TwinMux*_*_*',
0087         'keep *_*Bmtf*_*_*',
0088         'keep GenEventInfoProduct_generator_*_*'),  
0089    fileName = cms.untracked.string("l1tbmtf_emu_singlemu_debug.root")
0090 )
0091 
0092 process.output_step = cms.EndPath(process.out)
0093 process.schedule = cms.Schedule(process.L1TMuonPath)
0094 process.schedule.extend([process.output_step])