Geant4  10.02.p03
mcscore.MCVertex Class Reference
Collaboration diagram for mcscore.MCVertex:

Public Member Functions

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)
 

Public Attributes

 x
 
 y
 
 z
 
 nparticle
 
 particle_list
 

Detailed Description

Definition at line 46 of file mcscore.py.

Constructor & Destructor Documentation

◆ __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):
49  self.x = ax
50  self.y = ay
51  self.z = az
52  self.nparticle = 0
53  self.particle_list = []
54 
Here is the caller graph for this function:

◆ __del__() [1/2]

def mcscore.MCVertex.__del__ (   self)

Definition at line 74 of file mcscore.py.

74  def __del__(self):
75  np = len(self.particle_list)
76  del self.particle_list[0:np]
77 
78 
79 # ==================================================================
80 # I/O interface
81 # ==================================================================
Here is the caller graph for this function:

◆ __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):
49  self.x = ax
50  self.y = ay
51  self.z = az
52  self.nparticle = 0
53  self.particle_list = []
54 
Here is the call graph for this function:

◆ __del__() [2/2]

def mcscore.MCVertex.__del__ (   self)

Definition at line 74 of file python3/mcscore.py.

74  def __del__(self):
75  np = len(self.particle_list)
76  del self.particle_list[0:np]
77 
78 
79 # ==================================================================
80 # I/O interface
81 # ==================================================================
Here is the call graph for this function:

Member Function Documentation

◆ 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
58 
Here is the caller graph for this function:

◆ 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
58 
Here is the call graph for this function:

◆ 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)
68  stream.write(aline)
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)
72  stream.write(aline)
73 
Here is the call graph for this function:

◆ 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)
68  stream.write(aline)
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)
72  stream.write(aline)
73 
Here is the caller graph for this function:

◆ printout() [1/2]

def mcscore.MCVertex.printout (   self)

Definition at line 59 of file mcscore.py.

59  def printout(self):
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:
63  p.printout()
64 
Here is the caller graph for this function:

◆ printout() [2/2]

def mcscore.MCVertex.printout (   self)

Definition at line 59 of file python3/mcscore.py.

59  def printout(self):
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:
63  p.printout()
64 
void print(G4double elem)
Here is the call graph for this function:

Member Data Documentation

◆ nparticle

mcscore.MCVertex.nparticle

Definition at line 52 of file mcscore.py.

◆ particle_list

mcscore.MCVertex.particle_list

Definition at line 53 of file mcscore.py.

◆ x

mcscore.MCVertex.x

Definition at line 49 of file mcscore.py.

◆ y

mcscore.MCVertex.y

Definition at line 50 of file mcscore.py.

◆ z

mcscore.MCVertex.z

Definition at line 51 of file mcscore.py.


The documentation for this class was generated from the following file: