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 4 of file Exotica_HSCP_SIM_cfi.py.

References edm.print().

4 def customise(process):
5 
6  FLAVOR = process.generator.hscpFlavor.value()
7  MASS_POINT = process.generator.massPoint.value()
8  SLHA_FILE = process.generator.SLHAFileForPythia8.value()
9  PROCESS_FILE = process.generator.processFile.value()
10  PARTICLE_FILE = process.generator.particleFile.value()
11  USE_REGGE = process.generator.useregge.value()
12 
13  process.load("SimG4Core.CustomPhysics.CustomPhysics_cfi")
14  process.customPhysicsSetup.particlesDef = PARTICLE_FILE
15  process.customPhysicsSetup.reggeModel = USE_REGGE
16 
17  if hasattr(process,'g4SimHits'):
18  # defined watches
19  process.g4SimHits.Watchers = cms.VPSet (
20  cms.PSet(
21  type = cms.string('RHStopTracer'),
22  RHStopTracer = cms.PSet(
23  verbose = cms.untracked.bool (False),
24  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
25  stopRegularParticles = cms.untracked.bool (False)
26  )
27  )
28  )
29  # defined custom Physics List
30  process.g4SimHits.Physics.type = cms.string('SimG4Core/Physics/CustomPhysics')
31  # add verbosity
32  process.g4SimHits.Physics.Verbosity = cms.untracked.int32(0)
33  #process.g4SimHits.G4Commands = cms.vstring("/control/cout/ignoreThreadsExcept 0")
34  # check flavor of exotics and choose exotica Physics List
35  if FLAVOR=="gluino" or FLAVOR=="stop":
36  process.customPhysicsSetup.processesDef = PROCESS_FILE
37  process.g4SimHits.Physics.ExoticaPhysicsSS = cms.untracked.bool(False)
38  elif FLAVOR =="stau":
39  process.g4SimHits.Physics.ExoticaPhysicsSS = cms.untracked.bool(False)
40  else:
41  print("Wrong flavor %s. Only accepted are gluino, stau, stop." % FLAVOR)
42  # add custom options
43  process.g4SimHits.Physics = cms.PSet(
44  process.g4SimHits.Physics, #keep all default value and add others
45  process.customPhysicsSetup
46  )
47 
48  return (process)
49 
50 
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:65