Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from Configuration.Eras.Era_Run2_2016_cff import Run2_2016
0004 process = cms.Process("L1TMuonEmulation", Run2_2016)
0005 import os
0006 import sys
0007 
0008 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0009 
0010 process.MessageLogger.cerr.FwkReport.reportEvery = cms.untracked.int32(50)
0011 process.options = cms.untracked.PSet(wantSummary = cms.untracked.bool(False))
0012 
0013 process.source = cms.Source('PoolSource',
0014  fileNames = cms.untracked.vstring('file:/afs/cern.ch/work/g/gflouris/public/SingleMuPt6180_noanti_10k_eta1.root')
0015                         )
0016 
0017 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(10))
0018 
0019 # PostLS1 geometry used
0020 process.load('Configuration.Geometry.GeometryExtended2015Reco_cff')
0021 process.load('Configuration.Geometry.GeometryExtended2015_cff')
0022 ############################
0023 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0024 from Configuration.AlCa.GlobalTag import GlobalTag
0025 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc', '')
0026 
0027 #### Sim L1 Emulator Sequence:
0028 process.load('Configuration.StandardSequences.SimL1Emulator_cff')
0029 process.dumpED = cms.EDAnalyzer("EventContentAnalyzer")
0030 process.dumpES = cms.EDAnalyzer("PrintEventSetupContent")
0031 
0032 process.load('L1Trigger.L1TCommon.l1tSummaryStage2SimDigis_cfi')
0033 
0034 #process.load('L1Trigger.L1TCalorimeter.simCaloStage2Layer1Digis_cfi')
0035 process.simCaloStage2Layer1Digis.ecalToken = cms.InputTag("simEcalTriggerPrimitiveDigis")
0036 process.simCaloStage2Layer1Digis.hcalToken = cms.InputTag("simHcalTriggerPrimitiveDigis")
0037 process.load('L1Trigger.L1TCalorimeter.simCaloStage2Digis_cfi')
0038 
0039 # Additional output definition
0040 # TTree output file
0041 process.load("CommonTools.UtilAlgos.TFileService_cfi")
0042 process.TFileService.fileName = cms.string('l1t_debug.root')
0043 
0044 # enable debug message logging for our modules
0045 process.MessageLogger.L1TCaloEvents=dict()
0046 process.MessageLogger.L1TGlobalEvents=dict()
0047 process.MessageLogger.l1t=dict()
0048 process.MessageLogger.Global=dict()
0049 process.MessageLogger.suppressInfo = cms.untracked.vstring('Geometry', 'AfterSource')
0050 
0051 
0052 # gt analyzer
0053 process.l1tGlobalAnalyzer = cms.EDAnalyzer('L1TGlobalAnalyzer',
0054     doText = cms.untracked.bool(True),
0055     dmxEGToken = cms.InputTag("None"),
0056     dmxTauToken = cms.InputTag("None"),
0057     dmxJetToken = cms.InputTag("None"),
0058     dmxEtSumToken = cms.InputTag("None"),
0059     muToken = cms.InputTag("simGmtStage2Digis"),
0060     egToken = cms.InputTag("simCaloStage2Digis"),
0061     tauToken = cms.InputTag("simCaloStage2Digis"),
0062     jetToken = cms.InputTag("simCaloStage2Digis"),
0063     etSumToken = cms.InputTag("simCaloStage2Digis"),
0064     gtAlgToken = cms.InputTag("None"),
0065     emulDxAlgToken = cms.InputTag("simGlobalStage2Digis"),
0066     emulGtAlgToken = cms.InputTag("simGlobalStage2Digis")
0067 )
0068 
0069 process.l1UpgradeTree = cms.EDAnalyzer(
0070     "L1UpgradeTreeProducer",
0071     egToken = cms.untracked.InputTag("simCaloStage2Digis"),
0072     tauTokens = cms.untracked.VInputTag("simCaloStage2Digis"),
0073     jetToken = cms.untracked.InputTag("simCaloStage2Digis"),
0074     muonToken = cms.untracked.InputTag("simGmtStage2Digis"),
0075     sumToken = cms.untracked.InputTag("simCaloStage2Digis",""),
0076     maxL1Upgrade = cms.uint32(60)
0077 )
0078 
0079 process.L1TSeq = cms.Sequence(   process.SimL1Emulator
0080 #                                   + process.dumpED
0081 #                                   + process.dumpES
0082                                    + process.l1tSummaryStage2SimDigis
0083 #                                   + process.l1tGlobalAnalyzer
0084                                    + process.l1UpgradeTree
0085 )
0086 
0087 process.L1TPath = cms.Path(process.L1TSeq)
0088 
0089 process.out = cms.OutputModule("PoolOutputModule", 
0090    fileName = cms.untracked.string("l1t.root")
0091 )
0092 
0093 process.output_step = cms.EndPath(process.out)
0094 process.schedule = cms.Schedule(process.L1TPath)
0095 process.schedule.extend([process.output_step])