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 )
19 
21 
22 _genParticlesHITask = genParticlesTask.copy()
23 _genParticlesHITask.add(packedGenParticlesSignal)
24 
25 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
26 pp_on_AA.toReplaceWith(genParticlesTask, _genParticlesHITask)
prunedGenParticles_cfi
packedGenParticlesSignal_cfi
packedGenParticles_cfi