Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
C6.cpp
Go to the documentation of this file.
1#include <iostream>
2
3// HYPERISO_MARTY_OPERATOR_NORM_ABI: ew-input-normalization-v1
4using namespace csl;
5using namespace mty;
6using namespace std;
7using namespace sm_input;
8
9void defineLibPath(Library &lib) {
10#ifdef MARTY_LIBRARY_PATH
11 lib.addLPath(MARTY_LIBRARY_PATH);
12 lib.addLPath(MARTY_LIBRARY_PATH "/..");
13 lib.addLPath(MARTY_LIBRARY_PATH "/marty");
14 lib.addLPath(MARTY_LIBRARY_PATH "/marty/lha");
15#endif
16#ifdef MARTY_INCLUDE_PATH
17 lib.addIPath(MARTY_INCLUDE_PATH);
18#endif
19}
20
21vector<Wilson> getO6(const Model& model, const WilsonSet& wilsons, const std::string& up_quark) {
22 auto p = wilsons.kinematics.getOrderedMomenta();
23 auto b = model.getParticle("b");
24 auto s = model.getParticle("s");
25 auto q = model.getParticle(up_quark);
26 auto gamma = dirac4.gamma;
27 auto gamma5 = dirac4.gamma_chir;
28 auto i = model.generateIndices(4, "C", s);
29 auto A = model.generateIndex("C", "G");
30 auto al = DiracIndices(9);
31 auto mu = MinkowskiIndices(3);
32 auto T = model.getGenerator("C", "b");
33
34 Expr O6_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]}) * T({A, i[0], i[1]}) * b({i[1], al[3]}, p[0]) *
35 GetComplexConjugate(q({i[2], 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]}) * T({A, i[2], i[3]}) * q({i[3], al[7]}, p[3]);
36 Expr O6_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]}) * T({A, i[0], i[1]}) * b({i[1], al[3]}, p[0]) *
37 GetComplexConjugate(q({i[2], 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]}) * T({A, i[2], i[3]}) * q({i[3], al[7]}, p[3]);
38
39 return {{WilsonCoefficient(CSL_HALF), WilsonOperator(O6_vv)}, {WilsonCoefficient(-CSL_HALF), WilsonOperator(O6_av)}};
40}
41
42int calculate_C6(Model &model, gauge::Type gauge) {
43
44 model.getParticle("W")->setGaugeChoice(gauge);
45 model.getParticle("Z")->setGaugeChoice(gauge);
46
47 undefineNumericalValues(); // Allow for HIso to set all the parameters' values
48 mty::option::excludeExternalLegsCorrections = true;
49
50 Expr factorOperator = -GetComplexConjugate(V_ts) * V_tb * pow_s(e_em, 2)
51 / (2 * pow_s(sin_s(theta_W), 2) * pow_s(M_W, 2));
52 FeynOptions opts;
53 opts.setFermionOrder({1, 0, 2, 3});
54 opts.setWilsonOperatorCoefficient(factorOperator);
55
56 auto wil_u = model.computeWilsonCoefficients(mty::Order::TreeLevel,
57 {Incoming("b"), Outgoing("s"),
58 Outgoing("u"), Outgoing(AntiPart("u"))},
59 opts);
60
61 auto O6_u = getO6(model, wil_u, "u");
62 Expr C6_u = getWilsonCoefficient(wil_u, O6_u);
63
64 auto wil_c = model.computeWilsonCoefficients(mty::Order::TreeLevel,
65 {Incoming("b"), Outgoing("s"),
66 Outgoing("c"), Outgoing(AntiPart("c"))},
67 opts);
68
69 auto O6_c = getO6(model, wil_c, "c");
70 Expr C6_c = getWilsonCoefficient(wil_c, O6_c);
71
72 [[maybe_unused]] int sysres = system("rm -rf libs/C6_SM");
73 mty::Library wilsonLib("C6_SM", "libs");
74 wilsonLib.cleanExistingSources();
75 wilsonLib.addFunction("C6", C6_u + C6_c);
76 defineLibPath(wilsonLib);
77 wilsonLib.print();
78
79 return 0;
80}
81
82int main() {
83 SM_Model sm;
84 return calculate_C6(sm, gauge::Type::Feynman);
85}
vector< Wilson > getO6(const Model &model, const WilsonSet &wilsons, const std::string &up_quark)
Definition C6.cpp:21
int calculate_C6(Model &model, gauge::Type gauge)
Definition C6.cpp:42
void defineLibPath(Library &lib)
Definition C6.cpp:9
int main()
Definition C6.cpp:82
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 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
double T(double x)
Wilson coefficient T(x).