Skip to content

Commit

Permalink
adding struct which contains calculated observables
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Voigt authored and Alexander Voigt committed Dec 20, 2015
1 parent 35bee14 commit 870607e
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/module.mk
Expand Up @@ -17,6 +17,7 @@ LIBFLEXI_SRC := \
$(DIR)/gsl_utils.cpp \
$(DIR)/linalg.cpp \
$(DIR)/lowe.cpp \
$(DIR)/observables.cpp \
$(DIR)/sfermions.cpp \
$(DIR)/mssm_twoloophiggs.f \
$(DIR)/nmssm2loop.f \
Expand Down Expand Up @@ -75,6 +76,7 @@ LIBFLEXI_HDR := \
$(DIR)/nmssm_twoloophiggs.h \
$(DIR)/numerics.h \
$(DIR)/numerics2.hpp \
$(DIR)/observables.hpp \
$(DIR)/pmns.hpp \
$(DIR)/problems.hpp \
$(DIR)/pv.hpp \
Expand Down
33 changes: 33 additions & 0 deletions src/observables.cpp
@@ -0,0 +1,33 @@
// ====================================================================
// 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/>.
// ====================================================================

#include "observables.hpp"

namespace flexiblesusy {

Observables::Observables()
: amu(0.)
{
}

void Observables::clear()
{
amu = 0.;
}

} // namespace flexiblesusy
38 changes: 38 additions & 0 deletions src/observables.hpp
@@ -0,0 +1,38 @@
// ====================================================================
// 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/>.
// ====================================================================

/**
* @file observables.hpp
* @brief contains class Observables
*/

#ifndef OBSERVABLES_H
#define OBSERVABLES_H

namespace flexiblesusy {

struct Observables {
Observables();
void clear(); ///< sets all observables to zero

double amu; ///< a_mu = (g-2)/2 of the muon
};

} // namespace flexiblesusy

#endif

0 comments on commit 870607e

Please sign in to comment.