~madteam/mg5amcnlo/series2.0

« back to all changes in this revision

Viewing changes to tests/unit_tests/various/test_4fermion_models.py

  • Committer: olivier-mattelaer
  • Date: 2020-08-21 09:16:56 UTC
  • mfrom: (284.2.24 python3)
  • Revision ID: olivier-mattelaer-20200821091656-iizux2mj94tkssuo
pass to 2.8.0 (and move to python3 branch)

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
"""Unit tests for four-fermion models."""
16
16
from __future__ import division
17
17
 
 
18
from __future__ import absolute_import
18
19
import copy
19
20
import logging
20
21
import math
32
33
import madgraph.various.diagram_symmetry as diagram_symmetry
33
34
import models.import_ufo as import_ufo
34
35
import models.model_reader as model_reader
 
36
from six.moves import range
 
37
from six.moves import zip
35
38
 
36
39
_file_path = os.path.split(os.path.dirname(os.path.realpath(__file__)))[0]
37
40
 
81
84
 
82
85
            values[model] = evaluator.evaluate_matrix_element(matrix_element,
83
86
                                                              p)[0]
84
 
 
85
87
            
86
88
        self.assertAlmostEqual(values['scalar'], values['4ferm'], 3)
87
89
 
92
94
    """Test class for the s-channel type 4-fermion model"""
93
95
 
94
96
    def setUp(self):
 
97
 
 
98
        
 
99
 
 
100
       
 
101
        self.base_model_4ferm = import_ufo.import_model('uutt_sch_4fermion')
 
102
        self.full_model_4ferm = \
 
103
                               model_reader.ModelReader(self.base_model_4ferm)
 
104
        self.full_model_4ferm.set_parameters_and_couplings()
 
105
        
95
106
        self.base_model_scalar = import_ufo.import_model('sextet_diquarks')
96
107
        self.full_model_scalar = \
97
108
                               model_reader.ModelReader(self.base_model_scalar)
98
109
        self.full_model_scalar.set_parameters_and_couplings()
99
110
        self.full_model_scalar.get('parameter_dict')['mdl_MSIX'] = 1.e5
100
 
        
101
 
        self.base_model_4ferm = import_ufo.import_model('uutt_sch_4fermion')
102
 
        self.full_model_4ferm = \
103
 
                               model_reader.ModelReader(self.base_model_4ferm)
104
 
        self.full_model_4ferm.set_parameters_and_couplings()
105
111
    
106
112
    def test_uu_to_tt_sch(self):
107
113
        """Test the process u u > t t between s-channel and 4fermion vertex"""