CMS 3D CMS Logo

HadronAndPartonSelector_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # select hadrons and partons for the jet flavour
4 selectedHadronsAndPartons = cms.EDProducer('HadronAndPartonSelector',
5  src = cms.InputTag("generator"),
6  particles = cms.InputTag("genParticles"),
7  partonMode = cms.string("Auto"),
8  fullChainPhysPartons = cms.bool(True)
9 )
10 # select hadrons and partons for the slimmedGenJetsFlavourInfos, required for origin identification
11 
12 selectedHadronsAndPartonsForGenJetsFlavourInfos = selectedHadronsAndPartons.clone(particles = "prunedGenParticles")