~madteam/mg5amcnlo/series2.0

« back to all changes in this revision

Viewing changes to models/loop_sm/write_param_card.py

mwrge with 2.7.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
 
2
2
from __future__ import print_function
 
3
from __future__ import absolute_import
3
4
from six.moves import range
4
5
__date__ = "3 june 2010"
5
6
__author__ = 'olivier.mattelaer@uclouvain.be'
6
7
 
7
 
from function_library import *
 
8
from .function_library import *
8
9
 
9
10
class ParamCardWriter(object):
10
11
    
17
18
        """write a valid param_card.dat"""
18
19
        
19
20
        if not list_of_parameters:
20
 
            from parameters import all_parameters
 
21
            from .parameters import all_parameters
21
22
            list_of_parameters = [param for param in all_parameters if \
22
23
                                                       param.nature=='external']
23
24
        
34
35
    def define_not_dep_param(self, list_of_parameters):
35
36
        """define self.dep_mass and self.dep_width in case that they are 
36
37
        requested in the param_card.dat"""
37
 
        from particles import all_particles
 
38
        from .particles import all_particles
38
39
        
39
40
        self.dep_mass = [(part, part.mass) for part in all_particles \
40
41
                            if part.pdg_code > 0 and \
118
119
    
119
120
    def write_dep_param_block(self, lhablock):
120
121
        import cmath
121
 
        from parameters import all_parameters
 
122
        from .parameters import all_parameters
122
123
        for parameter in all_parameters:
123
124
            exec("%s = %s" % (parameter.name, parameter.value))
124
125
        text = "##  Not dependent paramater.\n"
151
152
    
152
153
    def write_qnumber(self):
153
154
        """ write qnumber """
154
 
        from particles import all_particles
 
155
        from .particles import all_particles
155
156
        
156
157
        text="""#===========================================================\n"""
157
158
        text += """# QUANTUM NUMBERS OF NEW STATE(S) (NON SM PDG CODE)\n"""