18 void gtime2(
Int_t nsteps = 200,
Int_t np=5000) {
19 if (np > 5000) np = 5000;
21 Double_t cosphi[5000], sinphi[5000], speed[5000];
25 g->
SetTitle(
"TGraphTime demo 2;X;Y");
35 if (rc > 0.3) color[i] =
kBlue;
36 if (rc > 0.7) color[i] =
kYellow;
38 for (s=0;s<nsteps;s++) {
41 if (xx < xmin)
continue;
48 g->
Add(
new TPaveLabel(.70,.92,.98,.99,
Form(
"shower at %5.3f nsec",3.*s/nsteps),
"brNDC"),s);
TGraphTime is used to draw a set of objects evolving with nsteps in time between tmin and tmax...
Random number generator class based on M.
virtual Double_t Gaus(Double_t mean=0, Double_t sigma=1)
Samples a random number from the standard Normal (Gaussian) Distribution with the given mean and sigm...
virtual void SetMarkerColor(Color_t mcolor=1)
virtual Double_t Rndm(Int_t i=0)
Machine independent random number generator.
A Pave (see TPave) with a text centered in the Pave.
char * Form(const char *fmt,...)
virtual void SetMarkerSize(Size_t msize=1)
virtual void Draw(Option_t *chopt="")
Draw this TGraphTime.
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.
virtual void SetTitle(const char *title="")
Change (i.e. set) the title of the TNamed.