CMS 3D CMS Logo

Functions
Exotica_MT_SIM_cfi Namespace Reference

Functions

def customise (process)
 

Function Documentation

def Exotica_MT_SIM_cfi.customise (   process)

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