18void gr017_time(
Int_t nsteps = 500,
Int_t np = 100)
20 if (np > 1000) np = 1000;
21 std::vector<Int_t> color(np);
22 std::vector<Double_t> rr(np), phi(np), dr(np),
size(np);
26 g->SetTitle(
"TGraphTime demo;X domain;Y domain");
27 for (
Int_t i = 0; i < np; i++) {
28 rr[i] =
r.Uniform(0.1 *
xmax, 0.2 *
xmax);
39 size[i] =
r.Uniform(0.5, 6);
41 for (
Int_t s = 0; s < nsteps; s++) {
42 for (
Int_t i = 0; i < np; i++) {
49 m->SetMarkerColor(color[i]);
50 m->SetMarkerSize(newsize);
65 f->WriteObject(
g,
"g");
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
int Int_t
Signed integer 4 bytes (int).
double Double_t
Double 8 bytes.
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=ROOT::RCompressionSetting::EDefaults::kUseCompiledDefault, Int_t netopt=0)
Create / open a file.
TGraphTime is used to draw a set of objects evolving with nsteps in time between tmin and tmax.
A Pave (see TPave) with a text centered in the Pave.
Random number generator class based on M.
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
Double_t Cos(Double_t)
Returns the cosine of an angle of x radians.
Double_t Sin(Double_t)
Returns the sine of an angle of x radians.
Short_t Abs(Short_t d)
Returns the absolute value of parameter Short_t d.