From 5b09077ab9cbcb6cb05ce16daa02bf054f732e1a Mon Sep 17 00:00:00 2001 From: Markus Frank <Markus.Frank@cern.ch> Date: Wed, 13 Jul 2022 19:43:50 +0200 Subject: [PATCH] Fix python style error --- examples/ClientTests/scripts/SiliconBlockGFlash.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/ClientTests/scripts/SiliconBlockGFlash.py b/examples/ClientTests/scripts/SiliconBlockGFlash.py index d49b2f73a..c66fa8f46 100644 --- a/examples/ClientTests/scripts/SiliconBlockGFlash.py +++ b/examples/ClientTests/scripts/SiliconBlockGFlash.py @@ -53,10 +53,9 @@ def run(): # Configure Event actions prt = DDG4.EventAction(kernel, 'Geant4ParticlePrint/ParticlePrint') prt.OutputLevel = Output.DEBUG - # prt.OutputType = 3 # Print both: table and tree kernel.eventAction().adopt(prt) - generator_output_level = prt.OutputLevel #Output.INFO + generator_output_level = prt.OutputLevel # Configure G4 geometry setup seq, act = geant4.addDetectorConstruction('Geant4DetectorGeometryConstruction/ConstructGeo') @@ -78,8 +77,8 @@ def run(): model.Material = 'Silicon' model.Enable = True # Energy boundaries are optional - model.Emin = {'e+': 0.1*GeV, 'e-': 0.1*GeV } # Units in GeV - model.Ekill = {'e+': 0.1*MeV, 'e-': 0.1*MeV } + model.Emin = {'e+': 0.1 * GeV, 'e-': 0.1 * GeV} # Units in GeV + model.Ekill = {'e+': 0.1 * MeV, 'e-': 0.1 * MeV} model.enableUI() seq.adopt(model) @@ -117,5 +116,6 @@ def run(): geant4.execute() + if __name__ == "__main__": run() -- GitLab