CMS 3D CMS Logo

Functions
Exotica_HSCP_SIM_cfi Namespace Reference

Functions

def customise (process)
 

Function Documentation

def Exotica_HSCP_SIM_cfi.customise (   process)

Definition at line 3 of file Exotica_HSCP_SIM_cfi.py.

3 def customise(process):
4 
5  FLAVOR = process.generator.hscpFlavor.value()
6  MASS_POINT = process.generator.massPoint.value()
7  SLHA_FILE = process.generator.slhaFile.value()
8  PROCESS_FILE = process.generator.processFile.value()
9  PARTICLE_FILE = process.generator.particleFile.value()
10  USE_REGGE = process.generator.useregge.value()
11 
12  process.load("SimG4Core.CustomPhysics.CustomPhysics_cfi")
13  process.customPhysicsSetup.particlesDef = PARTICLE_FILE
14  process.customPhysicsSetup.reggeModel = USE_REGGE
15 
16  if hasattr(process,'g4SimHits'):
17  # defined watches
18  process.g4SimHits.Watchers = cms.VPSet (
19  cms.PSet(
20  type = cms.string('RHStopTracer'),
21  RHStopTracer = cms.PSet(
22  verbose = cms.untracked.bool (False),
23  traceParticle = cms.string ("((anti_)?~|tau1).*"), #this one regular expression is needed to look for ~HIP*, anti_~HIP*, ~tau1, anti_~tau1, ~g_rho0, ~g_Deltabar0, ~T_uu1++, etc
24  stopRegularParticles = cms.untracked.bool (False)
25  )
26  )
27  )
28  # defined custom Physics List
29  process.g4SimHits.Physics.type = cms.string('SimG4Core/Physics/CustomPhysics')
30  # add verbosity
31  process.g4SimHits.Physics.Verbosity = cms.untracked.int32(0)
32  #process.g4SimHits.G4Commands = cms.vstring("/control/cout/ignoreThreadsExcept 0")
33  # check flavor of exotics and choose exotica Physics List
34  if FLAVOR=="gluino" or FLAVOR=="stop":
35  process.customPhysicsSetup.processesDef = PROCESS_FILE
36  process.g4SimHits.Physics.ExoticaPhysicsSS = cms.untracked.bool(False)
37  elif FLAVOR =="stau":
38  process.g4SimHits.Physics.ExoticaPhysicsSS = cms.untracked.bool(False)
39  else:
40  print "Wrong flavor %s. Only accepted are gluino, stau, stop." % FLAVOR
41  # add custom options
42  process.g4SimHits.Physics = cms.PSet(
43  process.g4SimHits.Physics, #keep all default value and add others
44  process.customPhysicsSetup
45  )
46 
47  return (process)
48 
49