CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Functions
GenPlusSimParticles_cfi Namespace Reference

Functions

def customizeKeep (process)
 
def customizeProduce (process)
 

Function Documentation

◆ customizeKeep()

def GenPlusSimParticles_cfi.customizeKeep (   process)

Definition at line 9 of file GenPlusSimParticles_cfi.py.

9 def customizeKeep (process):
10  outputTypes = ["RAWSIM", "RECOSIM", "AODSIM", "MINIAODSIM"]
11  for a in outputTypes:
12  b = a + "output"
13  if hasattr (process, b):
14  getattr (process, b).outputCommands.append ("keep *_genParticlePlusGeant_*_*")
15 
16  return process
17 
18 

◆ customizeProduce()

def GenPlusSimParticles_cfi.customizeProduce (   process)

Definition at line 19 of file GenPlusSimParticles_cfi.py.

19 def customizeProduce (process):
20  process.genParticlePlusGeant = cms.EDProducer("GenPlusSimParticleProducer",
21  src = cms.InputTag("g4SimHits"), # use "fastSimProducer" for FastSim
22  setStatus = cms.int32(8), # set status = 8 for GEANT GPs
23  filter = cms.vstring("pt > 10.0"), # just for testing (optional)
24  genParticles = cms.InputTag("genParticles") # original genParticle list
25  )
26 
27  if hasattr (process, "simulation_step") and hasattr(process, "psim"):
28  getattr(process, "simulation_step")._seq = getattr(process,"simulation_step")._seq * process.genParticlePlusGeant
29 
30  return process
31 
32