~madteam/mg5amcnlo/series2.0

« back to all changes in this revision

Viewing changes to models/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
from __future__ import absolute_import
 
3
from __future__ import print_function
 
4
from six.moves import range
2
5
__date__ = "3 june 2010"
3
6
__author__ = 'olivier.mattelaer@uclouvain.be'
4
7
 
13
16
        """write a valid param_card.dat"""
14
17
        
15
18
        if not list_of_parameters:
16
 
            from parameters import all_parameters
 
19
            from .parameters import all_parameters
17
20
            list_of_parameters = [param for param in all_parameters if \
18
21
                                                       param.nature=='external']
19
22
        
30
33
    def define_not_dep_param(self, list_of_parameters):
31
34
        """define self.dep_mass and self.dep_width in case that they are 
32
35
        requested in the param_card.dat"""
33
 
        from particles import all_particles
 
36
        from .particles import all_particles
34
37
        
35
38
        self.dep_mass = [(part, part.mass) for part in all_particles \
36
39
                            if part.pdg_code > 0 and \
115
118
    
116
119
    def write_dep_param_block(self, lhablock):
117
120
        import cmath
118
 
        from parameters import all_parameters
 
121
        from .parameters import all_parameters
119
122
        for parameter in all_parameters:
120
123
            try:
121
124
                exec("%s = %s" % (parameter.name, parameter.value))
151
154
    
152
155
    def write_qnumber(self):
153
156
        """ write qnumber """
154
 
        from particles import all_particles
 
157
        from .particles import all_particles
155
158
        
156
159
        text="""#===========================================================\n"""
157
160
        text += """# QUANTUM NUMBERS OF NEW STATE(S) (NON SM PDG CODE)\n"""