Skip to content
Snippets Groups Projects
Commit 23e13c91 authored by Chenxi Fu's avatar Chenxi Fu
Browse files

g4输出信息

parent 891a44da
No related branches found
No related tags found
1 merge request!28gen_signal批量仿真,cflm bug fix,taichu bug fix,geant4拆解,drawsave.draw_plots拆解
......@@ -12,14 +12,15 @@ Description:
@version : 2.0
'''
import geant4_pybind as g4b
import sys
import numpy as np
import random
import math
import json
import math
import numpy as np
import geant4_pybind as g4b
verbose = 0
# Geant4 main process
class Particles:
......@@ -585,7 +586,7 @@ class MyEventAction(g4b.G4UserEventAction):
if(Particles._model == "pixel_detector"):
save_pixel_detector_events(self.volume_name,self.localposition)
print("Detector: total energy:", g4b.G4BestUnit(self.edep_device, "Energy"), end="")
#print("Detector: total energy:", g4b.G4BestUnit(self.edep_device, "Energy"), end="")
def RecordDevice(self, edep,point_in,point_out):
self.edep_device += edep
......
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