Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-10-27 04:18:04

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(10000)
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/gflouris/public/SingleMuPt6180_noanti_10k_eta1.root'
0014 'file:/afs/cern.ch/work/g/gkaratha/private/bmtf/merge/CMSSW_9_0_0_pre2/src/L1Trigger/L1TMuonBarrel/test/reSim_jpsi.root'
0015 
0016 )
0017                         )
0018 
0019 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1))
0020 
0021 # PostLS1 geometry used
0022 process.load('Configuration.Geometry.GeometryExtended2015Reco_cff')
0023 process.load('Configuration.Geometry.GeometryExtended2015_cff')
0024 ############################
0025 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0026 from Configuration.AlCa.GlobalTag import GlobalTag
0027 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc', '')
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 ####BMTF Emulator
0042 process.load('L1Trigger.L1TTwinMux.simTwinMuxDigis_cfi')
0043 process.load('L1Trigger.L1TMuonBarrel.simBmtfDigis_cfi')
0044 process.simBmtfDigis.Debug = cms.untracked.int32(0)
0045 
0046 process.dumpED = cms.EDAnalyzer("EventContentAnalyzer")
0047 process.dumpES = cms.EDAnalyzer("PrintEventSetupContent")
0048 
0049 process.L1TMuonSeq = cms.Sequence( process.esProd          
0050                    + process.simTwinMuxDigis 
0051                                    + process.simBmtfDigis 
0052                                    + process.dumpED
0053                                    + process.dumpES
0054 )
0055 
0056 process.L1TMuonPath = cms.Path(process.L1TMuonSeq)
0057 
0058 process.out = cms.OutputModule("PoolOutputModule", 
0059    fileName = cms.untracked.string("l1tbmtf_merge2_test_diMuon.root")
0060 )
0061 
0062 process.output_step = cms.EndPath(process.out)
0063 process.schedule = cms.Schedule(process.L1TMuonPath)
0064 process.schedule.extend([process.output_step])