CMS 3D CMS Logo

slimmedGenJets_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 slimmedGenJets = cms.EDProducer("PATGenJetSlimmer",
4  src = cms.InputTag("ak4GenJetsNoNu"),
5  packedGenParticles = cms.InputTag("packedGenParticles"),
6  cut = cms.string("pt > 8"),
7  cutLoose = cms.string(""),
8  nLoose = cms.uint32(0),
9  clearDaughters = cms.bool(False), #False means rekeying
10  dropSpecific = cms.bool(False),
11 )
12 
13 slimmedGenJetsAK8 = cms.EDProducer("PATGenJetSlimmer",
14  src = cms.InputTag("ak8GenJetsNoNu"),
15  packedGenParticles = cms.InputTag("packedGenParticles"),
16  cut = cms.string("pt > 80"),
17  cutLoose = cms.string("pt > 10."),
18  nLoose = cms.uint32(3),
19  clearDaughters = cms.bool(False), #False means rekeying
20  dropSpecific = cms.bool(False),
21 )
22 
23 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
24 pp_on_AA.toModify(slimmedGenJets, src = "ak4HiSignalGenJets")
25 pp_on_AA.toModify(slimmedGenJetsAK8, cut = 'pt>9999', nLoose = 0)
26 from Configuration.ProcessModifiers.genJetSubEvent_cff import genJetSubEvent
27 genJetSubEvent.toModify(slimmedGenJets, src = "ak4HiGenJetsCleaned")