CMS 3D CMS Logo

Functions
Exotica_MT_SIM_cfi Namespace Reference

Functions

def customise (process)
 

Function Documentation

◆ customise()

def Exotica_MT_SIM_cfi.customise (   process)

Definition at line 4 of file Exotica_MT_SIM_cfi.py.

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 custom Physics List
17  process.g4SimHits.Physics.type = cms.string('SimG4Core/Physics/CustomPhysics')
18  # add verbosity
19  process.g4SimHits.Physics.Verbosity = cms.untracked.int32(0)
20  #process.g4SimHits.G4Commands = cms.vstring("/control/cout/ignoreThreadsExcept 0")
21  # check flavor of exotics and choose exotica Physics List
22  if FLAVOR=="gluino" or FLAVOR=="stop":
23  process.customPhysicsSetup.processesDef = PROCESS_FILE
24  process.g4SimHits.Physics.ExoticaPhysicsSS = cms.untracked.bool(False)
25  elif FLAVOR =="stau":
26  process.g4SimHits.Physics.ExoticaPhysicsSS = cms.untracked.bool(False)
27  else:
28  print("Wrong flavor %s. Only accepted are gluino, stau, stop." % FLAVOR)
29  # add custom options
30  process.g4SimHits.Physics = cms.PSet(
31  process.g4SimHits.Physics, #keep all default value and add others
32  process.customPhysicsSetup
33  )
34 
35  return (process)
36 

References print().

print
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:46
Exotica_MT_SIM_cfi.customise
def customise(process)
Definition: Exotica_MT_SIM_cfi.py:4