|
def | __init__ (self, ax, ay, az) |
|
def | append_particle (self, aparticle) |
|
def | printout (self) |
|
def | dump_vertex (self, stream) |
|
def | __del__ (self) |
|
def | __init__ (self, ax, ay, az) |
|
def | append_particle (self, aparticle) |
|
def | printout (self) |
|
def | dump_vertex (self, stream) |
|
def | __del__ (self) |
|
Definition at line 46 of file mcscore.py.
◆ __init__() [1/2]
def mcscore.MCVertex.__init__ |
( |
|
self, |
|
|
|
ax, |
|
|
|
ay, |
|
|
|
az |
|
) |
| |
Definition at line 48 of file mcscore.py.
48 def __init__(self, ax, ay, az):
53 self.particle_list = []
◆ __del__() [1/2]
def mcscore.MCVertex.__del__ |
( |
|
self | ) |
|
Definition at line 74 of file mcscore.py.
75 np = len(self.particle_list)
76 del self.particle_list[0:np]
◆ __init__() [2/2]
def mcscore.MCVertex.__init__ |
( |
|
self, |
|
|
|
ax, |
|
|
|
ay, |
|
|
|
az |
|
) |
| |
Definition at line 48 of file python3/mcscore.py.
48 def __init__(self, ax, ay, az):
53 self.particle_list = []
◆ __del__() [2/2]
def mcscore.MCVertex.__del__ |
( |
|
self | ) |
|
Definition at line 74 of file python3/mcscore.py.
75 np = len(self.particle_list)
76 del self.particle_list[0:np]
◆ append_particle() [1/2]
def mcscore.MCVertex.append_particle |
( |
|
self, |
|
|
|
aparticle |
|
) |
| |
Definition at line 55 of file mcscore.py.
55 def append_particle(self, aparticle):
56 self.particle_list.append(aparticle)
57 self.nparticle= self.nparticle+1
◆ append_particle() [2/2]
def mcscore.MCVertex.append_particle |
( |
|
self, |
|
|
|
aparticle |
|
) |
| |
Definition at line 55 of file python3/mcscore.py.
55 def append_particle(self, aparticle):
56 self.particle_list.append(aparticle)
57 self.nparticle= self.nparticle+1
◆ dump_vertex() [1/2]
def mcscore.MCVertex.dump_vertex |
( |
|
self, |
|
|
|
stream |
|
) |
| |
Definition at line 65 of file python3/mcscore.py.
65 def dump_vertex(self, stream):
66 aline =
"%g %g %g %d\n" % \
67 (self.x/m, self.y/m, self.z/m, self.nparticle)
69 for p
in self.particle_list:
70 aline =
" %s %d %d %g %g %g %g\n" % \
71 (p.name, p.Z, p.A, p.kineticE/MeV, p.px/MeV, p.py/MeV, p.pz/MeV)
◆ dump_vertex() [2/2]
def mcscore.MCVertex.dump_vertex |
( |
|
self, |
|
|
|
stream |
|
) |
| |
Definition at line 65 of file mcscore.py.
65 def dump_vertex(self, stream):
66 aline =
"%g %g %g %d\n" % \
67 (self.x/m, self.y/m, self.z/m, self.nparticle)
69 for p
in self.particle_list:
70 aline =
" %s %d %d %g %g %g %g\n" % \
71 (p.name, p.Z, p.A, p.kineticE/MeV, p.px/MeV, p.py/MeV, p.pz/MeV)
◆ printout() [1/2]
def mcscore.MCVertex.printout |
( |
|
self | ) |
|
Definition at line 59 of file mcscore.py.
60 print "@@@ vertex: x=(%g,%g,%g) Nsec=%3d" % \
61 (self.x/cm, self.y/cm, self.z/cm, self.nparticle)
62 for p
in self.particle_list:
◆ printout() [2/2]
def mcscore.MCVertex.printout |
( |
|
self | ) |
|
Definition at line 59 of file python3/mcscore.py.
60 print(
"@@@ vertex: x=(%g,%g,%g) Nsec=%3d" % \
61 (self.x/cm, self.y/cm, self.z/cm, self.nparticle))
62 for p
in self.particle_list:
void print(G4double elem)
◆ nparticle
mcscore.MCVertex.nparticle |
◆ particle_list
mcscore.MCVertex.particle_list |
The documentation for this class was generated from the following file: