|
| generic_output |
|
| fsock |
|
| dep_mass |
|
| dep_width |
|
|
| header = \ |
|
list | sm_pdg = [1,2,3,4,5,6,11,12,13,13,14,15,16,21,22,23,24,25] |
|
string | data |
|
Definition at line 7 of file write_param_card.py.
◆ __init__()
def __init__ |
( |
|
self, |
|
|
|
filename, |
|
|
|
list_of_parameters = None , |
|
|
|
generic = False |
|
) |
| |
write a valid param_card.dat
Definition at line 14 of file write_param_card.py.
14 def __init__(self, filename, list_of_parameters=None, generic=False):
15 """write a valid param_card.dat"""
17 if not list_of_parameters:
18 from parameters
import all_parameters
19 list_of_parameters = [param
for param
in all_parameters
if \
20 param.nature==
'external']
22 self.generic_output = generic
24 self.define_not_dep_param(list_of_parameters)
27 self.fsock = open(filename,
'w')
28 self.fsock.write(self.header)
30 self.write_card(list_of_parameters)
◆ define_not_dep_param()
def define_not_dep_param |
( |
|
self, |
|
|
|
list_of_parameters |
|
) |
| |
define self.dep_mass and self.dep_width in case that they are
requested in the param_card.dat
Definition at line 33 of file write_param_card.py.
◆ order_param()
def order_param |
( |
|
obj1, |
|
|
|
obj2 |
|
) |
| |
|
static |
◆ write_block()
def write_block |
( |
|
self, |
|
|
|
name |
|
) |
| |
◆ write_card()
def write_card |
( |
|
self, |
|
|
|
all_ext_param |
|
) |
| |
◆ write_qnumber()
def write_qnumber |
( |
|
self | ) |
|
◆ data
Initial 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 anti)\n"""
Definition at line 171 of file write_param_card.py.
The documentation for this class was generated from the following file: