Skip to content
Snippets Groups Projects
Commit edebfc24 authored by Markus FRANK's avatar Markus FRANK Committed by MarkusFrankATcernch
Browse files

Fix python warnings

parent 44a403df
No related branches found
No related tags found
No related merge requests found
...@@ -12,6 +12,7 @@ import sys ...@@ -12,6 +12,7 @@ import sys
import os import os
from g4units import rad, GeV, MeV, mm, m from g4units import rad, GeV, MeV, mm, m
from ddsix.moves import range from ddsix.moves import range
from math import pi
logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.INFO) logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.INFO)
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
...@@ -89,13 +90,15 @@ def run(): ...@@ -89,13 +90,15 @@ def run():
geant4.setupROOTOutput('RootOutput', 'Reflections_' + time.strftime('%Y-%m-%d_%H-%M'), mc_truth=True) geant4.setupROOTOutput('RootOutput', 'Reflections_' + time.strftime('%Y-%m-%d_%H-%M'), mc_truth=True)
# #
# Setup particle gun # Setup particle gun
geant4.setupGun(name = "Gun", geant4.setupGun(name="Gun",
particle = 'e-', particle='e-',
energy = 1000 * GeV, energy=1000*GeV,
multiplicity = 1, multiplicity=1,
position = (0*m, 0*m, 0*m), position=(0*m, 0*m, 0*m),
PhiMin = 0.0*rad, PhiMax = 3.141*2.0*rad, PhiMin=0.0*rad,
ThetaMin = 0.0*rad, ThetaMax = 3.141*rad) PhiMax=math.pi*2.0*rad,
ThetaMin=0.0*rad,
ThetaMax=math.pi*rad)
logger.info("# ....and handle the simulation particles.") logger.info("# ....and handle the simulation particles.")
part = DDG4.GeneratorAction(kernel, str('Geant4ParticleHandler/ParticleHandler')) part = DDG4.GeneratorAction(kernel, str('Geant4ParticleHandler/ParticleHandler'))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment