Hi All!
I'm using TF1::GetRandom() to get random numbers distributed as a blackbody
spectrum. I need random numbers above some threshold so I do:
f->SetRange(min, max); // assume f is a TF1* properly declared
// min and max are the bounds for the random number
f->GetRandom();
In a previous version of my simulation program I was using the class
RandGeneral from CLHEP (with some minor modifications to allow setting
thresholds) and I found that the generation of these random numbers is 10
to 20 times slower using GetRandom. Do I do something wrong? There's a way
to speed up the generation?
Thanks in advance.
Ciao, Daniel.
--ddm
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:08 MET