This commit is contained in:
Jan Kieseler
2023-09-20 20:06:11 +00:00
parent c7bf5749ec
commit 3c7ba890aa
+2 -2
View File
@@ -10,8 +10,8 @@ from IPython.display import Image, display
class G4System(_G4System):
def run_visualize(self,particleSpec : str, minEnergy_GeV: float, maxEnergy_GeV:float = -1.):
if maxEnergy < 0:
maxEnergy = minEnergy
if maxEnergy_GeV < 0:
maxEnergy_GeV = minEnergy_GeV
_G4System.run_visualize(self, particleSpec, minEnergy_GeV, maxEnergy_GeV)
self.displayEvent()