Package models :: Module check_param_card :: Class ParamCard
[hide private]
[frames] | no frames]

Class ParamCard

source code

object --+    
         |    
      dict --+
             |
            ParamCard

a param Card: list of Block

Instance Methods [hide private]
new empty dictionary

__init__(self, input_path=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
read(self, input_path)
read a card and full this object with the content of the card
source code
 
write(self, outpath)
schedular for writing a card
source code
 
append(self, object)
add an object to this
source code
 
has_block(self, name) source code
 
order_block(self)
reorganize the block
source code
 
rename_blocks(self, name_dict)
rename the blocks
source code
 
remove_block(self, name)
remove a blocks
source code
 
remove_param(self, block, lhacode)
remove a parameter
source code
 
has_param(self, block, lhacode)
check if param exists
source code
 
copy_param(self, old_block, old_lha, block=None, lhacode=None)
make a parameter, a symbolic link on another one
source code
 
add_param(self, block, lha, value, comment='') source code
 
mod_param(self, old_block, old_lha, block=None, lhacode=None, value=None, comment=None)
change a parameter to a new one.
source code
 
check_and_remove(self, block, lhacode, value)
check that the value is coherent and remove it
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]
  header = '####################################################...

Inherited from dict: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, input_path=None)
(Constructor)

source code 

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

Returns:
new empty dictionary

Overrides: object.__init__
(inherited documentation)

mod_param(self, old_block, old_lha, block=None, lhacode=None, value=None, comment=None)

source code 

change a parameter to a new one. This is not a duplication.


Class Variable Details [hide private]

header

Value:
'''###################################################################\
###
## PARAM_CARD AUTOMATICALY GENERATED BY MG5                       ####
######################################################################
'''