Example of TGraphTime.
See the TGraphTime documentation
X
#include <vector>
void gr017_time(
Int_t nsteps = 500,
Int_t np = 100)
{
if (np > 1000) np = 1000;
std::vector<Int_t> color(np);
std::vector<Double_t> rr(np), phi(np), dr(np),
size(np);
g->SetTitle(
"TGraphTime demo;X domain;Y domain");
for (
Int_t i = 0; i < np; i++) {
if (rc > 0.7)
else if (rc > 0.3)
else
size[i] =
r.Uniform(0.5, 6);
}
for (
Int_t s = 0; s < nsteps; s++) {
for (
Int_t i = 0; i < np; i++) {
m->SetMarkerColor(color[i]);
m->SetMarkerSize(newsize);
if (i == np - 1)
}
}
}
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.
- Author
- Rene Brun
Definition in file gr017_time.C.