RandomManagerTest03.fcl
Go to the documentation of this file.
1 # Test the seed manager component of NuRandomService.
2 #
3 # Policy: perEvent
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 
20  timestampPlugin: {
21  plugin_type: "GeneratedEventTimestamp"
22  }
23 
24 } # source
25 
26 
27 services: {
28  message : @local::mf_interactive
29  RandomNumberGenerator: {}
30  NuRandomService: {
31  policy : "perEvent"
32  verbosity : 2
33  endOfJobSummary : true
34  }
35 } # services
36 
37 
38 physics: {
39  analyzers: {
40  single: {
41  module_type : RandomManagerTest
42  module_name : single
43 
44  } # single
45 
46  multiple: {
47  module_type : RandomManagerTest
48  module_name : multiple
49 
50  instanceNames : [ "One", "Two" ]
51 
52  Seed_Two : 12345
53  } # multiple
54 
55  multipleAndUnmngd: {
56  module_type : RandomManagerTest
57  module_name : multipleAndUnmngd
58 
59  instanceNames : [ "One", "Two", "Three" ]
60  externalInstance: Unmanaged
61  standardInstance: Standard
62 
63  Seed_Two : 12345
64  Seed_Three : 0 # invalid seed => use NuRandomService
65  Seed_Unmanaged: 12345
66  Seed_Standard : 54321
67  } # multipleAndUnmngd
68 
69  singleAndStandard: {
70  module_type : RandomManagerTest
71  module_name : singleAndStandard
72 
73  instanceNames : [ "single" ]
74  standardInstance: Standard
75 
76  } # singleAndStandard
77 
78  unmanaged: {
79  module_type : RandomManagerTest
80  module_name : unmanaged
81 
82  externalInstance: Unmanaged
83  } # unmanaged
84 
85  } # analyzers
86 
87  e1 : [ single, multiple, multipleAndUnmngd, singleAndStandard, unmanaged ]
88  end_paths: [ e1 ]
89 
90 } # physics