Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
CP5.cpp
Go to the documentation of this file.
1#include <iostream>
2
3using namespace csl;
4using namespace mty;
5using namespace std;
6using namespace sm_input;
7
8void defineLibPath(Library &lib) {
9#ifdef MARTY_LIBRARY_PATH
10 lib.addLPath(MARTY_LIBRARY_PATH);
11 lib.addLPath(MARTY_LIBRARY_PATH "/..");
12 lib.addLPath(MARTY_LIBRARY_PATH "/marty");
13 lib.addLPath(MARTY_LIBRARY_PATH "/marty/lha");
14#endif
15#ifdef MARTY_INCLUDE_PATH
16 lib.addIPath(MARTY_INCLUDE_PATH);
17#endif
18}
19
20vector<Wilson> getO5(const Model& model, const WilsonSet& wilsons, const std::string& up_quark) {
21 auto p = wilsons.kinematics.getOrderedMomenta();
22 auto b = model.getParticle("b");
23 auto s = model.getParticle("s");
24 auto q = model.getParticle(up_quark);
25 auto gamma = dirac4.gamma;
26 auto gamma5 = dirac4.gamma_chir;
27 auto i = model.generateIndices(2, "C", s);
28 auto al = DiracIndices(9);
29 auto mu = MinkowskiIndices(3);
30
31 Expr O5_vv = GetComplexConjugate(s({i[0], al[0]}, p[1])) * gamma({+mu[0], al[0], al[1]}) * gamma({+mu[1], al[1], al[2]}) * gamma({+mu[2], al[2], al[3]}) * b({i[0], al[3]}, p[0]) *
32 GetComplexConjugate(q({i[1], al[4]}, p[2])) * gamma({mu[0], al[4], al[5]}) * gamma({mu[1], al[5], al[6]}) * gamma({mu[2], al[6], al[7]}) * q({i[1], al[7]}, p[3]);
33 Expr O5_av = GetComplexConjugate(s({i[0], al[0]}, p[1])) * gamma({+mu[0], al[0], al[1]}) * gamma({+mu[1], al[1], al[2]}) * gamma({+mu[2], al[2], al[3]}) * gamma5({al[3], al[8]}) * b({i[0], al[8]}, p[0]) *
34 GetComplexConjugate(q({i[1], al[4]}, p[2])) * gamma({mu[0], al[4], al[5]}) * gamma({mu[1], al[5], al[6]}) * gamma({mu[2], al[6], al[7]}) * q({i[1], al[7]}, p[3]);
35
36 return {{WilsonCoefficient(CSL_HALF), WilsonOperator(O5_vv)}, {WilsonCoefficient(CSL_HALF), WilsonOperator(O5_av)}};
37}
38
39int calculate_C5(Model &model, gauge::Type gauge) {
40
41 model.getParticle("W")->setGaugeChoice(gauge);
42 model.getParticle("Z")->setGaugeChoice(gauge);
43
44 undefineNumericalValues(); // Allow for HIso to set all the parameters' values
45 mty::option::excludeExternalLegsCorrections = true;
46
47 Expr factorOperator = -4 * GetComplexConjugate(V_ts) * V_tb * G_F / csl::sqrt_s(2);
48 FeynOptions opts;
49 opts.setFermionOrder({1, 0, 2, 3});
50 opts.setWilsonOperatorCoefficient(factorOperator);
51
52 auto wil_u = model.computeWilsonCoefficients(mty::Order::TreeLevel,
53 {Incoming("b"), Outgoing("s"),
54 Outgoing("u"), Outgoing(AntiPart("u"))},
55 opts);
56
57 auto O5_u = getO5(model, wil_u, "u");
58 Expr C5_u = getWilsonCoefficient(wil_u, O5_u);
59 Replace(C5_u, e_em, sqrt_s(8 * G_F / sqrt_s(2)) * M_W * sin_s(theta_W));
60
61 auto wil_c = model.computeWilsonCoefficients(mty::Order::TreeLevel,
62 {Incoming("b"), Outgoing("s"),
63 Outgoing("c"), Outgoing(AntiPart("c"))},
64 opts);
65
66 auto O5_c = getO5(model, wil_c, "c");
67 Expr C5_c = getWilsonCoefficient(wil_c, O5_c);
68 Replace(C5_c, e_em, sqrt_s(8 * G_F / sqrt_s(2)) * M_W * sin_s(theta_W));
69
70 [[maybe_unused]] int sysres = system("rm -rf libs/CP5_SM");
71 mty::Library wilsonLib("CP5_SM", "libs");
72 wilsonLib.cleanExistingSources();
73 wilsonLib.addFunction("CP5", C5_u + C5_c);
74 defineLibPath(wilsonLib);
75 wilsonLib.print();
76
77 return 0;
78}
79
80int main() {
81 SM_Model sm;
82 return calculate_C5(sm, gauge::Type::Feynman);
83}
int calculate_C5(Model &model, gauge::Type gauge)
Definition CP5.cpp:39
vector< Wilson > getO5(const Model &model, const WilsonSet &wilsons, const std::string &up_quark)
Definition CP5.cpp:20
void defineLibPath(Library &lib)
Definition CP5.cpp:8
int main()
Definition CP5.cpp:80
Model
Abstract base class representing a Wilson coefficient and its matching information.
Definition Wilson.h:153
Standard Model of particle physics.
Definition sm.h:35
csl::Expr e_em
Definition sm.h:78
csl::Expr G_F
Definition sm.h:84
csl::Expr theta_W
Definition sm.h:136
void undefineNumericalValues()
csl::Expr V_tb
Definition sm.h:244
csl::Expr V_ts
Definition sm.h:306
csl::Expr M_W
Definition sm.h:106
Definition sm.h:30
Hash specialization for SymbolId<Tag>.
Definition BlockName.h:353