25 string install_prefix() {
26 static string wdir =
"";
30 dladdr((
void*)install_prefix, &dl_info);
31 path = dl_info.dli_fname;
32 wdir = path.substr(0, path.find_last_of(
'/'));
34 wdir = path.substr(0, path.find_last_of(
'/'));
47 GiNaC::registered_class_info Symbol::reg_info =
48 GiNaC::registered_class_info(GiNaC::registered_class_options(
"Symbol",
"symbol",
typeid(Symbol)));
50 GiNaC::registered_class_info iSymbol::reg_info =
51 GiNaC::registered_class_info(GiNaC::registered_class_options(
"iSymbol",
"symbol",
typeid(iSymbol)));
53 GiNaC::registered_class_info XIntegral::reg_info =
54 GiNaC::registered_class_info(GiNaC::registered_class_options(
"XIntegral",
"basic",
typeid(XIntegral)).print_func<print_dflt>(&
XIntegral::print));
56 GiNaC::registered_class_info Index::reg_info =
57 GiNaC::registered_class_info(GiNaC::registered_class_options(
"Index",
"basic",
typeid(Index)).print_func<print_context>(&
Index::print));
59 GiNaC::registered_class_info Vector::reg_info =
60 GiNaC::registered_class_info(GiNaC::registered_class_options(
"Vector",
"basic",
typeid(Vector)).print_func<print_context>(&
Vector::print));
62 GiNaC::registered_class_info SUNT::reg_info =
63 GiNaC::registered_class_info(GiNaC::registered_class_options(
"SUNT",
"basic",
typeid(SUNT)).print_func<print_dflt>(&
SUNT::print).print_func<FormFormat>(&
SUNT::form_print).print_func<FCFormat>(&
SUNT::fc_print));
65 GiNaC::registered_class_info SUNF::reg_info =
66 GiNaC::registered_class_info(GiNaC::registered_class_options(
"SUNF",
"basic",
typeid(SUNF)).print_func<print_dflt>(&
SUNF::print).print_func<FormFormat>(&
SUNF::form_print).print_func<FCFormat>(&
SUNF::fc_print));
68 GiNaC::registered_class_info SUNF4::reg_info =
71 GiNaC::registered_class_info DGamma::reg_info =
74 GiNaC::registered_class_info AsGamma::reg_info =
77 GiNaC::registered_class_info Eps::reg_info =
78 GiNaC::registered_class_info(GiNaC::registered_class_options(
"Eps",
"basic",
typeid(Eps)).print_func<print_dflt>(&
Eps::print).print_func<FormFormat>(&
Eps::form_print).print_func<FCFormat>(&
Eps::fc_print));
80 GiNaC::registered_class_info Pair::reg_info =
81 GiNaC::registered_class_info(GiNaC::registered_class_options(
"Pair",
"basic",
typeid(Pair)).print_func<print_dflt>(&
Pair::print).print_func<FormFormat>(&
Pair::form_print).print_func<FCFormat>(&
Pair::fc_print));
91 unsigned nopat = GiNaC::subs_options::no_pattern;
175 SD::CppFormat::_init::_init() {
176 set_print_func<numeric, CppFormat>(CppFormat::print_numeric);
178 SD::CppFormat::_init SD::CppFormat::CppFormat_init;
180 set_print_func<numeric, ExFormat>(ExFormat::print_numeric);
190 FCFormat::_init::_init() {
193 FCFormat::_init FCFormat::FCFormat_init;
195 FormFormat::_init::_init() {
198 FormFormat::_init FormFormat::FormFormat_init;
218 QGRAF::Process::_init::_init() {
221 auto qbar =
Symbol(
"qbar");
223 auto lbar =
Symbol(
"lbar");
225 auto ghbar =
Symbol(
"ghbar");
228 auto Qbar =
Symbol(
"Qbar");
230 auto Cbar =
Symbol(
"Cbar");
232 auto Bbar =
Symbol(
"Bbar");
234 auto nbar =
Symbol(
"nbar");
238 LineTeX[q] =
"fermion, edge label=$q$";
239 LineTeX[qbar] =
"anti fermion, edge label=$q$";
240 LineTeX[l] =
"fermion, edge label=$l$";
241 LineTeX[lbar] =
"anti fermion, edge label=$l$";
242 LineTeX[gh] =
"ghost, edge label=$\\chi$";
243 LineTeX[ghbar] =
"ghost, edge label=$\\chi$";
244 LineTeX[g] =
"gluon, edge label=$g$";
245 LineTeX[A] =
"photon, edge label=$\\gamma$";
246 LineTeX[G] =
"graviton, edge label=$\\gamma$";
247 LineTeX[Q] =
"fermion, edge label=$Q$";
248 LineTeX[Qbar] =
"anti fermion, edge label=$Q$";
249 LineTeX[C] =
"fermion, edge label=$c$";
250 LineTeX[Cbar] =
"anti fermion, edge label=$c$";
251 LineTeX[B] =
"fermion, edge label=$b$";
252 LineTeX[Bbar] =
"anti fermion, edge label=$b$";
253 LineTeX[n] =
"double distance=1.5pt";
254 LineTeX[nbar] =
"double distance=1.5pt";
255 LineTeX[e] =
"color=white";
257 VerTeX[lst{Qbar, e, nbar}] =
"[crossed dot]";
258 VerTeX[lst{nbar, e, g}] =
"[crossed dot]";
286 Symbol ghWmbar(
"ghWmbar");
288 Symbol ghWpbar(
"ghWpbar");
303 Symbol ntaubar(
"ntaubar");
310 lst fs = { U, D, C, S, T, B, em, mum, taum, ne, nmu, ntau};
311 lst fs2 = {Ubar, Dbar, Cbar, Sbar, Tbar, Bbar,
ep, mup, taup, nebar, nmubar, ntaubar};
312 string fsi[] = {
"$u$",
"$d$",
"$c$",
"$s$",
"$t$",
"$b$",
"$e$",
"$\\mu$",
"$\\tau$",
"$\\nu_e$",
"$\\nu_\\mu$",
"$\\nu_\\tau$" };
313 for(
int i=0; i<fs.nops(); i++) {
315 LineTeX[fs.op(i)] =
"fermion ,edge label="+si;
316 LineTeX[fs2.op(i)] =
"anti fermion ,edge label="+si;
319 LineTeX[Wp] =
"photon, edge label=$W$";
320 LineTeX[Wm] =
"photon, edge label=$W$";
321 LineTeX[Z] =
"photon, edge label=$Z$";
323 LineTeX[H]=
"scalar, edge label=$H$";
324 LineTeX[chi]=
"scalar, edge label=$\\chi$";
325 LineTeX[phim]=
"charged scalar, edge label=$\\phi$";
326 LineTeX[phip]=
"anti charged scalar, edge label=$\\phi$";
328 lst ghs = {gh, ghA, ghWm, ghWp, ghZ};
329 lst ghs2 = {ghbar, ghAbar, ghWmbar, ghWpbar, ghZbar};
330 string ghsi[] = {
"$c$",
"$c_\\gamma$",
"$c_-$",
"$c_+$",
"$c_Z$"};
332 for(
int i=0; i<ghs.nops(); i++) {
334 LineTeX[ghs.op(i)] =
"ghost ,edge label="+si;
335 LineTeX[ghs2.op(i)] =
"anti ghost ,edge label="+si;
339 QGRAF::Process::_init QGRAF::Process::Process_init;
349 int QCD::FF::cur_mode = 0;
355 int DEX::Threads = 0;
365 _global_init::_init::_init() {
370 auto opath = getenv(
"PATH");
371 if(opath != NULL) oss <<
":" << opath;
372 setenv(
"PATH", oss.str().c_str(),
true);
375 GiNaC::unarchive_table_t table;
376 table.insert(std::string(
"Symbol"), []()->GiNaC::basic*{
return new Symbol(); });
377 table.insert(std::string(
"iSymbol"), []()->GiNaC::basic*{
return new iSymbol(); });
378 table.insert(std::string(
"XIntegral"), []()->GiNaC::basic*{
return new XIntegral(); });
379 table.insert(std::string(
"Index"), []()->GiNaC::basic*{
return new Index(); });
380 table.insert(std::string(
"Vector"), []()->GiNaC::basic*{
return new Vector(); });
381 table.insert(std::string(
"SUNT"), []()->GiNaC::basic*{
return new SUNT(); });
382 table.insert(std::string(
"SUNF"), []()->GiNaC::basic*{
return new SUNF(); });
383 table.insert(std::string(
"SUNF4"), []()->GiNaC::basic*{
return new SUNF4(); });
384 table.insert(std::string(
"DGamma"), []()->GiNaC::basic*{
return new DGamma(); });
385 table.insert(std::string(
"AsGamma"), []()->GiNaC::basic*{
return new AsGamma(); });
386 table.insert(std::string(
"Eps"), []()->GiNaC::basic*{
return new Eps(); });
387 table.insert(std::string(
"Pair"), []()->GiNaC::basic*{
return new Pair(); });
390 cln::cl_inhibit_floating_point_underflow =
true;
394 _global_init::_init _global_init::init_object;
402((<sign><symmetry_factor>)*
403<in_loop>InField(<field>,<field_index>,<momentum>)*
405<back><out_loop>OutField(<field>,<field_index>,<momentum>)*
407<back><propagator_loop>Propagator(
408<back>Field(<field>,<field_index>),
409<back>Field(<dual-field>,<dual-field_index>),
412<back><vertex_loop>Vertex(
413<back><ray_loop>Field(<field>,<field_index>,<momentum>),
424[ model = 'Gluon FF Model' ]
431[qbar, q, g; QCD='+1']
432[Qbar, Q, g; QCD='+1']
433[g, g, g, g; QCD='+2']
435[ghbar, gh, g; QCD='+1']
436[nbar, n, g; QCD='+1']
437[nbar, e, g; QCD='+0']
442[ model = 'Quark FF Model' ]
445[e, ebar, -, external]
449[qbar, q, g; QCD='+1']
450[Qbar, Q, g; QCD='+1']
451[g, g, g, g; QCD='+2']
453[ghbar, gh, g; QCD='+1']
454[nbar, n, g; QCD='+1']
455[qbar, e, nbar; QCD='0']
456[ebar, q, nbar; QCD='0']
457[Qbar, e, nbar; QCD='0']
458[ebar, Q, nbar; QCD='0']
462% From Boehm, Denner, Joos @ Feynman Gauge
463[ model = 'Standard Model' ]
465%------------------------------------
467%------------------------------------
477% gluon and its ghost:
481% V: EWSM gauge bosons
494% G: Faddeev-Popov Ghosts
505%------------------------------------
507%------------------------------------
510[Ubar, U, g; QCD='+1', QED='0']
511[Dbar, D, g; QCD='+1', QED='0']
512[Sbar, S, g; QCD='+1', QED='0']
513[Cbar, C, g; QCD='+1', QED='0']
514[Bbar, B, g; QCD='+1', QED='0']
515[Tbar, T, g; QCD='+1', QED='0']
517[g, g, g, g; QCD='+2', QED='0']
518[g, g, g; QCD='+1', QED='0']
519[ghbar, gh, g; QCD='+1', QED='0']
522[Wp, Wm, Z, Z; QCD='0', QED='+2']
523[Wp, Wm, A, Z; QCD='0', QED='+2']
524[Wp, Wm, A, A; QCD='0', QED='+2']
525[Wp, Wp, Wm, Wm; QCD='0', QED='+2']
528[Wp, Wm, A; QCD='0', QED='+1']
529[Wp, Wm, Z; QCD='0', QED='+1']
532[H, H, H, H; QCD='0', QED='+2']
533[chi, chi, chi, chi; QCD='0', QED='+2']
534[H, H, chi, chi; QCD='0', QED='+2']
535[H, H, phim, phip; QCD='0', QED='+2']
536[chi, chi, phim, phip; QCD='0', QED='+2']
537[phim, phip, phim, phip; QCD='0', QED='+2']
540[H, H, H; QCD='0', QED='+1']
541[H, chi, chi; QCD='0', QED='+1']
542[H, phim, phip; QCD='0', QED='+1']
545[Z, Z, H, H; QCD='0', QED='+2']
546[Z, Z, chi, chi; QCD='0', QED='+2']
547[Wp, Wm, H, H; QCD='0', QED='+2']
548[Wp, Wm, chi, chi; QCD='0', QED='+2']
549[Wp, Wm, phip, phim; QCD='0', QED='+2']
551[A, A, phip, phim; QCD='0', QED='+2']
552[Z, A, phip, phim; QCD='0', QED='+2']
553[Z, Z, phip, phim; QCD='0', QED='+2']
555[Wp, A, phim, H; QCD='0', QED='+2']
556[Wm, A, phip, H; QCD='0', QED='+2']
557[Wp, A, phim, chi; QCD='0', QED='+2']
558[Wm, A, phip, chi; QCD='0', QED='+2']
559[Wp, Z, phim, H; QCD='0', QED='+2']
560[Wm, Z, phip, H; QCD='0', QED='+2']
561[Wp, Z, phim, chi; QCD='0', QED='+2']
562[Wm, Z, phip, chi; QCD='0', QED='+2']
565[Z, chi, H; QCD='0', QED='+1']
566[A, phip, phim; QCD='0', QED='+1']
567[Z, phip, phim; QCD='0', QED='+1']
568[Wp, phim, H; QCD='0', QED='+1']
569[Wm, phip, H; QCD='0', QED='+1']
570[Wp, phim, chi; QCD='0', QED='+1']
571[Wm, phip, chi; QCD='0', QED='+1']
574[H, Z, Z; QCD='0', QED='+1']
575[H, Wp, Wm; QCD='0', QED='+1']
576[phip, Wm, A; QCD='0', QED='+1']
577[phim, Wp, A; QCD='0', QED='+1']
578[phip, Wm, Z; QCD='0', QED='+1']
579[phim, Wp, Z; QCD='0', QED='+1']
582[Ubar, U, A; QCD='0', QED='+1']
583[Dbar, D, A; QCD='0', QED='+1']
584[Sbar, S, A; QCD='0', QED='+1']
585[Cbar, C, A; QCD='0', QED='+1']
586[Bbar, B, A; QCD='0', QED='+1']
587[Tbar, T, A; QCD='0', QED='+1']
589[ep, em, A; QCD='0', QED='+1']
590[mup, mum, A; QCD='0', QED='+1']
591[taup, taum, A; QCD='0', QED='+1']
593[Ubar, U, Z; QCD='0', QED='+1']
594[Dbar, D, Z; QCD='0', QED='+1']
595[Sbar, S, Z; QCD='0', QED='+1']
596[Cbar, C, Z; QCD='0', QED='+1']
597[Bbar, B, Z; QCD='0', QED='+1']
598[Tbar, T, Z; QCD='0', QED='+1']
600[ep, em, Z; QCD='0', QED='+1']
601[mup, mum, Z; QCD='0', QED='+1']
602[taup, taum, Z; QCD='0', QED='+1']
604[nebar, ne, Z; QCD='0', QED='+1']
605[nmubar, nmu, Z; QCD='0', QED='+1']
606[ntaubar, ntau, Z; QCD='0', QED='+1']
608[Dbar, U, Wm; QCD='0', QED='+1']
609[Dbar, C, Wm; QCD='0', QED='+1']
610[Dbar, T, Wm; QCD='0', QED='+1']
612[Sbar, U, Wm; QCD='0', QED='+1']
613[Sbar, C, Wm; QCD='0', QED='+1']
614[Sbar, T, Wm; QCD='0', QED='+1']
616[Bbar, U, Wm; QCD='0', QED='+1']
617[Bbar, C, Wm; QCD='0', QED='+1']
618[Bbar, T, Wm; QCD='0', QED='+1']
620[Ubar, D, Wp; QCD='0', QED='+1']
621[Ubar, S, Wp; QCD='0', QED='+1']
622[Ubar, B, Wp; QCD='0', QED='+1']
624[Cbar, D, Wp; QCD='0', QED='+1']
625[Cbar, S, Wp; QCD='0', QED='+1']
626[Cbar, B, Wp; QCD='0', QED='+1']
628[Tbar, D, Wp; QCD='0', QED='+1']
629[Tbar, S, Wp; QCD='0', QED='+1']
630[Tbar, B, Wp; QCD='0', QED='+1']
632[ep, ne, Wm; QCD='0', QED='+1']
633[mup, nmu, Wm; QCD='0', QED='+1']
634[taup, ntau, Wm; QCD='0', QED='+1']
636[nebar, em, Wp; QCD='0', QED='+1']
637[nmubar, mum, Wp; QCD='0', QED='+1']
638[ntaubar, taum, Wp; QCD='0', QED='+1']
641[Ubar, U, H; QCD='0', QED='+1']
642[Dbar, D, H; QCD='0', QED='+1']
643[Sbar, S, H; QCD='0', QED='+1']
644[Cbar, C, H; QCD='0', QED='+1']
645[Bbar, B, H; QCD='0', QED='+1']
646[Tbar, T, H; QCD='0', QED='+1']
648[ep, em, H; QCD='0', QED='+1']
649[mup, mum, H; QCD='0', QED='+1']
650[taup, taum, H; QCD='0', QED='+1']
652[Ubar, U, chi; QCD='0', QED='+1']
653[Dbar, D, chi; QCD='0', QED='+1']
654[Sbar, S, chi; QCD='0', QED='+1']
655[Cbar, C, chi; QCD='0', QED='+1']
656[Bbar, B, chi; QCD='0', QED='+1']
657[Tbar, T, chi; QCD='0', QED='+1']
659[ep, em, chi; QCD='0', QED='+1']
660[mup, mum, chi; QCD='0', QED='+1']
661[taup, taum, chi; QCD='0', QED='+1']
663[Dbar, U, phim; QCD='0', QED='+1']
664[Dbar, C, phim; QCD='0', QED='+1']
665[Dbar, T, phim; QCD='0', QED='+1']
667[Sbar, U, phim; QCD='0', QED='+1']
668[Sbar, C, phim; QCD='0', QED='+1']
669[Sbar, T, phim; QCD='0', QED='+1']
671[Bbar, U, phim; QCD='0', QED='+1']
672[Bbar, C, phim; QCD='0', QED='+1']
673[Bbar, T, phim; QCD='0', QED='+1']
675[Ubar, D, phip; QCD='0', QED='+1']
676[Ubar, S, phip; QCD='0', QED='+1']
677[Ubar, B, phip; QCD='0', QED='+1']
679[Cbar, D, phip; QCD='0', QED='+1']
680[Cbar, S, phip; QCD='0', QED='+1']
681[Cbar, B, phip; QCD='0', QED='+1']
683[Tbar, D, phip; QCD='0', QED='+1']
684[Tbar, S, phip; QCD='0', QED='+1']
685[Tbar, B, phip; QCD='0', QED='+1']
687[ep, ne, phim; QCD='0', QED='+1']
688[mup, nmu, phim; QCD='0', QED='+1']
689[taup, ntau, phim; QCD='0', QED='+1']
691[nebar, em, phip; QCD='0', QED='+1']
692[nmubar, mum, phip; QCD='0', QED='+1']
693[ntaubar, taum, phip; QCD='0', QED='+1']
696[ghWpbar, ghWp, A; QCD='0', QED='+1']
697[ghWmbar, ghWm, A; QCD='0', QED='+1']
698[ghAbar, ghWm, Wp; QCD='0', QED='+1']
699[ghAbar, ghWp, Wm; QCD='0', QED='+1']
700[ghWmbar, ghA, Wm; QCD='0', QED='+1']
701[ghWpbar, ghA, Wp; QCD='0', QED='+1']
702[ghWpbar, ghWp, Z; QCD='0', QED='+1']
703[ghWmbar, ghWm, Z; QCD='0', QED='+1']
704[ghZbar, ghWm, Wp; QCD='0', QED='+1']
705[ghZbar, ghWp, Wm; QCD='0', QED='+1']
706[ghWmbar, ghZ, Wm; QCD='0', QED='+1']
707[ghWpbar, ghZ, Wp; QCD='0', QED='+1']
710[ghZbar, ghZ, H; QCD='0', QED='+1']
711[ghWpbar, ghWp, H; QCD='0', QED='+1']
712[ghWmbar, ghWm, H; QCD='0', QED='+1']
713[ghWpbar, ghWp, chi; QCD='0', QED='+1']
714[ghWmbar, ghWm, chi; QCD='0', QED='+1']
715[ghWpbar, ghA, phip; QCD='0', QED='+1']
716[ghWmbar, ghA, phim; QCD='0', QED='+1']
717[ghWpbar, ghZ, phip; QCD='0', QED='+1']
718[ghWmbar, ghZ, phim; QCD='0', QED='+1']
719[ghZbar, ghWp, phim; QCD='0', QED='+1']
720[ghZbar, ghWm, phip; QCD='0', QED='+1']
725[ model = 'qcd Model' ]
726%------------------------------------
728%------------------------------------
732% gluon and its ghost:
737%------------------------------------
739%------------------------------------
741[qbar, q, g; QCD='+1']
742[Qbar, Q, g; QCD='+1']
743[g, g, g, g; QCD='+2']
745[ghbar, gh, g; QCD='+1']
747[qbar, q, A; QCD='+0']
748[Qbar, Q, A; QCD='+0']
class for AntiSymmetric Gamma object
void form_print(const FormFormat &c, unsigned level=0) const
void fc_print(const FCFormat &c, unsigned level=0) const
void print(const print_dflt &c, unsigned level=0) const
class for Dirac Gamma object
void form_print(const FormFormat &c, unsigned level=0) const
void print(const print_dflt &c, unsigned level=0) const
void fc_print(const FCFormat &c, unsigned level=0) const
class for Levi-Civita object https://onlinelibrary.wiley.com/doi/pdf/10.1002/9783527630097....
void fc_print(const FCFormat &c, unsigned level=0) const
void form_print(const FormFormat &c, unsigned level=0) const
Eps in FORM format https://onlinelibrary.wiley.com/doi/pdf/10.1002/9783527630097.app3 to make Tr(g5,...
void print(const print_dflt &c, unsigned level=0) const
void print(const print_context &c, unsigned level=0) const
static GiNaC::exmap Dimension
void form_print(const FormFormat &c, unsigned level=0) const
FormFormat print function.
void print(const print_dflt &c, unsigned level=0) const
default print function
void fc_print(const FCFormat &c, unsigned level=0) const
FCFormat print function.
void form_print(const FormFormat &c, unsigned level=0) const
print the Form Format
void fc_print(const FCFormat &c, unsigned level=0) const
void print(const print_dflt &c, unsigned level=0) const
normal priint
void print(const print_dflt &c, unsigned level=0) const
void form_print(const FormFormat &c, unsigned level=0) const
void fc_print(const FCFormat &c, unsigned level=0) const
void form_print(const FormFormat &c, unsigned level=0) const
void fc_print(const FCFormat &c, unsigned level=0) const
void print(const print_dflt &c, unsigned level=0) const
class extended to GiNaC symbol class, represent a positive symbol
static std::map< std::string, ex > Table
void print(const print_context &c, unsigned level=0) const
XIntegral Class, preface to SecDec.
void print(const print_dflt &c, unsigned level=0) const
class extended to GiNaC symbol class, pure imaginary symbol
static std::map< std::string, ex > Table
map< ex, string, ex_is_less > LineTeX
map< ex, string, ex_is_less > VerTeX
map< ex, string, ex_is_less > InOutTeX
int GiNaC_Parallel_Process
const int form_expand_none
map< string, bool > GiNaC_Parallel_RM
map< ex, long long, ex_is_less > fermat_weight
map< string, int > GiNaC_Parallel_NB
ex GAS(const ex &expr, unsigned rl)
function similar to GAD/GSD in FeynClac
const int form_trace_each_all
map< string, int > GiNaC_Parallel_NP
const int form_expand_all
map< string, int > GiNaC_Parallel_Verb
map< string, bool > GiNaC_Parallel_ReWR
const int o_normal_fermat
const int form_trace_each_each
const int form_trace_auto
bool dir_exists(string dir)
void set_precision(long prec, bool push)
map< string, string > GiNaC_Parallel_PRE
std::stack< cln::float_format_t > cln_prec_stack
std::stack< long > digits_stack