Project

General

Profile

Feature #7911

Open access to GENIE random engine

Added by Gianluca Petrillo over 4 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Start date:
02/20/2015
Due date:
% Done:

0%

Estimated time:
Duration:

Description

I would like to gain access to the random engine used by GENIE.
That is currently owned by GENIEHelper, that swaps it in when calling GENIE.

I would like in particular to have a way to set and read the random seed at any time.
Currently, I can only set it at the beginning of the job (via FHiCL configuration).

The other solution is quite more clumsy: create my own random generator, set it as ROOT's currrent, call GENIEHelper::Sample (configured with UseHelperRndGen4GENIE: false), and restore the previous ROOT random generator. This is precisely what GENIEHelper::Sample already does (and it does it better).



Also available in: Atom PDF