~madteam/mg5amcnlo/series2.0

« back to all changes in this revision

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