CMS 3D CMS Logo

genParticles_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
4 
5 prunedGenParticlesWithStatusOne = prunedGenParticles.clone()
6 prunedGenParticlesWithStatusOne.select.append( "keep status == 1")
7 
8 prunedGenParticles.src = cms.InputTag("prunedGenParticlesWithStatusOne")
9 
10 packedGenParticles.inputCollection = cms.InputTag("prunedGenParticlesWithStatusOne")
11 packedGenParticles.map = cms.InputTag("prunedGenParticles") # map with rekey association from prunedGenParticlesWithStatusOne to prunedGenParticles, used to relink our refs to prunedGen
12 packedGenParticles.inputOriginal = cms.InputTag("genParticles")
13 
14 genParticlesTask = cms.Task(
15  prunedGenParticles,
16  packedGenParticles,
17  prunedGenParticlesWithStatusOne
18 )