Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mcscore.MCVertex Class Reference

Public Member Functions

def __init__
 
def append_particle
 
def printout
 
def dump_vertex
 
def __del__
 
def __init__
 
def append_particle
 
def printout
 
def dump_vertex
 
def __del__
 

Public Attributes

 x
 
 y
 
 z
 
 nparticle
 
 particle_list
 

Detailed Description

Definition at line 46 of file mcscore.py.

Constructor & Destructor Documentation

def mcscore.MCVertex.__init__ (   self,
  ax,
  ay,
  az 
)

Definition at line 48 of file mcscore.py.

48 
49  def __init__(self, ax, ay, az):
50  self.x = ax
51  self.y = ay
52  self.z = az
53  self.nparticle = 0
54  self.particle_list = []

Here is the caller graph for this function:

def mcscore.MCVertex.__del__ (   self)

Definition at line 74 of file mcscore.py.

74 
75  def __del__(self):
76  np = len(self.particle_list)
77  del self.particle_list[0:np]
78 
79 
80 # ==================================================================
81 # I/O interface
# ==================================================================

Here is the caller graph for this function:

def mcscore.MCVertex.__init__ (   self,
  ax,
  ay,
  az 
)

Definition at line 48 of file mcscore.py.

48 
49  def __init__(self, ax, ay, az):
50  self.x = ax
51  self.y = ay
52  self.z = az
53  self.nparticle = 0
54  self.particle_list = []

Here is the call graph for this function:

def mcscore.MCVertex.__del__ (   self)

Definition at line 74 of file mcscore.py.

74 
75  def __del__(self):
76  np = len(self.particle_list)
77  del self.particle_list[0:np]
78 
79 
80 # ==================================================================
81 # I/O interface
# ==================================================================

Here is the call graph for this function:

Member Function Documentation

def mcscore.MCVertex.append_particle (   self,
  aparticle 
)

Definition at line 55 of file mcscore.py.

55 
56  def append_particle(self, aparticle):
57  self.particle_list.append(aparticle)
58  self.nparticle= self.nparticle+1
def append_particle
Definition: mcscore.py:55

Here is the caller graph for this function:

def mcscore.MCVertex.append_particle (   self,
  aparticle 
)

Definition at line 55 of file mcscore.py.

55 
56  def append_particle(self, aparticle):
57  self.particle_list.append(aparticle)
58  self.nparticle= self.nparticle+1
def append_particle
Definition: mcscore.py:55

Here is the call graph for this function:

def mcscore.MCVertex.dump_vertex (   self,
  stream 
)

Definition at line 65 of file mcscore.py.

65 
66  def dump_vertex(self, stream):
67  aline = "%g %g %g %d\n" % \
68  (self.x/m, self.y/m, self.z/m, self.nparticle)
69  stream.write(aline)
70  for p in self.particle_list:
71  aline = " %s %d %d %g %g %g %g\n" % \
72  (p.name, p.Z, p.A, p.kineticE/MeV, p.px/MeV, p.py/MeV, p.pz/MeV)
73  stream.write(aline)

Here is the call graph for this function:

def mcscore.MCVertex.dump_vertex (   self,
  stream 
)

Definition at line 65 of file mcscore.py.

65 
66  def dump_vertex(self, stream):
67  aline = "%g %g %g %d\n" % \
68  (self.x/m, self.y/m, self.z/m, self.nparticle)
69  stream.write(aline)
70  for p in self.particle_list:
71  aline = " %s %d %d %g %g %g %g\n" % \
72  (p.name, p.Z, p.A, p.kineticE/MeV, p.px/MeV, p.py/MeV, p.pz/MeV)
73  stream.write(aline)

Here is the caller graph for this function:

def mcscore.MCVertex.printout (   self)

Definition at line 59 of file mcscore.py.

59 
60  def printout(self):
61  print "@@@ vertex: x=(%g,%g,%g) Nsec=%3d" % \
62  (self.x/cm, self.y/cm, self.z/cm, self.nparticle)
63  for p in self.particle_list:
64  p.printout()

Here is the caller graph for this function:

def mcscore.MCVertex.printout (   self)

Definition at line 59 of file mcscore.py.

59 
60  def printout(self):
61  print("@@@ vertex: x=(%g,%g,%g) Nsec=%3d" % \
62  (self.x/cm, self.y/cm, self.z/cm, self.nparticle))
63  for p in self.particle_list:
64  p.printout()
void print(G4double elem)

Here is the call graph for this function:

Member Data Documentation

mcscore.MCVertex.nparticle

Definition at line 52 of file mcscore.py.

mcscore.MCVertex.particle_list

Definition at line 53 of file mcscore.py.

mcscore.MCVertex.x

Definition at line 49 of file mcscore.py.

mcscore.MCVertex.y

Definition at line 50 of file mcscore.py.

mcscore.MCVertex.z

Definition at line 51 of file mcscore.py.


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