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;
178 SD::CppFormat::_init::_init() {
179 set_print_func<numeric, CppFormat>(CppFormat::print_numeric);
181 SD::CppFormat::_init SD::CppFormat::CppFormat_init;
183 set_print_func<numeric, ExFormat>(ExFormat::print_numeric);
193 FCFormat::_init::_init() {
196 FCFormat::_init FCFormat::FCFormat_init;
198 FormFormat::_init::_init() {
201 FormFormat::_init FormFormat::FormFormat_init;
221 QGRAF::Process::_init::_init() {
224 auto qbar =
Symbol(
"qbar");
226 auto lbar =
Symbol(
"lbar");
228 auto ghbar =
Symbol(
"ghbar");
231 auto Qbar =
Symbol(
"Qbar");
233 auto Cbar =
Symbol(
"Cbar");
235 auto Bbar =
Symbol(
"Bbar");
237 auto nbar =
Symbol(
"nbar");
241 LineTeX[q] =
"fermion, edge label=$q$";
242 LineTeX[qbar] =
"anti fermion, edge label=$q$";
243 LineTeX[l] =
"fermion, edge label=$l$";
244 LineTeX[lbar] =
"anti fermion, edge label=$l$";
245 LineTeX[gh] =
"ghost, edge label=$\\chi$";
246 LineTeX[ghbar] =
"ghost, edge label=$\\chi$";
247 LineTeX[g] =
"gluon, edge label=$g$";
248 LineTeX[A] =
"photon, edge label=$\\gamma$";
249 LineTeX[G] =
"graviton, edge label=$\\gamma$";
250 LineTeX[Q] =
"fermion, edge label=$Q$";
251 LineTeX[Qbar] =
"anti fermion, edge label=$Q$";
252 LineTeX[C] =
"fermion, edge label=$c$";
253 LineTeX[Cbar] =
"anti fermion, edge label=$c$";
254 LineTeX[B] =
"fermion, edge label=$b$";
255 LineTeX[Bbar] =
"anti fermion, edge label=$b$";
256 LineTeX[n] =
"double distance=1.5pt";
257 LineTeX[nbar] =
"double distance=1.5pt";
258 LineTeX[e] =
"color=white";
260 VerTeX[lst{Qbar, e, nbar}] =
"[crossed dot]";
261 VerTeX[lst{nbar, e, g}] =
"[crossed dot]";
289 Symbol ghWmbar(
"ghWmbar");
291 Symbol ghWpbar(
"ghWpbar");
306 Symbol ntaubar(
"ntaubar");
313 lst fs = { U, D, C, S, T, B, em, mum, taum, ne, nmu, ntau};
314 lst fs2 = {Ubar, Dbar, Cbar, Sbar, Tbar, Bbar,
ep, mup, taup, nebar, nmubar, ntaubar};
315 string fsi[] = {
"$u$",
"$d$",
"$c$",
"$s$",
"$t$",
"$b$",
"$e$",
"$\\mu$",
"$\\tau$",
"$\\nu_e$",
"$\\nu_\\mu$",
"$\\nu_\\tau$" };
316 for(
int i=0; i<fs.nops(); i++) {
318 LineTeX[fs.op(i)] =
"fermion ,edge label="+si;
319 LineTeX[fs2.op(i)] =
"anti fermion ,edge label="+si;
322 LineTeX[Wp] =
"photon, edge label=$W$";
323 LineTeX[Wm] =
"photon, edge label=$W$";
324 LineTeX[Z] =
"photon, edge label=$Z$";
326 LineTeX[H]=
"scalar, edge label=$H$";
327 LineTeX[chi]=
"scalar, edge label=$\\chi$";
328 LineTeX[phim]=
"charged scalar, edge label=$\\phi$";
329 LineTeX[phip]=
"anti charged scalar, edge label=$\\phi$";
331 lst ghs = {gh, ghA, ghWm, ghWp, ghZ};
332 lst ghs2 = {ghbar, ghAbar, ghWmbar, ghWpbar, ghZbar};
333 string ghsi[] = {
"$c$",
"$c_\\gamma$",
"$c_-$",
"$c_+$",
"$c_Z$"};
335 for(
int i=0; i<ghs.nops(); i++) {
337 LineTeX[ghs.op(i)] =
"ghost ,edge label="+si;
338 LineTeX[ghs2.op(i)] =
"anti ghost ,edge label="+si;
342 QGRAF::Process::_init QGRAF::Process::Process_init;
352 int QCD::FF::cur_mode = 0;
358 int DEX::Threads = 0;
368 _global_init::_init::_init() {
373 auto opath = getenv(
"PATH");
374 if(opath != NULL) oss <<
":" << opath;
375 setenv(
"PATH", oss.str().c_str(),
true);
378 GiNaC::unarchive_table_t table;
379 table.insert(std::string(
"Symbol"), []()->GiNaC::basic*{
return new Symbol(); });
380 table.insert(std::string(
"iSymbol"), []()->GiNaC::basic*{
return new iSymbol(); });
381 table.insert(std::string(
"XIntegral"), []()->GiNaC::basic*{
return new XIntegral(); });
382 table.insert(std::string(
"Index"), []()->GiNaC::basic*{
return new Index(); });
383 table.insert(std::string(
"Vector"), []()->GiNaC::basic*{
return new Vector(); });
384 table.insert(std::string(
"SUNT"), []()->GiNaC::basic*{
return new SUNT(); });
385 table.insert(std::string(
"SUNF"), []()->GiNaC::basic*{
return new SUNF(); });
386 table.insert(std::string(
"SUNF4"), []()->GiNaC::basic*{
return new SUNF4(); });
387 table.insert(std::string(
"DGamma"), []()->GiNaC::basic*{
return new DGamma(); });
388 table.insert(std::string(
"AsGamma"), []()->GiNaC::basic*{
return new AsGamma(); });
389 table.insert(std::string(
"Eps"), []()->GiNaC::basic*{
return new Eps(); });
390 table.insert(std::string(
"Pair"), []()->GiNaC::basic*{
return new Pair(); });
393 cln::cl_inhibit_floating_point_underflow =
true;
397 _global_init::_init _global_init::init_object;
405((<sign><symmetry_factor>)*
406<in_loop>InField(<field>,<field_index>,<momentum>)*
408<back><out_loop>OutField(<field>,<field_index>,<momentum>)*
410<back><propagator_loop>Propagator(
411<back>Field(<field>,<field_index>),
412<back>Field(<dual-field>,<dual-field_index>),
415<back><vertex_loop>Vertex(
416<back><ray_loop>Field(<field>,<field_index>,<momentum>),
427[ model = 'Gluon FF Model' ]
434[qbar, q, g; QCD='+1']
435[Qbar, Q, g; QCD='+1']
436[g, g, g, g; QCD='+2']
438[ghbar, gh, g; QCD='+1']
439[nbar, n, g; QCD='+1']
440[nbar, e, g; QCD='+0']
445[ model = 'Quark FF Model' ]
448[e, ebar, -, external]
452[qbar, q, g; QCD='+1']
453[Qbar, Q, g; QCD='+1']
454[g, g, g, g; QCD='+2']
456[ghbar, gh, g; QCD='+1']
457[nbar, n, g; QCD='+1']
458[qbar, e, nbar; QCD='0']
459[ebar, q, nbar; QCD='0']
460[Qbar, e, nbar; QCD='0']
461[ebar, Q, nbar; QCD='0']
465% From Boehm, Denner, Joos @ Feynman Gauge
466[ model = 'Standard Model' ]
468%------------------------------------
470%------------------------------------
480% gluon and its ghost:
484% V: EWSM gauge bosons
497% G: Faddeev-Popov Ghosts
508%------------------------------------
510%------------------------------------
513[Ubar, U, g; QCD='+1', QED='0']
514[Dbar, D, g; QCD='+1', QED='0']
515[Sbar, S, g; QCD='+1', QED='0']
516[Cbar, C, g; QCD='+1', QED='0']
517[Bbar, B, g; QCD='+1', QED='0']
518[Tbar, T, g; QCD='+1', QED='0']
520[g, g, g, g; QCD='+2', QED='0']
521[g, g, g; QCD='+1', QED='0']
522[ghbar, gh, g; QCD='+1', QED='0']
525[Wp, Wm, Z, Z; QCD='0', QED='+2']
526[Wp, Wm, A, Z; QCD='0', QED='+2']
527[Wp, Wm, A, A; QCD='0', QED='+2']
528[Wp, Wp, Wm, Wm; QCD='0', QED='+2']
531[Wp, Wm, A; QCD='0', QED='+1']
532[Wp, Wm, Z; QCD='0', QED='+1']
535[H, H, H, H; QCD='0', QED='+2']
536[chi, chi, chi, chi; QCD='0', QED='+2']
537[H, H, chi, chi; QCD='0', QED='+2']
538[H, H, phim, phip; QCD='0', QED='+2']
539[chi, chi, phim, phip; QCD='0', QED='+2']
540[phim, phip, phim, phip; QCD='0', QED='+2']
543[H, H, H; QCD='0', QED='+1']
544[H, chi, chi; QCD='0', QED='+1']
545[H, phim, phip; QCD='0', QED='+1']
548[Z, Z, H, H; QCD='0', QED='+2']
549[Z, Z, chi, chi; QCD='0', QED='+2']
550[Wp, Wm, H, H; QCD='0', QED='+2']
551[Wp, Wm, chi, chi; QCD='0', QED='+2']
552[Wp, Wm, phip, phim; QCD='0', QED='+2']
554[A, A, phip, phim; QCD='0', QED='+2']
555[Z, A, phip, phim; QCD='0', QED='+2']
556[Z, Z, phip, phim; QCD='0', QED='+2']
558[Wp, A, phim, H; QCD='0', QED='+2']
559[Wm, A, phip, H; QCD='0', QED='+2']
560[Wp, A, phim, chi; QCD='0', QED='+2']
561[Wm, A, phip, chi; QCD='0', QED='+2']
562[Wp, Z, phim, H; QCD='0', QED='+2']
563[Wm, Z, phip, H; QCD='0', QED='+2']
564[Wp, Z, phim, chi; QCD='0', QED='+2']
565[Wm, Z, phip, chi; QCD='0', QED='+2']
568[Z, chi, H; QCD='0', QED='+1']
569[A, phip, phim; QCD='0', QED='+1']
570[Z, phip, phim; QCD='0', QED='+1']
571[Wp, phim, H; QCD='0', QED='+1']
572[Wm, phip, H; QCD='0', QED='+1']
573[Wp, phim, chi; QCD='0', QED='+1']
574[Wm, phip, chi; QCD='0', QED='+1']
577[H, Z, Z; QCD='0', QED='+1']
578[H, Wp, Wm; QCD='0', QED='+1']
579[phip, Wm, A; QCD='0', QED='+1']
580[phim, Wp, A; QCD='0', QED='+1']
581[phip, Wm, Z; QCD='0', QED='+1']
582[phim, Wp, Z; QCD='0', QED='+1']
585[Ubar, U, A; QCD='0', QED='+1']
586[Dbar, D, A; QCD='0', QED='+1']
587[Sbar, S, A; QCD='0', QED='+1']
588[Cbar, C, A; QCD='0', QED='+1']
589[Bbar, B, A; QCD='0', QED='+1']
590[Tbar, T, A; QCD='0', QED='+1']
592[ep, em, A; QCD='0', QED='+1']
593[mup, mum, A; QCD='0', QED='+1']
594[taup, taum, A; QCD='0', QED='+1']
596[Ubar, U, Z; QCD='0', QED='+1']
597[Dbar, D, Z; QCD='0', QED='+1']
598[Sbar, S, Z; QCD='0', QED='+1']
599[Cbar, C, Z; QCD='0', QED='+1']
600[Bbar, B, Z; QCD='0', QED='+1']
601[Tbar, T, Z; QCD='0', QED='+1']
603[ep, em, Z; QCD='0', QED='+1']
604[mup, mum, Z; QCD='0', QED='+1']
605[taup, taum, Z; QCD='0', QED='+1']
607[nebar, ne, Z; QCD='0', QED='+1']
608[nmubar, nmu, Z; QCD='0', QED='+1']
609[ntaubar, ntau, Z; QCD='0', QED='+1']
611[Dbar, U, Wm; QCD='0', QED='+1']
612[Dbar, C, Wm; QCD='0', QED='+1']
613[Dbar, T, Wm; QCD='0', QED='+1']
615[Sbar, U, Wm; QCD='0', QED='+1']
616[Sbar, C, Wm; QCD='0', QED='+1']
617[Sbar, T, Wm; QCD='0', QED='+1']
619[Bbar, U, Wm; QCD='0', QED='+1']
620[Bbar, C, Wm; QCD='0', QED='+1']
621[Bbar, T, Wm; QCD='0', QED='+1']
623[Ubar, D, Wp; QCD='0', QED='+1']
624[Ubar, S, Wp; QCD='0', QED='+1']
625[Ubar, B, Wp; QCD='0', QED='+1']
627[Cbar, D, Wp; QCD='0', QED='+1']
628[Cbar, S, Wp; QCD='0', QED='+1']
629[Cbar, B, Wp; QCD='0', QED='+1']
631[Tbar, D, Wp; QCD='0', QED='+1']
632[Tbar, S, Wp; QCD='0', QED='+1']
633[Tbar, B, Wp; QCD='0', QED='+1']
635[ep, ne, Wm; QCD='0', QED='+1']
636[mup, nmu, Wm; QCD='0', QED='+1']
637[taup, ntau, Wm; QCD='0', QED='+1']
639[nebar, em, Wp; QCD='0', QED='+1']
640[nmubar, mum, Wp; QCD='0', QED='+1']
641[ntaubar, taum, Wp; QCD='0', QED='+1']
644[Ubar, U, H; QCD='0', QED='+1']
645[Dbar, D, H; QCD='0', QED='+1']
646[Sbar, S, H; QCD='0', QED='+1']
647[Cbar, C, H; QCD='0', QED='+1']
648[Bbar, B, H; QCD='0', QED='+1']
649[Tbar, T, H; QCD='0', QED='+1']
651[ep, em, H; QCD='0', QED='+1']
652[mup, mum, H; QCD='0', QED='+1']
653[taup, taum, H; QCD='0', QED='+1']
655[Ubar, U, chi; QCD='0', QED='+1']
656[Dbar, D, chi; QCD='0', QED='+1']
657[Sbar, S, chi; QCD='0', QED='+1']
658[Cbar, C, chi; QCD='0', QED='+1']
659[Bbar, B, chi; QCD='0', QED='+1']
660[Tbar, T, chi; QCD='0', QED='+1']
662[ep, em, chi; QCD='0', QED='+1']
663[mup, mum, chi; QCD='0', QED='+1']
664[taup, taum, chi; QCD='0', QED='+1']
666[Dbar, U, phim; QCD='0', QED='+1']
667[Dbar, C, phim; QCD='0', QED='+1']
668[Dbar, T, phim; QCD='0', QED='+1']
670[Sbar, U, phim; QCD='0', QED='+1']
671[Sbar, C, phim; QCD='0', QED='+1']
672[Sbar, T, phim; QCD='0', QED='+1']
674[Bbar, U, phim; QCD='0', QED='+1']
675[Bbar, C, phim; QCD='0', QED='+1']
676[Bbar, T, phim; QCD='0', QED='+1']
678[Ubar, D, phip; QCD='0', QED='+1']
679[Ubar, S, phip; QCD='0', QED='+1']
680[Ubar, B, phip; QCD='0', QED='+1']
682[Cbar, D, phip; QCD='0', QED='+1']
683[Cbar, S, phip; QCD='0', QED='+1']
684[Cbar, B, phip; QCD='0', QED='+1']
686[Tbar, D, phip; QCD='0', QED='+1']
687[Tbar, S, phip; QCD='0', QED='+1']
688[Tbar, B, phip; QCD='0', QED='+1']
690[ep, ne, phim; QCD='0', QED='+1']
691[mup, nmu, phim; QCD='0', QED='+1']
692[taup, ntau, phim; QCD='0', QED='+1']
694[nebar, em, phip; QCD='0', QED='+1']
695[nmubar, mum, phip; QCD='0', QED='+1']
696[ntaubar, taum, phip; QCD='0', QED='+1']
699[ghWpbar, ghWp, A; QCD='0', QED='+1']
700[ghWmbar, ghWm, A; QCD='0', QED='+1']
701[ghAbar, ghWm, Wp; QCD='0', QED='+1']
702[ghAbar, ghWp, Wm; QCD='0', QED='+1']
703[ghWmbar, ghA, Wm; QCD='0', QED='+1']
704[ghWpbar, ghA, Wp; QCD='0', QED='+1']
705[ghWpbar, ghWp, Z; QCD='0', QED='+1']
706[ghWmbar, ghWm, Z; QCD='0', QED='+1']
707[ghZbar, ghWm, Wp; QCD='0', QED='+1']
708[ghZbar, ghWp, Wm; QCD='0', QED='+1']
709[ghWmbar, ghZ, Wm; QCD='0', QED='+1']
710[ghWpbar, ghZ, Wp; QCD='0', QED='+1']
713[ghZbar, ghZ, H; QCD='0', QED='+1']
714[ghWpbar, ghWp, H; QCD='0', QED='+1']
715[ghWmbar, ghWm, H; QCD='0', QED='+1']
716[ghWpbar, ghWp, chi; QCD='0', QED='+1']
717[ghWmbar, ghWm, chi; QCD='0', QED='+1']
718[ghWpbar, ghA, phip; QCD='0', QED='+1']
719[ghWmbar, ghA, phim; QCD='0', QED='+1']
720[ghWpbar, ghZ, phip; QCD='0', QED='+1']
721[ghWmbar, ghZ, phim; QCD='0', QED='+1']
722[ghZbar, ghWp, phim; QCD='0', QED='+1']
723[ghZbar, ghWm, phip; QCD='0', QED='+1']
728[ model = 'qcd Model' ]
729%------------------------------------
731%------------------------------------
735% gluon and its ghost:
740%------------------------------------
742%------------------------------------
744[qbar, q, g; QCD='+1']
745[Qbar, Q, g; QCD='+1']
746[g, g, g, g; QCD='+2']
748[ghbar, gh, g; QCD='+1']
750[qbar, q, A; QCD='+0']
751[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