seedservice.fcl
Go to the documentation of this file.
1 #
2 # File: NuRandomService.fcl
3 # Brief: Default configuration for random seed service
4 # Author: Gianluca Petrillo (petrillo@fnal.gov)
5 # Date: February 5th, 2015
6 # Version: 1.0
7 #
8 # The default configuration for the seed service uses the autoIncrement policy.
9 #
10 # Use this as:
11 #
12 # services.NuRandomService: @local::standard_NuRandomService
13 #
14 #
15 # Changes:
16 # 20150205 (petrillo@fnal.gov) [v1.0]
17 # first version
18 #
19 
20 BEGIN_PROLOG
21 
22 
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"
28 
29  # this is the first seed that is returned;
30  # override it with:
31  #
32  # services.NuRandomService.baseSeed: MySeed
33  #
34  baseSeed : 2829
35 
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
38  checkRange : false
39 
40  # print into the log all seeds at the end of the job
41  endOfJobSummary : true
42 } # autoincrement_NuRandomService
43 
44 
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"
50 
51  # this is the number of this job in an absolute batch count; override it with:
52  #
53  # services.NuRandomService.nJob: NJOB
54  #
55  nJob : 1
56  maxUniqueEngines: 20
57 
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
60  checkRange : true
61 
62  # print into the log all seeds at the end of the job
63  endOfJobSummary : true
64 } # linearmapping_NuRandomService
65 
66 
67 random_NuRandomService: {
68  # policy: random
69  # each time a seed is requested, a random number is returned.
70  #
71  policy : "random"
72 
73  # if you really want this sequence of seeds to be reproducible,
74  # insert here a seed for the random seed generator
75  # baseSeed : 64429
76 
77  # print into the log all seeds at the end of the job
78  endOfJobSummary : true
79 } # random_NuRandomService
80 
81 
82 per_event_NuRandomService: {
83  # policy: perEvent
84  # on each event, the seed is computed from event information
85  #
86  policy : "perEvent"
87 
88  # print into the log all seeds at the end of the job
89  endOfJobSummary : false
90 } # per_event_NuRandomService
91 
92 
93 # choose our autoIncrement configuration as "standard"
94 standard_NuRandomService: @local::autoincrement_NuRandomService
95 
96 
97 END_PROLOG
98