Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-05-12 02:41:21

0001 import FWCore.ParameterSet.Config as cms
0002 import FWCore.Utilities.FileUtils as FileUtils # ADDED
0003 
0004 process = cms.Process("TEST")
0005 
0006 process.load("FWCore.MessageService.MessageLogger_cfi")
0007 process.MessageLogger.cerr.FwkReport.reportEvery = 1
0008 
0009 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(15000) )
0010 
0011 fileList = FileUtils.loadListFromFile('ttbar.list')
0012 readFiles = cms.untracked.vstring(*fileList)
0013 
0014 process.source = process.source = cms.Source("PoolSource",
0015   fileNames = readFiles,
0016   #fileNames = cms.untracked.vstring(
0017   #  "file:pf500.root",
0018   #)
0019 )
0020 
0021 # Loads 7x7 sequence
0022 process.load('L1Trigger.L1CaloTrigger.Phase1L1TJets_cff')
0023 
0024 # Load 9x9 sequence
0025 process.load('L1Trigger.L1CaloTrigger.Phase1L1TJets_9x9_cff')
0026 
0027 # Load trimmed 9x9 sequence
0028 process.load('L1Trigger.L1CaloTrigger.Phase1L1TJets_9x9trimmed_cff')
0029 
0030 # AK4 PF jets
0031 process.load('L1Trigger.Phase2L1ParticleFlow.l1pfJetMet_cff')
0032 process.l1PFJets = cms.Sequence( process.ak4PFL1Puppi + process.ak4PFL1PuppiCorrected )
0033 
0034 
0035 process.out = cms.OutputModule("PoolOutputModule",
0036   fileName = cms.untracked.string('myOutputFile.root'),
0037   outputCommands = cms.untracked.vstring(
0038     "drop *",
0039     "keep *_Phase1L1TJetProducer*_*_*",
0040     "keep *_Phase1L1TJetSumsProducer*_*_*",
0041     "keep *_ak4GenJetsNoNu_*_*",
0042     "keep *_Phase1L1TJetCalibrator*_*_*",
0043     "keep *_ak4PFL1Puppi*_*_*",
0044     "keep *_l1PFMetPuppi*_*_*",
0045     "keep *_genMetTrue_*_*"
0046   ),
0047 )
0048 
0049 process.p = cms.Path(process.Phase1L1TJetsSequence * process.Phase1L1TJetsSequence9x9 * process.Phase1L1TJetsSequence9x9trimmed * process.l1PFJets * process.l1PFMetPuppi )
0050 
0051 process.e = cms.EndPath(process.out)