Skip to content

Commit

Permalink
adding helper functions to calculate beta functions at given loop order
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Voigt authored and Alexander Voigt committed Jul 20, 2016
1 parent 2968fca commit 494b8a4
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
8 changes: 8 additions & 0 deletions templates/two_scale_soft_parameters.cpp.in
Expand Up @@ -64,6 +64,14 @@ Eigen::ArrayXd @ModelName@_soft_parameters::beta() const
return @ModelName@_soft_parameters(susy_betas, @betaParameterList@);
}

@ModelName@_soft_parameters @ModelName@_soft_parameters::calc_beta(unsigned loops) const
{
@ModelName@_soft_parameters p(*this);
p.set_loops(loops);

return p.calc_beta();
}

void @ModelName@_soft_parameters::clear()
{
@ModelName@_susy_parameters::clear();
Expand Down
1 change: 1 addition & 0 deletions templates/two_scale_soft_parameters.hpp.in
Expand Up @@ -43,6 +43,7 @@ public:
virtual void set(const Eigen::ArrayXd&);

@ModelName@_soft_parameters calc_beta() const;
@ModelName@_soft_parameters calc_beta(unsigned) const;
virtual void clear();

@setter@
Expand Down
8 changes: 8 additions & 0 deletions templates/two_scale_susy_parameters.cpp.in
Expand Up @@ -70,6 +70,14 @@ Eigen::ArrayXd @ModelName@_susy_parameters::beta() const
@betaParameterList@);
}

@ModelName@_susy_parameters @ModelName@_susy_parameters::calc_beta(unsigned loops) const
{
@ModelName@_susy_parameters p(*this);
p.set_loops(loops);

return p.calc_beta();
}

void @ModelName@_susy_parameters::clear()
{
reset();
Expand Down
1 change: 1 addition & 0 deletions templates/two_scale_susy_parameters.hpp.in
Expand Up @@ -50,6 +50,7 @@ public:
void set_input_parameters(const @ModelName@_input_parameters&);

@ModelName@_susy_parameters calc_beta() const;
@ModelName@_susy_parameters calc_beta(unsigned) const;
virtual void clear();

@setter@
Expand Down

0 comments on commit 494b8a4

Please sign in to comment.