42 for(
Int_t i=0; i<10; i++){
56 TCanvas *
c1 =
new TCanvas(
"gr201_waves",
"A double slit experiment", 300, 40, 1004, 759);
57 c1->Range(0, -10, 30, 10);
60 pad->Range(0, -10, 15, 10);
77 f0->SetParameters(
amp, lambda, 0, 0);
84 title.
DrawLatex(1.6, 8.5,
"A double slit experiment");
113 line =
new TLine(15, 0 - 0.5*
d + 0.2, 15, 0 + 0.5*
d - 0.2);
117 line =
new TLine(15, 0 + 0.5*
d + 0.2, 15, 10);
137 for (
Int_t i = 0; i < 16; i++) {
138 arc.DrawArc(0, 0.5*
d,
r, 0., 360.,
"only");
139 arc.DrawArc(0, -0.5*
d,
r, 0., 360.,
"only");
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t result
R__EXTERN TStyle * gStyle
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
virtual void SetFillStyle(Style_t fstyle)
Set the fill area style.
virtual void SetLineWidth(Width_t lwidth)
Set the line width.
virtual void SetLineColor(Color_t lcolor)
Set the line color.
static Int_t GetColor(const char *hexcolor)
Static method returning color number for color specified by hex color string of form: "#rrggbb",...
A 2-Dim function with parameters.
A TGraph is an object made of two arrays X and Y with npoints each.
virtual void SetPoint(Int_t i, Double_t x, Double_t y)
Set x and y values for point number i.
void Draw(Option_t *chopt="") override
Draw this graph with its current attributes.
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="")
Default Draw method for all objects.
The most important graphics class in the ROOT system.
void SetPalette(Int_t ncolors=kBird, Int_t *colors=nullptr, Float_t alpha=1.)
See TColor::SetPalette.
LongDouble_t Power(LongDouble_t x, LongDouble_t y)
Returns x raised to the power y.