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

Class ParamCard

source code

object --+    
         |    
      dict --+
             |
            ParamCard
Known Subclasses:

a param Card: list of Block

Instance Methods [hide private]
new empty dictionary

__init__(self, input_path=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
read(self, input_path)
read a card and full this object with the content of the card
source code
 
__setitem__(self, name, value)
x[i]=y
source code
 
__getitem__(self, name)
x[y]
source code
 
analyze_param_card(self)
Analyzes the comment of the parameter in the param_card and returns a dictionary with parameter names in values and the tuple (lhablock, id) in value as well as a dictionary for restricted values.
source code
 
update_dependent(self, model, restrict_rule, loglevel)
update the parameter of the card which are not free parameter...
source code
 
write(self, outpath=None, precision='')
schedular for writing a card
source code
 
create_diff(self, new_card)
return a text file allowing to pass from this card to the new one via the set command
source code
 
get_value(self, blockname, lhecode, default=None) source code
 
get_missing_block(self, identpath) source code
 
secure_slha2(self, identpath) source code
 
write_inc_file(self, outpath, identpath, default, need_mp=False)
write a fortran file which hardcode the param value
source code
 
convert_to_complex_mass_scheme(self)
Convert this param_card to the convention used for the complex mass scheme: This includes, removing the Yukawa block if present and making sure the EW input scheme is (MZ, MW, aewm1).
source code
 
append(self, obj)
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
 
do_help(self, block, lhacode, default=None) 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__, __gt__, __iter__, __le__, __len__, __lt__, __ne__, __new__, __repr__, __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]
  mp_prefix = 'MP__'
  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 help(type(x)) for signature

Returns:
new empty dictionary

Overrides: object.__init__
(inherited documentation)

__setitem__(self, name, value)
(Index assignment operator)

source code 

x[i]=y

Overrides: dict.__setitem__
(inherited documentation)

__getitem__(self, name)
(Indexing operator)

source code 

x[y]

Overrides: dict.__getitem__
(inherited documentation)

analyze_param_card(self)

source code 

Analyzes the comment of the parameter in the param_card and returns a dictionary with parameter names in values and the tuple (lhablock, id) in value as well as a dictionary for restricted values. WARNING: THIS FUNCTION RELIES ON THE FORMATTING OF THE COMMENT IN THE CARD TO FETCH THE PARAMETER NAME. This is mostly ok on the *_default.dat but typically dangerous on the user-defined card.

update_dependent(self, model, restrict_rule, loglevel)

source code 
update the parameter of the card which are not free parameter
(i.e mass and width)
loglevel can be: None
                 info
                 warning
                 crash # raise an error
return if the param_card was modified or not

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                       ####
######################################################################
'''