TRandom3

Hi,

Here is the sample of the code:

TRandom3 *r = new TRandom3(0);
Double_t rho = r->Gaus(0, 0.5);
Double_t x = 0, y = 0, z = 0;
r.Sphere(x, y, z, rho);

Are Gaus() and Sphere() derived from TRandom or TRandom3 method? When I look at the TRandom3 description on page root.cern.ch/root/html520/TRandom3.html, it shows TRandom::Gaus() and TRandom::Sphere().

I am using root 5.20 version.
Thank you,
Nidhi

TRandom3::Sphere or Gaus are TRandom::Spehere, Gaus. However TRandom::Sphere,Gauss call the virtual Rndm function, ie TRandom3::Rndm.

Rene

That is what I thought but just had to make sure. Thanks for clearing that up.

Nidhi