Package models :: Module write_param_card :: Class ParamCardWriter
[hide private]
[frames] | no frames]

Class ParamCardWriter

source code

object --+
         |
        ParamCardWriter

A class for writting an update param_card for a given model

Instance Methods [hide private]
 
__init__(self, model, filepath=None)
model is a valid MG5 model, filepath is the path were to write the param_card.dat
source code
 
create_param_dict(self)
return {'name': parameterObject}
source code
 
define_not_dep_param(self)
define self.dep_mass and self.dep_width in case that they are requested in the param_card.dat
source code
 
define_output_file(self, path, mode='w')
initialize the file
source code
 
write_card(self, path=None)
schedular for writing a card
source code
 
write_block(self, name)
write a comment for a block
source code
 
write_param(self, param, lhablock)
write the line corresponding to a given parameter
source code
 
write_dep_param_block(self, lhablock)
writing the requested LHA parameter
source code
 
write_qnumber(self)
write qnumber
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]
 
order_param(obj1, obj2)
order parameter of a given block
source code
Class Variables [hide private]
  header = '####################################################...
  sm_pdg = [1, 2, 3, 4, 5, 6, 11, 12, 13, 13, 14, 15, 16, 21, 22...
  qnumber_str = 'Block QNUMBERS %(pdg)d # %(name)s \n 1 ...
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, model, filepath=None)
(Constructor)

source code 

model is a valid MG5 model, filepath is the path were to write the param_card.dat

Overrides: object.__init__

Class Variable Details [hide private]

header

Value:
'''###################################################################\
###
## PARAM_CARD AUTOMATICALY GENERATED BY MG5 FOLLOWING UFO MODEL   ####
######################################################################
'''

sm_pdg

Value:
[1, 2, 3, 4, 5, 6, 11, 12, 13, 13, 14, 15, 16, 21, 22, 23, 24, 25]

qnumber_str

Value:
'''Block QNUMBERS %(pdg)d  # %(name)s 
        1 %(charge)d  # 3 times electric charge
        2 %(spin)d  # number of spin states (2S+1)
        3 %(color)d  # colour rep (1: singlet, 3: triplet, 8: octet)
        4 %(antipart)d  # Particle/Antiparticle distinction (0=own ant\
i)
'''