Re: [ROOT] Taking a random value in a probability distribution ?

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue Aug 13 2002 - 21:01:00 MEST


Fred,

All that exists in ROOT and much more and much better.
See, in particular:
 TF1::GetRandom
 TF2::GetRandom2
 TF3::GetRandom3
 TH1::GetRandom
 TH1::FillRandom
 TH2::GetRandom2
 TH2::FillRandom
 TH3::FillRandom
 + classes TRandom, TRandom2, TRandom3

Rene Brun

On Tue, 13 Aug 2002, Fred Sarazin wrote:

> Hello,
> 
> In Monte-Carlo simulation, I found that the hbook routine hbfun1 and hrndm1
> were very useful
> to draw an event in a probability distribution. Is there a similar
> possibility with Root ?
> 
> Thanks,
> 
> Fred
> 



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:04 MET