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