Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
CP7.cpp
Go to the documentation of this file.
1#include <iostream>
2// HYPERISO_MARTY_GENERIC_TREE_FIRST_SIGNATURE_ABI: v2
3
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
21int calculate_CP7(Model &model, gauge::Type gauge) {
22
23 model.getParticle("W")->setGaugeChoice(gauge);
24 model.getParticle("Z")->setGaugeChoice(gauge);
25
26 undefineNumericalValues(); // Allow for HIso to set all the parameters' values
27 mty::option::excludeExternalLegsCorrections = true;
28
29 Expr factorOperator = -4 * G_F * GetComplexConjugate(V_ts) * V_tb * e_em * m_b / (16 * CSL_PI * CSL_PI * csl::sqrt_s(2));
30 FeynOptions opts;
31 opts.setWilsonOperatorCoefficient(factorOperator);
32
33 auto wil_t = model.computeWilsonCoefficients(mty::Order::OneLoop,
34 {Incoming("b"), Outgoing("s"), Outgoing("A")},
35 opts);
36
37 auto OP7 = chromoMagneticOperator(model, wil_t, DiracCoupling::L);
38 Expr CP7 = getWilsonCoefficient(wil_t, OP7);
39
40 [[maybe_unused]] int sysres = system("rm -rf libs/CP7_SM");
41 mty::Library wilsonLib("CP7_SM", "libs");
42 wilsonLib.cleanExistingSources();
43 wilsonLib.addFunction("CP7", CP7);
44 defineLibPath(wilsonLib);
45 wilsonLib.print();
46
47 return 0;
48}
49
50int main() {
51 SM_Model sm;
52 return calculate_CP7(sm, gauge::Type::Feynman);
53}
int calculate_CP7(Model &model, gauge::Type gauge)
Definition CP7.cpp:21
void defineLibPath(Library &lib)
Definition CP7.cpp:9
int main()
Definition CP7.cpp:50
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
csl::Expr m_b
Definition sm.h:96
Definition sm.h:30
Hash specialization for SymbolId<Tag>.
Definition BlockName.h:353