Opened 12 years ago
Closed 12 years ago
#265 closed defect (fixed)
External Random Generator interface doesn't work any longer like explained in the documentation
Reported by: | Ramon | Owned by: | support@sherpa-mc.de |
---|---|---|---|
Priority: | major | Milestone: | rel-2.0.0 |
Component: | Unknown | Version: | 2.0.beta2 |
Keywords: | External RNG | Cc: |
Description
Dear Sherpa authors,
between version 1.4.2 and 2.0.beta2 of Sherpa the way to use an external Random Generator seems to have changed. The up to date sherpa documentation advises to use
DECLARE_GETTER(Example_RNG_Getter,"Example_RNG",External_RNG,RNG_Key);
where Example_RNG_Getter is just a name. In version 1.4.2 this macro built the class definition of Example_RNG_Getter, however in version 2.0.beta2 Example_RNG_Getter is used as a template parameter to specialize:
template<> class Getter<OBJECT,PARAMETER,NAME,SORT>:public Getter_Function<OBJECT,PARAMETER,SORT> { ... }
(please see ATOOLS/Org/Getter_Function.H) The latter doesn't work because Example_RNG_Getter (passed as NAME) is no type definition.
Could you please update the documentation on how to use External RNGs in Sherpa v2.0.beta2?
Best Regards Ramon
Dear Ramon,
Thanks for your report. I have updated the documentation which will be released with Sherpa 2.0.0. You can find a preview which should contain the information you need at: http://sherpa.hepforge.org/doc/Sherpa.html#External-RNG
Please feel free to re-open this ticket if this doesn't work for you.
Cheers, Frank