Project

General

Profile

Task #15399

update NuRandomService configuration for CORSIKA

Added by Vito Di Benedetto over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
High
Category:
Simulation
Target version:
-
Start date:
01/31/2017
Due date:
% Done:

100%

Estimated time:
1.00 h
Spent time:
Duration:

Description

As consequence of merging feature branch wketchum_InTimeCosmic into the develop branch, CORSIKA module uses e new named instance of NuRandomService, i.e. services.NuRandomService.corsika.pois.
Previously in CORSIKA module it was already used an unnamed instance of NuRandomService, i.e. services.NuRandomService.corsika

NuRandomService doesn't support named and unnamed instances at the same time.

So it is needed to update NuRandomService in CORSIKA module to use only named instances.

Associated revisions

Revision 8d035f73 (diff)
Added by Gianluca Petrillo over 3 years ago

Random number engines update in CORSIKAGen module.

The old random stream has gained a new instance name ("gen") and a
custom override argument ("SeedGen").
Also changed the queries of flat distribution numbers from the engine to
the distribution adapter object, which is how we are supposed to do.
This solves issue #15399 .

Revision 425b91ff (diff)
Added by Gianluca Petrillo over 3 years ago

Random number engines update in CORSIKAGen module.

The old random stream has gained a new instance name ("gen") and a
custom override argument ("SeedGen").
Also changed the queries of flat distribution numbers from the engine to
the distribution adapter object, which is how we are supposed to do.
This solves issue #15399 .

History

#1 Updated by Gianluca Petrillo over 3 years ago

  • Category set to Simulation
  • Status changed from New to Assigned
  • Assignee set to Gianluca Petrillo
  • Priority changed from Normal to High
  • Estimated time set to 1.00 h

#2 Updated by Gianluca Petrillo over 3 years ago

  • Status changed from Assigned to Resolved
  • % Done changed from 0 to 100

Changes have been committed into larsim develop branch (larsim:8d035f731d93bc0beb7d7d1fb932aaa9c9a9413d).

The configuration accepts an additional key SeedGen (equivalent to the old Seed, which is still supported) to override the generator seed from FHiCL file. This is in addition to SeedPois configuration which already gave control on the seed of the other stream.

#3 Updated by Gianluca Petrillo over 3 years ago

The stream names are now gen and pois, which can be used in NuRandomService configuration as:

services.NuRandomService.corsika: {
  gen: 12345
  pois: 67890
}
(if I remember the syntax right).

#4 Updated by Gianluca Petrillo over 3 years ago

  • Status changed from Resolved to Closed


Also available in: Atom PDF