HepLib
Classes | Functions | Variables
HepLib::QGRAF Namespace Reference

namespace for generating Feynman diagrams or amplitudes. More...

Classes

class  Process
 main interface to qgraf program More...
 
class  Models
 

Functions

Index DI (ex fn)
 
Index LI (ex fn)
 
Index TI (ex fn)
 
Index FI (ex fn)
 
Index CI (ex fn)
 
Index AI (ex fn)
 
Index RDI (ex fn)
 
Index RLI (ex fn)
 
Index RTI (ex fn)
 
Index RFI (ex fn)
 
Index RCI (ex fn)
 
Index RAI (ex fn)
 
lst TopoLines (const ex &amp)
 generate the topological lines for the amplitude More...
 
void DrawPDF (const lst &amps, string fn)
 generate Feynman diagrams for the amplitudes, in PDF format More...
 
vector< lst > ShrinkCut (ex amp, lst prop, int n)
 cut the amplitude, and return the connected parts, may have many different cuts More...
 
bool HasLoop (ex amp, lst prop)
 check a amplitude has a loop w.r.t. propapagtor More...
 
ex QuarkPropagator (const ex &e, const ex &m)
 Propagator for quark. More...
 
ex LeptonPropagator (const ex &e, const ex &m)
 Propagator for lepton. More...
 
ex GluonPropagator (const ex &e, const ex &xi)
 Propagator for gluon. More...
 
ex GluonGhostPropagator (const ex &e, const ex &xi, const ex &eta_G)
 Propagator for gluon ghost. More...
 
ex AZWPropagator (const ex &e, const ex &m, const ex &xi)
 Propagator for A/Z/W boson. More...
 
ex AZWGhostPropagator (const ex &e, const ex &m, const ex &xi, const ex &eta_G)
 Propagator for A/Z/W ghost. More...
 
ex ScalarPropagator (const ex &e, const ex &m, const ex &xi)
 Propagator for scalar. More...
 
ex QuarkGluonVertex (const ex &e, const ex &eta_s)
 q-qbar-g vertex More...
 
ex Gluon3Vertex (const ex &e, const ex &eta_s)
 g-g-g vertex More...
 
ex Gluon4Vertex (const ex &e, const ex &eta_s)
 g-g-g-g vertex More...
 
ex GhostGluonVertex (const ex &e, const ex &eta_s, const ex &eta_G)
 ghbar-gh-g vertex More...
 
ex QuarkAVertex (const ex &e, const ex &eq, const ex &eta_e)
 qbar-q-A vertex More...
 
ex LeptonAVertex (const ex &e, const ex &eq, const ex &eta_e)
 l-lbar-A vertex More...
 
ex IndexL2R (ex e, bool all)
 Change Index from left to right, only affect li/di/ci/ti, external index start with dim/lim/cim/tim will also be changed if all=true. More...
 
ex IndexCC (ex e, bool all)
 
ex GluonSumL (int qi, bool color)
 polarization sum for gluon More...
 
ex GluonSumR (int qi, bool color)
 polarization sum for gluon More...
 
ex QuarkSumL (int qi, ex p, ex m, bool color)
 polarization sum for quark More...
 
ex QuarkSumR (int qi, ex p, ex m, bool color)
 polarization sum for quark More...
 
ex AntiQuarkSumL (int qi, ex p, ex m, bool color)
 polarization sum for anti-quark More...
 
ex AntiQuarkSumR (int qi, ex p, ex m, bool color)
 polarization sum for anti-quark More...
 
ex GhostSumL (int qi)
 polarization sum for ghost More...
 
ex GhostSumR (int qi)
 polarization sum for ghost More...
 
ex AntiGhostSumL (int qi)
 polarization sum for anti-ghost, note that we will add extra - here More...
 
ex AntiGhostSumR (int qi)
 polarization sum for anti-ghost, note that we will add extra - here More...
 
ex J1SumL (int qi, ex p)
 polarization sum for total angular momentum More...
 
ex J1SumR (int qi, ex p)
 polarization sum for total angular momentum More...
 
ex GluonSum (int qi, bool color=true)
 
ex QuarkSum (int qi, ex p, ex m, bool color=true)
 
ex AntiQuarkSum (int qi, ex p, ex m, bool color=true)
 
ex GhostSum (int qi)
 
ex AntiGhostSum (int qi)
 
ex J1Sum (int qi, ex p)
 

Variables

map< ex, string, ex_is_less > LineTeX
 
map< ex, string, ex_is_less > VerTeX
 
map< ex, string, ex_is_less > InOutTeX
 

Detailed Description

namespace for generating Feynman diagrams or amplitudes.

Function Documentation

◆ AI()

