Package madgraph :: Package various :: Module lhe_parser :: Class Particle
[hide private]
[frames] | no frames]

Class Particle

source code

object --+
         |
        Particle

Instance Methods [hide private]
 
__init__(self, line=None, event=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
parse(self, line)
parse the line
source code
 
__str__(self)
string representing the particles
source code
 
__eq__(self, other) source code
 
__repr__(self)
repr(x)
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Variables [hide private]
  pattern = re.compile(r'(?ix)^\s*(?P<pid>-?\d+)\s+(?P<status>-?...
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, line=None, event=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__

__str__(self)
(Informal representation operator)

source code 

string representing the particles

Overrides: object.__str__

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

Class Variable Details [hide private]

pattern

Value:
re.compile(r'(?ix)^\s*(?P<pid>-?\d+)\s+(?P<status>-?\d+)\s+(?P<mother1\
>-?\d+)\s+(?P<mother2>-?\d+)\s+(?P<color1>[\+-e\.\d]*)\s+(?P<color2>[\\
+-e\.\d]*)\s+(?P<px>[\+-e\.\d]*)\s+(?P<py>[\+-e\.\d]*)\s+(?P<pz>[\+-e\\
.\d]*)\s+(?P<E>[\+-e\.\d]*)\s+(?P<mass>[\+-e\.\d]*)\s+(?P<vtim>[\+-e\.\
\d]*)\s+(?P<helicity>[\+-e\.\d]*)\s*($|(?P<comment>#[\d\|D]*))')