diff --git a/DDG4/python/DDSim/Helper/Physics.py b/DDG4/python/DDSim/Helper/Physics.py index a7b46475566315f64b8275b3f5a44a5cd10298bb..99736cf8e5e72bd139e25f0d27bfaeb292c3f8f9 100644 --- a/DDG4/python/DDSim/Helper/Physics.py +++ b/DDG4/python/DDSim/Helper/Physics.py @@ -148,7 +148,7 @@ class Physics(ConfigHelper): The function must take the DDG4.Kernel() object as the only argument. - For example:: + For example, add a function definition and the call to a steering file:: def setupCerenkov(kernel): from DDG4 import PhysicsList @@ -159,6 +159,12 @@ class Physics(ConfigHelper): cerenkov.TrackSecondariesFirst = True cerenkov.VerboseLevel = 2 cerenkov.enableUI() + seq.adopt(cerenkov) + ph = PhysicsList(kernel, 'Geant4OpticalPhotonPhysics/OpticalGammaPhys') + ph.addParticleConstructor('G4OpticalPhoton') + ph.VerboseLevel = 2 + ph.enableUI() + seq.adopt(ph) return None SIM.physics.setupUserPhysics(setupCerenkov)