Skip to content

Commit

Permalink
adding test for g-2 in the SM
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Voigt authored and Alexander Voigt committed Oct 4, 2015
1 parent 66bc95f commit 6321c82
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/module.mk
Expand Up @@ -195,6 +195,7 @@ endif
ifeq ($(shell $(FSCONFIG) --with-SM),yes)
TEST_SRC += \
$(DIR)/test_SM_beta_functions.cpp \
$(DIR)/test_SM_gmm2.cpp \
$(DIR)/test_SM_low_scale_constraint.cpp \
$(DIR)/test_SM_one_loop_spectrum.cpp \
$(DIR)/test_SM_higgs_loop_corrections.cpp \
Expand Down Expand Up @@ -565,6 +566,8 @@ $(DIR)/test_MSSMNoFV_onshell.x: $(LIBMSSMNoFVSLHA2) $(LIBgm2calc) $(LIBFLEXI) $(

$(DIR)/test_SM_beta_functions.x: $(LIBSM) $(LIBFLEXI) $(LIBLEGACY) $(filter-out -%,$(LOOPFUNCLIBS))

$(DIR)/test_SM_gmm2.x: $(LIBSM) $(LIBFLEXI) $(LIBLEGACY) $(filter-out -%,$(LOOPFUNCLIBS))

$(DIR)/test_SM_higgs_loop_corrections.x: $(DIR)/test_SM_higgs_loop_corrections.o $(LIBSM) $(LIBFLEXI) $(LIBLEGACY) $(filter-out -%,$(LOOPFUNCLIBS))
$(CXX) -o $@ $(call abspathx,$< $(LIBSM) $(LIBFLEXI) $(LIBLEGACY) $(LOOPFUNCLIBS)) $(BOOSTTESTLIBS) $(GSLLIBS) $(FLIBS) $(THREADLIBS)

Expand Down
44 changes: 44 additions & 0 deletions test/test_SM_gmm2.cpp
@@ -0,0 +1,44 @@
// ====================================================================
// This file is part of FlexibleSUSY.
//
// FlexibleSUSY is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published
// by the Free Software Foundation, either version 3 of the License,
// or (at your option) any later version.
//
// FlexibleSUSY is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with FlexibleSUSY. If not, see
// <http://www.gnu.org/licenses/>.
// ====================================================================

#define BOOST_TEST_DYN_LINK
#define BOOST_TEST_MODULE test_SM_gmm2

#include <boost/test/unit_test.hpp>

#include "test_SM.hpp"

#include "SM_two_scale_model.hpp"
#include "SM_g_muon_minus_2.hpp"

using namespace flexiblesusy;

BOOST_AUTO_TEST_CASE( test_zero )
{
SM_input_parameters input;
input.LambdaIN = 0.25;
input.Qin = 1000;

SM<Two_scale> sm;
setup_SM_const(sm, input);
sm.calculate_DRbar_masses();

const double amu = SM_GMuonMinus2::calculate_amuon(sm);

BOOST_CHECK_SMALL(amu, 1e-15);
}

0 comments on commit 6321c82

Please sign in to comment.