Skip to content

Commit

Permalink
Allow for smartless configuration of volumes in Geant4
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusFrankATcernch committed Dec 10, 2024
1 parent 06572d0 commit 42879c7
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions examples/ClientTests/scripts/DriftChamber.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,6 @@ def run():
rndm.Seed = int(time.time())
rndm.initialize()

logger.info("""
Configure I/O
""")
geant4.setupROOTOutput('RootOutput', 'DriftChamber_' + time.strftime('%Y-%m-%d_%H-%M'))

gen = DDG4.GeneratorAction(kernel, "Geant4GeneratorActionInit/GenerationInit")
kernel.generatorAction().adopt(gen)

Expand Down Expand Up @@ -103,7 +98,6 @@ def run():
logger.info("# ....and handle the simulation particles.")
part = DDG4.GeneratorAction(kernel, "Geant4ParticleHandler/ParticleHandler")
kernel.generatorAction().adopt(part)
# part.SaveProcesses = ['conv','Decay']
part.SaveProcesses = ['Decay']
part.MinimalKineticEnergy = 100 * MeV
part.OutputLevel = 5 # generator_output_level
Expand All @@ -121,10 +115,6 @@ def run():
ph = geant4.addPhysics(str('Geant4PhysicsList/Myphysics'))
ph.addPhysicsConstructor(str('G4StepLimiterPhysics'))
#
# Add special particle types from specialized physics constructor
part = geant4.addPhysics(str('Geant4ExtraParticles/ExtraParticles'))
part.pdgfile = os.path.join(install_dir, 'examples/DDG4/examples/particle.tbl')
#
phys.dump()
#
kernel.configure()
Expand Down

0 comments on commit 42879c7

Please sign in to comment.