GM2Calc 2.3.0
Loading...
Searching...
No Matches
example_thdm.py.in
Go to the documentation of this file.
1#!/usr/bin/env python
2
3from __future__ import print_function
4
5from gm2_python_interface import *
6
7cppyy.include(os.path.join("gm2calc","gm2_1loop.hpp"))
8cppyy.include(os.path.join("gm2calc","gm2_2loop.hpp"))
9cppyy.include(os.path.join("gm2calc","gm2_uncertainty.hpp"))
10cppyy.include(os.path.join("gm2calc","gm2_error.hpp"))
11cppyy.include(os.path.join("gm2calc","THDM.hpp"))
12
13cppyy.load_library("libgm2calc")
14
15# Load data types
16from cppyy.gbl import std
17from cppyy.gbl import Eigen
18from cppyy.gbl import gm2calc
19from cppyy.gbl.gm2calc import SM
20from cppyy.gbl.gm2calc import THDM
21from cppyy.gbl.gm2calc import Error
22
23basis = gm2calc.thdm.Mass_basis()
24basis.yukawa_type = gm2calc.thdm.Yukawa_type.type_2
25basis.mh = 125.
26basis.mH = 400.
27basis.mA = 420.
28basis.mHp = 440.
29basis.sin_beta_minus_alpha = 0.999
30basis.lambda_6 = 0.
31basis.lambda_7 = 0.
32basis.tan_beta = 3.
33basis.m122 = 40000.
34basis.zeta_u = 0.
35basis.zeta_d = 0.
36basis.zeta_l = 0.
37basis.Delta_u = Eigen.Matrix3d().setZero()
38basis.Delta_d = Eigen.Matrix3d().setZero()
39basis.Delta_l = Eigen.Matrix3d().setZero()
40basis.Pi_u = Eigen.Matrix3d().setZero()
41basis.Pi_d = Eigen.Matrix3d().setZero()
42basis.Pi_l = Eigen.Matrix3d().setZero()
43
44sm = gm2calc.SM()
45sm.set_alpha_em_mz(1.0/128.94579)
46sm.set_mu(2,173.34)
47sm.set_mu(1,1.28)
48sm.set_md(2,4.18)
49sm.set_ml(2,1.77684)
50
51config = gm2calc.thdm.Config()
52config.force_output = False;
53config.running_couplings = True;
54
55try:
56 model = gm2calc.THDM(basis,sm,config)
57 amu = gm2calc.calculate_amu_1loop(model) + gm2calc.calculate_amu_2loop(model)
58 delta_amu = gm2calc.calculate_uncertainty_amu_2loop(model)
59 print("amu =",amu,"+-",delta_amu)
60except gm2calc.Error as e:
61 print(e.what())