Index HepLib::QGRAF::AI ( ex  fn)

Definition at line 50 of file QGRAF.cpp.

◆ AntiGhostSum()

ex HepLib::QGRAF::AntiGhostSum ( int  qi)
inline

Definition at line 155 of file QGRAF.h.

◆ AntiGhostSumL()

ex HepLib::QGRAF::AntiGhostSumL ( int  qi)

polarization sum for anti-ghost, note that we will add extra - here

Parameters
qianti-ghost qgraf index
Returns
g^{i ir} delta^{i ir}

Definition at line 717 of file QGRAF.cpp.

◆ AntiGhostSumR()

ex HepLib::QGRAF::AntiGhostSumR ( int  qi)

polarization sum for anti-ghost, note that we will add extra - here

Parameters
qianti-ghost qgraf index
Returns
g^{i ir} delta^{i ir}

Definition at line 726 of file QGRAF.cpp.

◆ AntiQuarkSum()

ex HepLib::QGRAF::AntiQuarkSum ( int  qi,
ex  p,
ex  m,
bool  color = true 
)
inline

Definition at line 153 of file QGRAF.h.

◆ AntiQuarkSumL()

ex HepLib::QGRAF::AntiQuarkSumL ( int  qi,
ex  p,
ex  m,
bool  color 
)

polarization sum for anti-quark

Parameters
qianti-quark qgraf index
panti-quark momentum vector
manti-quark mass
colortrue for QCD, false for QED
Returns
anti-Quark summation

Definition at line 676 of file QGRAF.cpp.

◆ AntiQuarkSumR()

ex HepLib::QGRAF::AntiQuarkSumR ( int  qi,
ex  p,
ex  m,
bool  color 
)

polarization sum for anti-quark

Parameters
qianti-quark qgraf index
panti-quark momentum vector
manti-quark mass
colortrue for QCD, false for QED
Returns
anti-Quark summation

Definition at line 689 of file QGRAF.cpp.

◆ AZWGhostPropagator()

ex HepLib::QGRAF::AZWGhostPropagator ( const ex &  e,
const ex &  m,
const ex &  xi,
const ex &  eta_G 
)

Propagator for A/Z/W ghost.

Parameters
eexpression with head of Propagator
mmass for A/Z/W -> 0/MZ/MW
xiR-xi gauge parameter
Returns
the A/Z/W ghost propagator @ R-xi gauge

Definition at line 477 of file QGRAF.cpp.

◆ AZWPropagator()

ex HepLib::QGRAF::AZWPropagator ( const ex &  e,
const ex &  m,
const ex &  xi 
)

Propagator for A/Z/W boson.

Parameters
eexpression with head of Propagator
mthe boson mass, 0/MZ/MW
xiR-xi gauge parameter
Returns
the A/Z/W boson propagator

Definition at line 463 of file QGRAF.cpp.

◆ CI()

Index HepLib::QGRAF::CI ( ex  fn)

Definition at line 49 of file QGRAF.cpp.

◆ DI()

Index HepLib::QGRAF::DI ( ex  fn)

Definition at line 45 of file QGRAF.cpp.

◆ DrawPDF()

void HepLib::QGRAF::DrawPDF ( const lst &  amps,
string  fn 
)

generate Feynman diagrams for the amplitudes, in PDF format

Parameters
ampsrefers to Amplitudes
fnthe filename of the PDF
Returns
nonthing, check pdf file

Definition at line 165 of file QGRAF.cpp.

◆ FI()

Index HepLib::QGRAF::FI ( ex  fn)

Definition at line 48 of file QGRAF.cpp.

◆ GhostGluonVertex()

ex HepLib::QGRAF::GhostGluonVertex ( const ex &  e,
const ex &  eta_s,
const ex &  eta_G 
)

ghbar-gh-g vertex

Parameters
eexpression with head of Vertex
eta_s+1/-1 the sign convention
eta_G+1/-1 the sign convention
Returns
the ghbar-gh-g vertex

Definition at line 556 of file QGRAF.cpp.

◆ GhostSum()

ex HepLib::QGRAF::GhostSum ( int  qi)
inline

Definition at line 154 of file QGRAF.h.

◆ GhostSumL()

ex HepLib::QGRAF::GhostSumL ( int  qi)

polarization sum for ghost

Parameters
qighost qgraf index
Returns
g^{i ir} delta^{i ir}

Definition at line 699 of file QGRAF.cpp.

◆ GhostSumR()

ex HepLib::QGRAF::GhostSumR ( int  qi)

polarization sum for ghost

Parameters
qighost qgraf index
Returns
g^{i ir} delta^{i ir}

Definition at line 708 of file QGRAF.cpp.

◆ Gluon3Vertex()

