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

Class EventFile

source code

object --+    
         |    
      file --+
             |
            EventFile

Instance Methods [hide private]
file object
__init__(self, path, mode='r', *args, **opt)
open file and read the banner [if in read mode]
source code
 
get_banner(self)
return a banner object
source code
the next value, or raise StopIteration
next(self)
get next event
source code

Inherited from file: __delattr__, __enter__, __exit__, __getattribute__, __iter__, __new__, __repr__, __setattr__, close, fileno, flush, isatty, read, readinto, readline, readlines, seek, tell, truncate, write, writelines, xreadlines

Inherited from object: __format__, __hash__, __reduce__, __reduce_ex__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from file: closed, encoding, errors, mode, name, newlines, softspace

Inherited from object: __class__

Method Details [hide private]

__init__(self, path, mode='r', *args, **opt)
(Constructor)

source code 

open file and read the banner [if in read mode]

Returns: file object
Overrides: object.__init__

next(self)

source code 

get next event

Returns: the next value, or raise StopIteration
Overrides: file.next