Package madgraph :: Package various :: Module banner :: Class Banner
[hide private]
[frames] | no frames]

Class Banner

source code

object --+    
         |    
      dict --+
             |
            Banner

Instance Methods [hide private]
new empty dictionary

__init__(self, banner_path=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
read_banner(self, input_path)
read a banner
source code
 
load_basic(self, medir)
Load the proc_card /param_card and run_card
source code
 
change_seed(self, seed)
Change the seed value in the banner
source code
 
add_generation_info(self, cross, nb_event)
add info on MGGeneration
source code
 
split(self, me_dir, proc_card=True)
write the banner in the Cards directory.
source code
 
write(self, output_path)
write the banner
source code
 
add(self, path, tag=None)
Add the content of the file to the banner
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

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

Class Variables [hide private]
  pat_begin = re.compile(r'<(?P<name>\w*)>')
  pat_end = re.compile(r'</(?P<name>\w*)>')
  tag_to_file = {'mg5proccard': 'proc_card_mg5.dat', 'mgdelphesc...

Inherited from dict: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, banner_path=None)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Returns:
new empty dictionary

Overrides: object.__init__

split(self, me_dir, proc_card=True)

source code 

write the banner in the Cards directory. proc_card argument is present to avoid the overwrite of proc_card information


Class Variable Details [hide private]

tag_to_file

Value:
{'mg5proccard': 'proc_card_mg5.dat',
 'mgdelphescard': 'delphes_card.dat',
 'mgdelphestrigger': 'delphes_trigger.dat',
 'mgpgscard': 'pgs_card.dat',
 'mgproccard': 'proc_card.dat',
 'mgpythiacard': 'pythia_card.dat',
 'mgruncard': 'run_card.dat',
 'slha': 'param_card.dat'}