Skip to content

Commit

Permalink
Update templates to allow extra parameters and EWSB substitutions
Browse files Browse the repository at this point in the history
  • Loading branch information
Dylan Harries committed Dec 8, 2016
1 parent 2c48509 commit f2a9177
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/mass_eigenstates.cpp.in
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ using namespace @ModelName@_info;
#define INPUT(parameter) model.get_input().parameter
#define LOCALINPUT(parameter) input.parameter
#define MODELPARAMETER(parameter) model.get_##parameter()
#define EXTRAPARAMETER(parameter) model.get_##parameter()

#define HIGGS_2LOOP_CORRECTION_AT_AS two_loop_corrections.higgs_at_as
#define HIGGS_2LOOP_CORRECTION_AB_AS two_loop_corrections.higgs_ab_as
Expand Down Expand Up @@ -265,6 +266,7 @@ int CLASSNAME::solve_ewsb_iteratively()
auto ewsb_stepper = [model](const EWSB_vector_t& ewsb_pars) mutable -> EWSB_vector_t {
@getEWSBParametersFromVector@
@setEWSBParametersFromLocalCopies@
@applyEWSBSubstitutions@
if (model.get_ewsb_loop_order() > 0)
model.calculate_DRbar_masses();

Expand All @@ -274,6 +276,7 @@ int CLASSNAME::solve_ewsb_iteratively()
auto tadpole_stepper = [model](const EWSB_vector_t& ewsb_pars) mutable -> EWSB_vector_t {
@getEWSBParametersFromVector@
@setEWSBParametersFromLocalCopies@
@applyEWSBSubstitutions@
if (model.get_ewsb_loop_order() > 0)
model.calculate_DRbar_masses();

Expand Down Expand Up @@ -348,6 +351,7 @@ void CLASSNAME::set_ewsb_solution(const EWSB_solver* solver)
const auto solution = solver->get_solution();

@setEWSBSolution@
@setModelParametersFromEWSB@
calculate_DRbar_masses();
}

Expand Down
4 changes: 4 additions & 0 deletions templates/mass_eigenstates.hpp.in
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ public:
@higgsMassGetterPrototypes@
@mixingMatrixGetters@
@phasesGetterSetters@
@extraParameterSetters@
@extraParameterGetters@
@massCalculationPrototypes@
@tadpoleEqPrototypes@
@selfEnergyPrototypes@
Expand Down Expand Up @@ -179,6 +181,8 @@ private:
@mixingMatricesDef@
// phases
@phasesDefinition@
// extra parameters
@extraParameterDefs@
};

std::ostream& operator<<(std::ostream&, const @ModelName@_mass_eigenstates&);
Expand Down

0 comments on commit f2a9177

Please sign in to comment.