2 # File: NuRandomService.fcl
3 # Brief: Default configuration for random seed service
4 # Author: Gianluca Petrillo (petrillo@fnal.gov)
5 # Date: February 5th, 2015
8 # The default configuration for the seed service uses the autoIncrement policy.
12 # services.NuRandomService: @local::standard_NuRandomService
16 # 20150205 (petrillo@fnal.gov) [v1.0]
23 autoincrement_NuRandomService: {
24 # policy: autoIncrement
25 # each time a seed is requested, a counter is increased and its value returned
26 # as seed; the first seed returned is baseSeed
27 policy : "autoIncrement"
29 # this is the first seed that is returned;
32 # services.NuRandomService.baseSeed: MySeed
36 # since this is a generic configuration and we don't know how many seeds there
37 # are going to be around, we just skip the range check
40 # print into the log all seeds at the end of the job
41 endOfJobSummary : true
42 } # autoincrement_NuRandomService
45 linearmapping_NuRandomService: {
46 # policy: linearIncrement
47 # each time a seed is requested, a counter is increased and its value returned
48 # as seed; the first seed returned is nJob x maxUniqueEngines
49 policy : "linearMapping"
51 # this is the number of this job in an absolute batch count; override it with:
53 # services.NuRandomService.nJob: NJOB
58 # make sure that we don't try to use more engines than we are allowed;
59 # that would mean overlapping random seeds with the next job
62 # print into the log all seeds at the end of the job
63 endOfJobSummary : true
64 } # linearmapping_NuRandomService
67 random_NuRandomService: {
69 # each time a seed is requested, a random number is returned.
73 # if you really want this sequence of seeds to be reproducible,
74 # insert here a seed for the random seed generator
77 # print into the log all seeds at the end of the job
78 endOfJobSummary : true
79 } # random_NuRandomService
82 per_event_NuRandomService: {
84 # on each event, the seed is computed from event information
88 # print into the log all seeds at the end of the job
89 endOfJobSummary : false
90 } # per_event_NuRandomService
93 # choose our autoIncrement configuration as "standard"
94 standard_NuRandomService: @local::autoincrement_NuRandomService