3from __future__ import print_function
5from gm2_python_interface import *
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"))
13cppyy.load_library("libgm2calc")
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
23basis = gm2calc.thdm.Mass_basis()
24basis.yukawa_type = gm2calc.thdm.Yukawa_type.type_2
29basis.sin_beta_minus_alpha = 0.999
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()
45sm.set_alpha_em_mz(1.0/128.94579)
51config = gm2calc.thdm.Config()
52config.force_output = False;
53config.running_couplings = True;
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: