diff --git a/examples/ClientTests/scripts/SiliconBlockGFlash.py b/examples/ClientTests/scripts/SiliconBlockGFlash.py index d49b2f73a2c3261645991458ec18aee05c04388d..c66fa8f464708e51c996c18e8216569da72e97f3 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()