ex HepLib::QGRAF::Gluon3Vertex ( const ex &  e,
const ex &  eta_s 
)

g-g-g vertex

Parameters
eexpression with head of Vertex
eta_s+1/-1 the sign convention
Returns
the g-g-g vertex

Definition at line 517 of file QGRAF.cpp.

◆ Gluon4Vertex()

ex HepLib::QGRAF::Gluon4Vertex ( const ex &  e,
const ex &  eta_s 
)

g-g-g-g vertex

Parameters
eexpression with head of Vertex
eta_s+1/-1 the sign convention
Returns
the g-g-g-g vertex

Definition at line 537 of file QGRAF.cpp.

◆ GluonGhostPropagator()

ex HepLib::QGRAF::GluonGhostPropagator ( const ex &  e,
const ex &  xi,
const ex &  eta_G 
)

Propagator for gluon ghost.

Parameters
eexpression with head of Propagator
xithe result wil not depend on xi, since null gluon mass
Returns
the gluon ghost propagator

Definition at line 449 of file QGRAF.cpp.

◆ GluonPropagator()

ex HepLib::QGRAF::GluonPropagator ( const ex &  e,
const ex &  xi 
)

Propagator for gluon.

Parameters
eexpression with head of Propagator
xiR-xi gauge parameter
Returns
the gloun propagator for R-xi gauge

Definition at line 436 of file QGRAF.cpp.

◆ GluonSum()

ex HepLib::QGRAF::GluonSum ( int  qi,
bool  color = true 
)
inline

Definition at line 151 of file QGRAF.h.

◆ GluonSumL()

ex HepLib::QGRAF::GluonSumL ( int  qi,
bool  color 
)

polarization sum for gluon

Parameters
qigluon qgraf index
colortrue for QCD, false for QED
Returns
g^{i ir} delta^{i ir}

Definition at line 626 of file QGRAF.cpp.

◆ GluonSumR()

ex HepLib::QGRAF::GluonSumR ( int  qi,
bool  color 
)

polarization sum for gluon

Parameters
qigluon qgraf index
colortrue for QCD, false for QED
Returns
g^{i ir} delta^{i ir}

Definition at line 637 of file QGRAF.cpp.

◆ HasLoop()

bool HepLib::QGRAF::HasLoop ( ex  amp,
lst  prop 
)

check a amplitude has a loop w.r.t. propapagtor

Parameters
ampone of the Amplitudes
propthe line type in the loop
Returns
true if the corresponding loop exsits

Definition at line 373 of file QGRAF.cpp.

◆ IndexCC()

ex HepLib::QGRAF::IndexCC ( ex  e,
bool  all 
)

Definition at line 616 of file QGRAF.cpp.

◆ IndexL2R()

ex HepLib::QGRAF::IndexL2R ( ex  e,
bool  all 
)

Change Index from left to right, only affect li/di/ci/ti, external index start with dim/lim/cim/tim will also be changed if all=true.

Parameters
einput expression
allif true external index will also be changed
Returns
Index changed

Definition at line 598 of file QGRAF.cpp.

◆ J1Sum()

ex HepLib::QGRAF::J1Sum ( int  qi,
ex  p 
)
inline

Definition at line 156 of file QGRAF.h.

◆ J1SumL()

ex HepLib::QGRAF::J1SumL ( int  qi,
ex  p 
)

polarization sum for total angular momentum

Parameters
qiqgraf index
pthe total momentum
Returns
-g^{qi, rqi} + p^qi p^rqi/p.p

Definition at line 736 of file QGRAF.cpp.

◆ J1SumR()

ex HepLib::QGRAF::J1SumR ( int  qi,
ex  p 
)

polarization sum for total angular momentum

Parameters
qiqgraf index
pthe momentum
Returns
-g^{qi, rqi} + p^qi p^rqi/p.p

Definition at line 747 of file QGRAF.cpp.

◆ LeptonAVertex()

ex HepLib::QGRAF::LeptonAVertex ( const ex &  e,
const ex &  eq,
const ex &  eta_e 
)

l-lbar-A vertex

Parameters
eexpression with head of Vertex
eqthe charge
eta_e+1/-1 the sign convention
Returns
the q-qbar-A vertex

Definition at line 585 of file QGRAF.cpp.

◆ LeptonPropagator()

ex HepLib::QGRAF::LeptonPropagator ( const ex &  e,
const ex &  m 
)

Propagator for lepton.

Parameters
eexpression with head of Propagator
mthe quark mass
Returns
the lepton propagator

Definition at line 423 of file QGRAF.cpp.

◆ LI()

Index HepLib::QGRAF::LI ( ex  fn)

Definition at line 46 of file QGRAF.cpp.

