CMS 3D CMS Logo

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

Functions

def customizeKeep
 
def customizeProduce
 

Function Documentation

def GenPlusSimParticles_cfi.customizeKeep (   process)

Definition at line 9 of file GenPlusSimParticles_cfi.py.

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

Definition at line 19 of file GenPlusSimParticles_cfi.py.

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