Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
CQ2.cpp
Go to the documentation of this file.
1#include <iostream>
2// HYPERISO_MARTY_TEMPLATE_ABI: scalar-bqll-finite-scheme-v12
3// HYPERISO_MARTY_GENERIC_TREE_FIRST_SIGNATURE_ABI: v2
4
5using namespace csl;
6using namespace mty;
7using namespace std;
8using namespace sm_input;
9
10void defineLibPath(Library &lib) {
11#ifdef MARTY_LIBRARY_PATH
12 lib.addLPath(MARTY_LIBRARY_PATH);
13 lib.addLPath(MARTY_LIBRARY_PATH "/..");
14 lib.addLPath(MARTY_LIBRARY_PATH "/marty");
15 lib.addLPath(MARTY_LIBRARY_PATH "/marty/lha");
16#endif
17#ifdef MARTY_INCLUDE_PATH
18 lib.addIPath(MARTY_INCLUDE_PATH);
19#endif
20}
21
22int calculate_CQ2mu(Model &model, gauge::Type gauge) {
23
24 model.getParticle("W")->setGaugeChoice(gauge);
25 model.getParticle("Z")->setGaugeChoice(gauge);
26
27 undefineNumericalValues(); // Allow for HIso to set all the parameters' values
28 mty::option::excludeExternalLegsCorrections = false;
29
30 Expr factorOperator = -4 * GetComplexConjugate(V_ts) * V_tb * G_F * pow_s(e_em / (4 * CSL_PI), 2) / csl::sqrt_s(2);
31 FeynOptions opts;
32 opts.setFermionOrder({1, 0, 2, 3});
33 opts.setWilsonOperatorCoefficient(factorOperator);
34
35 auto wil = model.computeWilsonCoefficients(mty::Order::OneLoop,
36 {Incoming("b"), Outgoing("s"),
37 Outgoing("mu"), Outgoing(AntiPart("mu"))},
38 opts);
39
40 auto Q2 = dimension6Operator(model, wil, DiracCoupling::R, DiracCoupling::P, {1, 0, 2, 3});
41 Expr CQ2_mu = getWilsonCoefficient(wil, Q2);
42
43 [[maybe_unused]] int sysres = system("rm -rf libs/CQ2_SM");
44 mty::Library wilsonLib("CQ2_SM", "libs");
45 wilsonLib.cleanExistingSources();
46 wilsonLib.addFunction("CQ2", CQ2_mu);
47 defineLibPath(wilsonLib);
48 wilsonLib.print();
49
50 return 0;
51}
52
53int main() {
54 SM_Model sm;
55 return calculate_CQ2mu(sm, gauge::Type::Feynman);
56}
int calculate_CQ2mu(Model &model, gauge::Type gauge)
Definition CQ2.cpp:22
void defineLibPath(Library &lib)
Definition CQ2.cpp:10
int main()
Definition CQ2.cpp:53
Model
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
void undefineNumericalValues()
csl::Expr V_tb
Definition sm.h:244
csl::Expr V_ts
Definition sm.h:306
Definition sm.h:30
Hash specialization for SymbolId<Tag>.
Definition BlockName.h:353