RandomManagerTest01.fcl
Go to the documentation of this file.
1 # Test the seed manager component of NuRandomService.
2 #
3 # Policy: autoIncrement
4 # Valid: yes
5 # Will succeed: yes
6 # Purpose: check normal operations
7 #
8 
9 #include "messageService.fcl"
10 
11 
12 process_name: SeedManagerTest
13 
14 
15 # Start form an empty source
16 source: {
17  module_type : EmptyEvent
18  maxEvents : 2
19 } # source
20 
21 
22 services: {
23  message : @local::mf_interactive
24  RandomNumberGenerator: {}
25  NuRandomService: {
26  policy : "autoIncrement"
27  verbosity : 2
28  endOfJobSummary : true
29  baseSeed : 123
30  checkRange : false
31  }
32 } # services
33 
34 
35 physics: {
36  analyzers: {
37  single: {
38  module_type : RandomManagerTest
39  module_name : single
40 
41  } # single
42 
43  multiple: {
44  module_type : RandomManagerTest
45  module_name : multiple
46 
47  instanceNames : [ "One", "Two" ]
48 
49  Seed_Two : 12342
50  } # multiple
51 
52  multipleAndUnmngd: {
53  module_type : RandomManagerTest
54  module_name : multipleAndUnmngd
55 
56  instanceNames : [ "One", "Two", "Three" ]
57  externalInstance: Unmanaged
58  standardInstance: Standard
59 
60  Seed_Two : 12343
61  Seed_Three : 0 # invalid seed => use NuRandomService
62  Seed_Unmanaged: 12345
63  Seed_Standard : 54321
64  } # multipleAndUnmngd
65 
66  singleAndStandard: {
67  module_type : RandomManagerTest
68  module_name : singleAndStandard
69 
70  instanceNames : [ "single" ]
71  standardInstance: Standard
72 
73  } # singleAndStandard
74 
75  unmanaged: {
76  module_type : RandomManagerTest
77  module_name : unmanaged
78 
79  externalInstance: Unmanaged
80  } # unmanaged
81 
82  } # analyzers
83 
84  e1 : [ single, multiple, multipleAndUnmngd, singleAndStandard, unmanaged ]
85  end_paths: [ e1 ]
86 
87 } # physics