CMS 3D CMS Logo

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

Functions

def customise
 

Function Documentation

def Exotica_MT_SIM_cfi.customise (   process)

Definition at line 4 of file Exotica_MT_SIM_cfi.py.

References print().

4 
5 def customise(process):
6 
7  FLAVOR = process.generator.hscpFlavor.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 custom Physics List
18  process.g4SimHits.Physics.type = cms.string('SimG4Core/Physics/CustomPhysics')
19  # add verbosity
20  process.g4SimHits.Physics.Verbosity = cms.untracked.int32(0)
21  #process.g4SimHits.G4Commands = cms.vstring("/control/cout/ignoreThreadsExcept 0")
22  # check flavor of exotics and choose exotica Physics List
23  if FLAVOR=="gluino" or FLAVOR=="stop":
24  process.customPhysicsSetup.processesDef = PROCESS_FILE
25  process.g4SimHits.Physics.ExoticaPhysicsSS = cms.untracked.bool(False)
26  elif FLAVOR =="stau":
27  process.g4SimHits.Physics.ExoticaPhysicsSS = cms.untracked.bool(False)
28  else:
29  print("Wrong flavor %s. Only accepted are gluino, stau, stop." % FLAVOR)
30  # add custom options
31  process.g4SimHits.Physics = cms.PSet(
32  process.g4SimHits.Physics, #keep all default value and add others
33  process.customPhysicsSetup
34  )
35 
36  return (process)
37 
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47