sherpa is hosted by Hepforge, IPPP Durham
close Warning: Can't synchronize with repository "(default)" (/hepforge/svn/sherpa does not appear to be a Subversion repository.). Look in the Trac log for more information.
Modify

Opened 11 years ago

Closed 11 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

Attachments (0)

Change History (1)

comment:1 Changed 11 years ago by Frank Siegert

Resolution: fixed
Status: newclosed

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

Modify Ticket

Change Properties
Action
as closed The owner will remain support@sherpa-mc.de.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.