Package madgraph :: Package various :: Module shower_card :: Class ShowerCard
[hide private]
[frames] | no frames]

Class ShowerCard

source code

object --+    
         |    
      dict --+
             |
            ShowerCard

Instance Methods [hide private]
new empty dictionary

__init__(self, card=None, testing=False)
if testing, card is the content
source code
 
read_card(self, card_path)
read the shower_card, if testing card_path is the content
source code
 
set_param(self, key, value, write_to='')
set the param key to value.
source code
 
write_card(self, shower, card_path)
write the shower_card for shower in card_path.
source code

Inherited from dict: __cmp__, __contains__, __delitem__, __eq__, __ge__, __getattribute__, __getitem__, __gt__, __iter__, __le__, __len__, __lt__, __ne__, __new__, __repr__, __setitem__, __sizeof__, clear, copy, fromkeys, get, has_key, items, iteritems, iterkeys, itervalues, keys, pop, popitem, setdefault, update, values, viewitems, viewkeys, viewvalues

Inherited from object: __delattr__, __format__, __reduce__, __reduce_ex__, __setattr__, __str__, __subclasshook__

Class Variables [hide private]
  true = ['.true.', 't', 'true', '1']
  false = ['.false.', 'f', 'false', '0']
  logical_vars = ['ue_enabled', 'hadronize', 'b_stable', 'pi_sta...
  string_vars = ['extralibs', 'extrapaths', 'includepaths', 'ana...
  int_vars = ['nsplit_jobs', 'maxprint', 'nevents', 'pdfcode', '...
  float_vars = ['maxerrs', 'lambda_5', 'b_mass', 'qcut']
  names_dict = {'analyse': {'HERWIG6': 'hwuti', 'HERWIGPP': 'hwp...
  stdhep_dict = {'HERWIG6': 'mcatnlo_hwan_stdhep.o', 'PYTHIA6': ...
  i = 99

Inherited from dict: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, card=None, testing=False)
(Constructor)

source code 

if testing, card is the content

Returns:
new empty dictionary

Overrides: object.__init__

set_param(self, key, value, write_to='')

source code 

set the param key to value. if write_to is passed then write the new shower_card: if not testing write_to is an input path, if testing the text is returned by the function

write_card(self, shower, card_path)

source code 

write the shower_card for shower in card_path. if self.testing, card_path takes the value of the string


Class Variable Details [hide private]

logical_vars

Value:
['ue_enabled',
 'hadronize',
 'b_stable',
 'pi_stable',
 'wp_stable',
 'wm_stable',
 'z_stable',
 'h_stable',
...

string_vars

Value:
['extralibs',
 'extrapaths',
 'includepaths',
 'analyse',
 'dm_1',
 'dm_2',
 'dm_3',
 'dm_4',
...

int_vars

Value:
['nsplit_jobs',
 'maxprint',
 'nevents',
 'pdfcode',
 'rnd_seed',
 'rnd_seed2',
 'njmax']

names_dict

Value:
{'analyse': {'HERWIG6': 'hwuti',
             'HERWIGPP': 'hwpputi',
             'PYTHIA6': 'pyuti',
             'PYTHIA8': 'py8uti'},
 'b_mass': {'HERWIG6': 'b_mass',
            'HERWIGPP': 'b_mass',
            'PYTHIA6': 'b_mass',
            'PYTHIA8': 'b_mass'},
...

stdhep_dict

Value:
{'HERWIG6': 'mcatnlo_hwan_stdhep.o',
 'PYTHIA6': 'mcatnlo_pyan_stdhep.o'}