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

Class WeightFile

source code

object --+    
         |    
 EventFile --+
             |
            WeightFile
Known Subclasses:

A class to allow to read both gzip and not gzip file. containing only weight from pythia --generated by SysCalc

Instance Methods [hide private]
 
__init__(self, path, mode='r', *args, **opt)
open file and read the banner [if in read mode]
source code

Inherited from EventFile: __len__, apply_fct_on_event, create_syscalc_data, get_alphas, get_banner, initialize_unweighting, next, split, unweight, update_HwU, write_events

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

Static Methods [hide private]
a new object with type S, a subtype of T
__new__(self, path, mode='r', *args, **opt) source code
Class Variables [hide private]

Inherited from EventFile: allow_empty_event

Properties [hide private]

Inherited from EventFile: cross

Inherited from object: __class__

Method Details [hide private]

__new__(self, path, mode='r', *args, **opt)
Static Method

source code 
Returns: a new object with type S, a subtype of T
Overrides: object.__new__
(inherited documentation)

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

source code 

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

Overrides: object.__init__