Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
CT_CU_1.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_CT_CU_1(Model &model, gauge::Type gauge) {
22 model.getParticle("W")->setGaugeChoice(gauge);
23 model.getParticle("Z")->setGaugeChoice(gauge);
24
25 undefineNumericalValues(); // Allow for HIso to set all the parameters' values
26 mty::option::excludeExternalLegsCorrections = true;
27
28 Expr factorOperator = 1;
29 FeynOptions opts;
30 opts.setWilsonOperatorCoefficient(factorOperator);
31 opts.setFermionOrder({1, 0, 3, 2});
32 opts.addFilter([&](mty::FeynmanDiagram const &diag) { return !diag.contains("G", mty::FeynmanDiagram::DiagramParticleType::Loop);});
33
34 auto wil_t = model.computeWilsonCoefficients(mty::Order::OneLoop,
35 {Incoming("c"), Incoming(AntiPart("u")), Outgoing(AntiPart("c")), Outgoing("u")},
36 opts);
37
38 auto O = dimension6Operator(model, wil_t, mty::DiracCoupling::VR, mty::DiracCoupling::VR);
39 Expr C = getWilsonCoefficient(wil_t, O);
40
41 [[maybe_unused]] int sysres = system("rm -rf libs/CT_CU_1_SM");
42 mty::Library wilsonLib("CT_CU_1_SM", "libs");
43 wilsonLib.cleanExistingSources();
44 wilsonLib.addFunction("CT_CU_1", C);
45 defineLibPath(wilsonLib);
46 wilsonLib.print();
47
48 return 0;
49}
50
51int main() {
52 SM_Model sm;
53 return calculate_CT_CU_1(sm, gauge::Type::Feynman);
54}
void defineLibPath(Library &lib)
Definition CT_CU_1.cpp:9
int calculate_CT_CU_1(Model &model, gauge::Type gauge)
Definition CT_CU_1.cpp:21
int main()
Definition CT_CU_1.cpp:51
Model
RealMatrix diag(const gsl_vector *X)
Builds a diagonal matrix from a GSL vector.
Definition Matrix.cpp:464
Standard Model of particle physics.
Definition sm.h:35
void undefineNumericalValues()
Definition sm.h:30
Hash specialization for SymbolId<Tag>.
Definition BlockName.h:353