Re: Using CLHEP pseudo-random number generators in ROOT ?

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Tue, 3 Nov 2009 18:39:52 +0100


You can derive your class from TRandom and set gRandom to point to it. It will work without any changes in ROOT if you follow the TRandom API.

Rene Brun

Sebastien Binet wrote:
> On Tuesday 03 November 2009 18:09:03 Brett Viren wrote:
>
>> Rene Brun <Rene.Brun_at_cern.ch> writes:
>>
>>> For sure, we are not going to introduce a dependency of ROOT on an
>>> obsolete package like CLHEP. ROOT random number generators are better
>>> and faster than the ones in CLHEP.
>>>
>> Okay. I didn't realize CLHEP was so marginalized. I'll have to look in
>> to what this means vis a vis Geant4 and Gaudi.
>>
>
> CLHEP being "passé" or not is still to be discussed (probably not on this
> mailing list) but is also moot.
>
> if tomorrow I have my super duper C-library which provides a blazingly fast
> pRNG stream in a form of uint64_t* (or whatever), there'd surely be a way to
> tell the ROOT framework to use that as a source, without hopping thru too much
> glue code, wouldn't it ?
>
> my 2-euro cents.
>
> cheers,
> sebastien.
>
>
Received on Tue Nov 03 2009 - 18:39:59 CET

This archive was generated by hypermail 2.2.0 : Tue Nov 03 2009 - 23:50:02 CET