CMS 3D CMS Logo

Functions
Exotica_HSCP_SIM_cfi Namespace Reference

Functions

def customise (process)
 

Function Documentation

◆ customise()

def Exotica_HSCP_SIM_cfi.customise (   process)

Definition at line 4 of file Exotica_HSCP_SIM_cfi.py.

References print().

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