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("L1TMuonEmulationO2O")
0004 import os
0005 import sys
0006 
0007 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0008 
0009 process.MessageLogger.cerr.FwkReport.reportEvery = cms.untracked.int32(50)
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/user/g/gflouris/public/l1tbmtf.root')
0014                         )
0015 
0016 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1))
0017 
0018 # PostLS1 geometry used
0019 process.load('Configuration.Geometry.GeometryExtended2015Reco_cff')
0020 process.load('Configuration.Geometry.GeometryExtended2015_cff')
0021 ############################
0022 #process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0023 #from Configuration.AlCa.GlobalTag import GlobalTag
0024 #process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc', '')
0025 
0026 
0027 ####Event Setup Producer
0028 process.load('L1Trigger.L1TMuonBarrel.fakeBmtfParams_cff')
0029 process.fakeBmtfParams.configFromXML = cms.bool(True)
0030 process.fakeBmtfParams.hwXmlFile = cms.string('L1Trigger/L1TMuon/data/o2o/bmtf/BMTF_HW.xml')
0031 process.fakeBmtfParams.topCfgXmlFile = cms.string('L1Trigger/L1TMuon/data/o2o/bmtf/bmtf_top_config_p5.xml')
0032 
0033 process.esProd = cms.EDAnalyzer("EventSetupRecordDataGetter",
0034    toGet = cms.VPSet(
0035       cms.PSet(record = cms.string('L1TMuonBarrelParamsRcd'),
0036                data = cms.vstring('L1TMuonBarrelParams'))
0037                    ),
0038    verbose = cms.untracked.bool(True)
0039 )
0040 
0041 
0042 ####BMTF Emulator
0043 process.load('L1Trigger.L1TTwinMux.simTwinMuxDigis_cfi')
0044 process.load('L1Trigger.L1TMuonBarrel.simBmtfDigis_cfi')
0045 process.simBmtfDigis.Debug = cms.untracked.int32(0)
0046 
0047 process.dumpED = cms.EDAnalyzer("EventContentAnalyzer")
0048 process.dumpES = cms.EDAnalyzer("PrintEventSetupContent")
0049 
0050 process.L1TMuonSeq = cms.Sequence( process.esProd          
0051 #                  + process.simTwinMuxDigis 
0052                                    + process.simBmtfDigis 
0053 #                                   + process.dumpED
0054 #                                   + process.dumpES
0055 )
0056 
0057 process.L1TMuonPath = cms.Path(process.L1TMuonSeq)
0058 
0059 process.out = cms.OutputModule("PoolOutputModule", 
0060    fileName = cms.untracked.string("l1tbmtf.root")
0061 )
0062 
0063 process.output_step = cms.EndPath(process.out)
0064 process.schedule = cms.Schedule(process.L1TMuonPath)
0065 process.schedule.extend([process.output_step])