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");
18#ifdef MARTY_INCLUDE_PATH
19 lib.addIPath(MARTY_INCLUDE_PATH);
39 model.getParticle(
"W")->setGaugeChoice(gauge);
40 model.getParticle(
"Z")->setGaugeChoice(gauge);
49 mty::option::excludeExternalLegsCorrections =
false;
54 opts.setFermionOrder({1, 0, 2, 3});
55 opts.setWilsonOperatorCoefficient(factorOperator);
59 auto extract_C10 = [&](
const WilsonSet& wil) {
60 return getWilsonCoefficient(
71 auto wil_tree = model.computeWilsonCoefficients(
72 mty::Order::TreeLevel,
76 Expr C10_tree = extract_C10(wil_tree);
82 Expr C10_full = CSL_0;
83 if (C10_tree == CSL_0) {
84 auto wil_full = model.computeWilsonCoefficients(
89 C10_full = extract_C10(wil_full);
92 Expr C10_mu = (C10_tree != CSL_0) ? C10_tree : C10_full;
93 std::cout <<
"[MARTY C10] selected order="
94 << ((C10_tree != CSL_0) ?
"TreeLevel" :
"OneLoop")
97 [[maybe_unused]]
int sysres = system(
"rm -rf libs/C10_SM");
99 mty::Library wilsonLib(
"C10_SM",
"libs");
100 wilsonLib.cleanExistingSources();
101 wilsonLib.addFunction(
"C10", C10_mu);
102 wilsonLib.addFunction(
"C10_tree", C10_tree);
103 wilsonLib.addFunction(
"C10_full", C10_full);
104 wilsonLib.addFunction(
"C10_oneloop_full", C10_full);