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

Class ProcCard

source code

object --+    
         |    
      list --+
             |
            ProcCard

Basic Proccard object

Instance Methods [hide private]
new empty list
__init__(self, init=None)
initialize a basic proc_card
source code
 
read(self, init)
read the proc_card and save the information
source code
 
move_to_last(self, cmd)
move an element to the last history.
source code
 
append(self, line)
"add a line in the proc_card perform automatically cleaning
source code
 
clean(self, to_keep=['set', 'add', 'load'], remove_bef_last=None, to_remove=['open', 'display', 'launch', 'check', 'history'], allow_for_removal=None, keep_switch=False)
Remove command in arguments from history.
source code
 
get(self, tag, default=None) source code
 
write(self, path)
write the proc_card to a given path
source code

Inherited from list: __add__, __contains__, __delitem__, __delslice__, __eq__, __ge__, __getattribute__, __getitem__, __getslice__, __gt__, __iadd__, __imul__, __iter__, __le__, __len__, __lt__, __mul__, __ne__, __new__, __repr__, __reversed__, __rmul__, __setitem__, __setslice__, __sizeof__, count, extend, index, insert, pop, remove, reverse, sort

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

Class Variables [hide private]
  history_header = '#*******************************************...

Inherited from list: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, init=None)
(Constructor)

source code 

initialize a basic proc_card

Returns: new empty list
Overrides: object.__init__

append(self, line)

source code 

"add a line in the proc_card perform automatically cleaning

Overrides: list.append

clean(self, to_keep=['set', 'add', 'load'], remove_bef_last=None, to_remove=['open', 'display', 'launch', 'check', 'history'], allow_for_removal=None, keep_switch=False)

source code 

Remove command in arguments from history. All command before the last occurrence of 'remove_bef_last' (including it) will be removed (but if another options tells the opposite). 'to_keep' is a set of line to always keep. 'to_remove' is a set of line to always remove (don't care about remove_bef_ status but keep_switch acts.). if 'allow_for_removal' is define only the command in that list can be remove of the history for older command that remove_bef_lb1. all parameter present in to_remove are always remove even if they are not part of this list. keep_switch force to keep the statement remove_bef_??? which changes starts the removal mode.


Class Variable Details [hide private]

history_header

Value:
'''#************************************************************
#*                     MadGraph5_aMC@NLO                    *
#*                                                          *
#*                *                       *                 *
#*                  *        * *        *                   *
#*                    * * * * 5 * * * *                     *
#*                  *        * *        *                   *
#*                *                       *                 *
...