forked from Expander/FlexibleSUSY
/
standard_model_two_scale_high_scale_initial_guesser.cpp.in
282 lines (241 loc) · 8.9 KB
/
standard_model_two_scale_high_scale_initial_guesser.cpp.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
// ====================================================================
// 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 generated at @DateAndTime@
#include "@ModelName@_two_scale_initial_guesser.hpp"
#include "@ModelName@_two_scale_model.hpp"
#include "@ModelName@_standard_model_two_scale_matching.hpp"
#include "standard_model_two_scale_model.hpp"
#include "lowe.h"
#include "error.hpp"
#include "ew_input.hpp"
#include "wrappers.hpp"
#include <Eigen/Core>
#include <cassert>
namespace flexiblesusy {
#define INPUTPARAMETER(p) model->get_input().p
#define MODELPARAMETER(p) model->get_##p()
#define SMPARAMETER(p) eft->get_##p()
#define PHASE(p) model->get_##p()
#define LowEnergyConstant(p) Electroweak_constants::p
#define MODEL model
@ModelName@_standard_model_initial_guesser<Two_scale>::@ModelName@_standard_model_initial_guesser(
@ModelName@<Two_scale>* model_,
@ModelName@<Two_scale>* model_0l_,
standard_model::StandardModel<Two_scale>* eft_,
const softsusy::QedQcd& qedqcd_,
const standard_model::Standard_model_low_scale_constraint<Two_scale>& low_constraint_,
const @ModelName@_susy_scale_constraint<Two_scale>& susy_constraint_,
const @ModelName@_high_scale_constraint<Two_scale>& high_constraint_
)
: Initial_guesser<Two_scale>()
, model(model_)
, model_0l(model_0l_)
, eft(eft_)
, qedqcd(qedqcd_)
, mu_guess(0.)
, mc_guess(0.)
, mt_guess(0.)
, md_guess(0.)
, ms_guess(0.)
, mb_guess(0.)
, me_guess(0.)
, mm_guess(0.)
, mtau_guess(0.)
, running_precision(1.0e-3)
, low_constraint(low_constraint_)
, susy_constraint(susy_constraint_)
, high_constraint(high_constraint_)
{
assert(model && "@ModelName@_initial_guesser: Error: pointer to model"
" @ModelName@<Two_scale> must not be zero");
}
@ModelName@_standard_model_initial_guesser<Two_scale>::~@ModelName@_standard_model_initial_guesser()
{
}
/**
* Guesses the DR-bar model parameters by calling
* guess_susy_parameters() and guess_soft_parameters() .
*/
void @ModelName@_standard_model_initial_guesser<Two_scale>::guess()
{
guess_eft_parameters();
guess_model_parameters();
}
/**
* Guesses the SUSY parameters (gauge, Yukawa couplings) at
* \f$m_\text{top}^\text{pole}\f$ from the Standard Model gauge
* couplings and fermion masses. Threshold corrections are ignored.
* The user-defined initial guess at the low-scale
* (InitialGuessAtLowScale) is applied here:
*
* \code{.cpp}
@initialGuessAtLowScale@
* \endcode
*/
void @ModelName@_standard_model_initial_guesser<Two_scale>::guess_eft_parameters()
{
using namespace softsusy;
softsusy::QedQcd leAtMt(qedqcd);
const double MZ = Electroweak_constants::MZ;
const double MW = Electroweak_constants::MW;
const double sinThetaW2 = 1.0 - Sqr(MW / MZ);
const double mtpole = leAtMt.displayPoleMt();
mu_guess = leAtMt.displayMass(mUp);
mc_guess = leAtMt.displayMass(mCharm);
mt_guess = model->get_thresholds() > 0 ?
leAtMt.displayMass(mTop) - 30.0 :
leAtMt.displayPoleMt();
md_guess = leAtMt.displayMass(mDown);
ms_guess = leAtMt.displayMass(mStrange);
mb_guess = leAtMt.displayMass(mBottom);
me_guess = model->get_thresholds() > 0 ?
leAtMt.displayMass(mElectron) :
leAtMt.displayPoleMel();
mm_guess = model->get_thresholds() > 0 ?
leAtMt.displayMass(mMuon) :
leAtMt.displayPoleMmuon();
mtau_guess = leAtMt.displayMass(mTau);
// guess gauge couplings at mt
const auto alpha_sm(leAtMt.getGaugeMu(mtpole, sinThetaW2));
eft->set_g1(sqrt(4.0 * M_PI * alpha_sm(0)));
eft->set_g2(sqrt(4.0 * M_PI * alpha_sm(1)));
eft->set_g3(sqrt(4.0 * M_PI * alpha_sm(2)));
eft->set_scale(mtpole);
eft->set_v(246.22);
eft->set_Yu(ZEROMATRIX(3,3));
eft->set_Yd(ZEROMATRIX(3,3));
eft->set_Ye(ZEROMATRIX(3,3));
eft->set_Yu(0, 0, -Sqrt(2.)* mu_guess/ eft->get_v());
eft->set_Yu(1, 1, -Sqrt(2.)* mc_guess/ eft->get_v());
eft->set_Yu(2, 2, -Sqrt(2.)* mt_guess/ eft->get_v());
eft->set_Yd(0, 0, Sqrt(2.)* md_guess/ eft->get_v());
eft->set_Yd(1, 1, Sqrt(2.)* ms_guess/ eft->get_v());
eft->set_Yd(2, 2, Sqrt(2.)* mb_guess/ eft->get_v());
eft->set_Ye(0, 0, Sqrt(2.)* me_guess/ eft->get_v());
eft->set_Ye(1, 1, Sqrt(2.)* mm_guess/ eft->get_v());
eft->set_Ye(2, 2, Sqrt(2.)* mtau_guess/ eft->get_v());
eft->set_Lambdax(0.12604);
eft->solve_ewsb_tree_level();
}
void @ModelName@_standard_model_initial_guesser<Two_scale>::calculate_DRbar_yukawa_couplings()
{
calculate_@UpYukawa@_DRbar();
calculate_@DownYukawa@_DRbar();
calculate_@ElectronYukawa@_DRbar();
}
/**
* Calculates the Yukawa couplings @UpYukawa@ of the up-type quarks
* from the Standard Model up-type quark masses (ignoring threshold
* corrections).
*/
void @ModelName@_standard_model_initial_guesser<Two_scale>::calculate_@UpYukawa@_DRbar()
{
Eigen::Matrix<std::complex<double>,3,3> upQuarksDRbar(ZEROMATRIXCOMPLEX(3,3));
upQuarksDRbar(0,0) = mu_guess;
upQuarksDRbar(1,1) = mc_guess;
upQuarksDRbar(2,2) = mt_guess;
@setDRbarUpQuarkYukawaCouplings@
}
/**
* Calculates the Yukawa couplings @DownYukawa@ of the down-type
* quarks from the Standard Model down-type quark masses (ignoring
* threshold corrections).
*/
void @ModelName@_standard_model_initial_guesser<Two_scale>::calculate_@DownYukawa@_DRbar()
{
Eigen::Matrix<std::complex<double>,3,3> downQuarksDRbar(ZEROMATRIXCOMPLEX(3,3));
downQuarksDRbar(0,0) = md_guess;
downQuarksDRbar(1,1) = ms_guess;
downQuarksDRbar(2,2) = mb_guess;
@setDRbarDownQuarkYukawaCouplings@
}
/**
* Calculates the Yukawa couplings @ElectronYukawa@ of the leptons
* from the Standard Model down-type lepton masses (ignoring threshold
* corrections).
*/
void @ModelName@_standard_model_initial_guesser<Two_scale>::calculate_@ElectronYukawa@_DRbar()
{
Eigen::Matrix<std::complex<double>,3,3> downLeptonsDRbar(ZEROMATRIXCOMPLEX(3,3));
downLeptonsDRbar(0,0) = me_guess;
downLeptonsDRbar(1,1) = mm_guess;
downLeptonsDRbar(2,2) = mtau_guess;
@setDRbarElectronYukawaCouplings@
}
/**
* Guesses the full model parameters. At first it runs the effective SM to the
* guess of the high-scale (SUSYScaleFirstGuess), and matches gauge and Yukawas
* to the full theory. Then, initial guess and constrints are imposed at this scale:
* \code{.cpp}
@initialGuessAtSUSYScale@
* \endcode
* After that, the model is run to the high scale, initial guess and constraints
* are imposed (HighScaleInput):
*
* \code{.cpp}
@initialGuessAtHighScale@
* \endcode
*
* Afterwards, it runs to the SUSY-scale guess (SUSYScaleFirstGuess) and
* solves the EWSB conditions at the tree-level. Finally the DR-bar
* mass spectrum is calculated.
*/
void @ModelName@_standard_model_initial_guesser<Two_scale>::guess_model_parameters()
{
const double susy_scale_guess = susy_constraint.get_initial_scale_guess();
const double high_scale_guess = high_constraint.get_initial_scale_guess();
const auto scale_getter = [this] () { return susy_constraint.get_scale(); };
model->set_scale(susy_scale_guess);
// apply susy-scale first guess
{
@initialGuessAtSUSYScale@
}
*model_0l = *model;
model_0l->set_pole_mass_loop_order(0);
model_0l->set_ewsb_loop_order(0);
eft->run_to(susy_scale_guess, running_precision);
eft->calculate_DRbar_masses();
//get gauge and Yukawa couplings from effective theory
@ModelName@_standard_model_matching_up<Two_scale> matching_up;
matching_up.set_models(eft, model);
matching_up.set_model_0l(model_0l);
matching_up.set_scale(scale_getter);
matching_up.match_tree_level();
model->run_to(susy_scale_guess, running_precision);
// apply susy-scale constraint
susy_constraint.set_model(model);
susy_constraint.apply();
// run to high scale
model->run_to(high_scale_guess, running_precision);
// apply user-defined initial guess at the high scale
{
@initialGuessAtHighScale@
}
// apply high-scale constraint
high_constraint.set_model(model);
high_constraint.apply();
model->run_to(susy_scale_guess, running_precision);
// apply EWSB constraint
model->solve_ewsb_tree_level();
// calculate tree-level spectrum
model->calculate_DRbar_masses();
*model_0l = *model;
model_0l->set_pole_mass_loop_order(0);
model_0l->set_ewsb_loop_order(0);
}
} // namespace flexiblesusy