◆ QuarkAVertex()

ex HepLib::QGRAF::QuarkAVertex ( const ex &  e,
const ex &  eq,
const ex &  eta_e 
)

qbar-q-A vertex

Parameters
eexpression with head of Vertex
eqthe charge
eta_e+1/-1 the sign convention
Returns
the q-qbar-A vertex

Definition at line 571 of file QGRAF.cpp.

◆ QuarkGluonVertex()

ex HepLib::QGRAF::QuarkGluonVertex ( const ex &  e,
const ex &  eta_s 
)

q-qbar-g vertex

Parameters
eexpression with head of Vertex
eta_s+1/-1 the sign convention
Returns
the q-qbar-g vertex

Definition at line 504 of file QGRAF.cpp.

◆ QuarkPropagator()

ex HepLib::QGRAF::QuarkPropagator ( const ex &  e,
const ex &  m 
)

Propagator for quark.

Parameters
eexpression with head of Propagator
mthe quark mass
Returns
the quark propagator

Definition at line 410 of file QGRAF.cpp.

◆ QuarkSum()

ex HepLib::QGRAF::QuarkSum ( int  qi,
ex  p,
ex  m,
bool  color = true 
)
inline

Definition at line 152 of file QGRAF.h.

◆ QuarkSumL()

ex HepLib::QGRAF::QuarkSumL ( int  qi,
ex  p,
ex  m,
bool  color 
)

polarization sum for quark

Parameters
qiquark qgraf index
panti-quark momentum vector
manti-quark mass
colortrue for QCD, false for QED
Returns
Quark summation

Definition at line 650 of file QGRAF.cpp.

◆ QuarkSumR()

ex HepLib::QGRAF::QuarkSumR ( int  qi,
ex  p,
ex  m,
bool  color 
)

polarization sum for quark

Parameters
qiquark qgraf index
panti-quark momentum vector
manti-quark mass
colortrue for QCD, false for QED
Returns
Quark summation

Definition at line 663 of file QGRAF.cpp.

◆ RAI()

Index HepLib::QGRAF::RAI ( ex  fn)

Definition at line 56 of file QGRAF.cpp.

◆ RCI()

Index HepLib::QGRAF::RCI ( ex  fn)

Definition at line 55 of file QGRAF.cpp.

◆ RDI()

Index HepLib::QGRAF::RDI ( ex  fn)

Definition at line 51 of file QGRAF.cpp.

◆ RFI()

Index HepLib::QGRAF::RFI ( ex  fn)

Definition at line 54 of file QGRAF.cpp.

◆ RLI()

Index HepLib::QGRAF::RLI ( ex  fn)

Definition at line 52 of file QGRAF.cpp.

◆ RTI()

Index HepLib::QGRAF::RTI ( ex  fn)

Definition at line 53 of file QGRAF.cpp.

◆ ScalarPropagator()

ex HepLib::QGRAF::ScalarPropagator ( const ex &  e,
const ex &  m,
const ex &  xi 
)

Propagator for scalar.

Parameters
eexpression with head of Propagator
mmass for the particle
xiR-xi gauge parameter, xi=1 for higgs
Returns
the scalar propagator

Definition at line 491 of file QGRAF.cpp.

◆ ShrinkCut()

vector< lst > HepLib::QGRAF::ShrinkCut ( ex  amp,
lst  prop,
int  n 
)

cut the amplitude, and return the connected parts, may have many different cuts

Parameters
ampone of the Amplitudes
propthe line type to be cutted, can be lst{g,g} or lst{ lst{g,g}, lst{A,A} }
nthe number of lines to be cutted
Returns
vector of lst, each element in the vector, is actually a lst of lst, different connectted parts

Definition at line 285 of file QGRAF.cpp.

◆ TI()

Index HepLib::QGRAF::TI ( ex  fn)

Definition at line 47 of file QGRAF.cpp.

◆ TopoLines()

lst HepLib::QGRAF::TopoLines ( const ex &  amp)

generate the topological lines for the amplitude

Parameters
ampthe element from Amplitudes
Returns
topoligical lines, {{vid1,fs1}, {vid2,fs2}, lst{f1,f2}/lst{exf},mom}

Definition at line 120 of file QGRAF.cpp.

Variable Documentation

◆ InOutTeX

map< ex, string, ex_is_less > HepLib::QGRAF::InOutTeX
extern

Definition at line 182 of file Init.cpp.

◆ LineTeX

map< ex, string, ex_is_less > HepLib::QGRAF::LineTeX
extern

Definition at line 180 of file Init.cpp.

◆ VerTeX

map< ex, string, ex_is_less > HepLib::QGRAF::VerTeX
extern

Definition at line 181 of file Init.cpp.