20 if (np > 1000) np = 1000;
22 Double_t rr[1000], phi[1000], dr[1000], size[1000];
26 g->
SetTitle(
"TGraphTime demo;X domain;Y domain");
34 if (rc > 0.3) color[i] =
kBlue;
35 if (rc > 0.7) color[i] =
kYellow;
38 for (s=0;s<nsteps;s++) {
49 if (i==np-1) g->
Add(
new TArrow(xmin,
ymax,xx,yy,0.02,
"-|>"), s);
56 TFile f(
"gtime.root",
"recreate");
TGraphTime is used to draw a set of objects evolving with nsteps in time between tmin and tmax...
virtual Int_t Write(const char *name=0, Int_t option=0, Int_t bufsize=0)
Write this object to the current directory.
Random number generator class based on M.
virtual Double_t Rndm()
Machine independent random number generator.
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
virtual void SetMarkerColor(Color_t mcolor=1)
Set the marker color.
A Pave (see TPave) with a text centered in the Pave.
char * Form(const char *fmt,...)
virtual void SetMarkerSize(Size_t msize=1)
Set the marker size.
virtual void Draw(Option_t *chopt="")
Draw this TGraphTime.
static constexpr double s
virtual Double_t Uniform(Double_t x1=1)
Returns a uniform deviate on the interval (0, x1).
virtual Int_t Add(const TObject *obj, Int_t slot, Option_t *option="")
Add one object to a time slot.
Draw all kinds of Arrows.
virtual void SetTitle(const char *title="")
Set the title of the TNamed.