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()
11 process.load(
"SimG4Core.CustomPhysics.CustomPhysics_cfi")
12 process.customPhysicsSetup.particlesDef = PARTICLE_FILE
13 process.customPhysicsSetup.reggeModel = USE_REGGE
15 if hasattr(process,
'g4SimHits'):
17 process.g4SimHits.Physics.type = cms.string(
'SimG4Core/Physics/CustomPhysics')
19 process.g4SimHits.Physics.Verbosity = cms.untracked.int32(0)
22 if FLAVOR==
"gluino" or FLAVOR==
"stop":
23 process.customPhysicsSetup.processesDef = PROCESS_FILE
24 process.g4SimHits.Physics.ExoticaPhysicsSS = cms.untracked.bool(
False)
26 process.g4SimHits.Physics.ExoticaPhysicsSS = cms.untracked.bool(
False)
28 print(
"Wrong flavor %s. Only accepted are gluino, stau, stop." % FLAVOR)
30 process.g4SimHits.Physics = cms.PSet(
31 process.g4SimHits.Physics,
32 process.customPhysicsSetup
37 void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)