pyfeyn is hosted by Hepforge, IPPP Durham

Package pyfeyn :: Module feynml :: Class FeynMLReader
[hide private]
[frames] | no frames]

Class FeynMLReader



Class to construct a Feynman diagram from its FeynML representation.

Instance Methods [hide private]
  __init__(self, filename)
Read FeynML from a file.
  get_diagram(self, n)
Return the nth Feynman diagram represented by file contents.
  get_vertex(self, element, thedict)
Build a vertex from its FeynML representation.
  get_line(self, element, thedict)
Build a line from its feynML representation.
  get_leg(self, element, thedict)
Build a leg from its FeynML representation.
  get_blob(self, element, thedict)
Build a blob from its FeynML representation.
  get_connect(self, element, thedict)
Build a blob's connect-point from its FeynML representation.
  get_label(self, element, thedict)
Build a free label from its FeynML representation.
  get_header(self, header)
Read information contained in the FeynML header.
  apply_layout(self, stylestring, obj)
Apply the decorators encoded in a style string to an object.

Method Details [hide private]

__init__(self, filename)
(Constructor)

 
Read FeynML from a file.

get_diagram(self, n)

 
Return the nth Feynman diagram represented by file contents.

get_vertex(self, element, thedict)

 
Build a vertex from its FeynML representation.

get_line(self, element, thedict)

 
Build a line from its feynML representation.

get_leg(self, element, thedict)

 
Build a leg from its FeynML representation.

get_blob(self, element, thedict)

 
Build a blob from its FeynML representation.

get_connect(self, element, thedict)

 
Build a blob's connect-point from its FeynML representation.

get_label(self, element, thedict)

 
Build a free label from its FeynML representation.

get_header(self, header)

 
Read information contained in the FeynML header.

apply_layout(self, stylestring, obj)

 
Apply the decorators encoded in a style string to an object.