Draw Feynman diagrams.
void feynman()
{
c1->Range(0, 0, 140, 60);
l =
new TLine(10, 10, 30, 30);
l->Draw();
l =
new TLine(10, 50, 30, 30);
l->Draw();
Gamma->SetWavy();
Gamma->Draw();
l =
new TLine(110, 30, 130, 10);
l->Draw();
l =
new TLine(110, 30, 130, 50);
l->Draw();
}
R__EXTERN TStyle * gStyle
virtual Width_t GetLineWidth() const
Return the line width.
virtual void SetLineWidth(Width_t lwidth)
Set the line width.
virtual void SetTextAlign(Short_t align=11)
Set the text alignment.
virtual void SetTextSize(Float_t tsize=1)
Set the text size.
Implements curly or wavy arcs used to draw Feynman diagrams.
Implements curly or wavy polylines used to draw Feynman diagrams.
virtual void SetWavy()
Set wavy.
To draw Mathematical Formula.
TLatex * DrawLatex(Double_t x, Double_t y, const char *text)
Make a copy of this object with the new parameters And copy object attributes.
Use the TLine constructor to create a simple line.
virtual void Draw(Option_t *option="")
Draw this polyline with its current attributes.
- Author
- Otto Schaile
Definition in file feynman.C.