testPredefinedOfsErr05.fcl
Go to the documentation of this file.
1 # Test the seeds service.
2 #
3 # Policy: preDefinedOffset
4 # Valid: no (one seed offset is used more than once)
5 # Will succeed: yes
6 # Purpose: check on seed collisions
7 #
8 #
9 # This test configuration contains errors. The second module will fail (trying
10 # to use a seed already used by the first one), so its configuration informs it
11 # of the expected failure. Yet, if one day art decided to run the two test
12 # module instances in the reversed order (it does not guarantee it won't),
13 # this clumsy method of detecting failure will break.
14 #
15 # Note that there are two expected errors: the test module asks for the seed
16 # twice to verify that the seed is always the same; each of the two calls will
17 # generate one error (as exception).
18 #
19 
20 #include "messageService.fcl"
21 
22 # Give this job a name.
23 process_name : SeedTestPredefinedOfs
24 
25 # Start form an empty source
26 source :
27 {
28  module_type : EmptyEvent
29  maxEvents : 2
30 }
31 
32 services :
33 {
34  message : @local::mf_interactive
35  RandomNumberGenerator: {}
36 
37  NuRandomService: {
38  policy : "preDefinedOffset"
39  baseSeed : 1
40  maxUniqueEngines : 20
41  checkRange : true
42  verbosity : 2
43  endOfJobSummary : true
44 
45  stest01 : {
46  a : 2
47  b : 4
48  }
49 
50  stest02 : {
51  a : 6
52  c : 2
53  }
54 
55  }
56 
57 }
58 
59 physics :
60 {
61  analyzers: {
62  stest01 : {
63  module_type : SeedTestPolicy
64  module_name : stest01
65  instanceNames : [ "a", "b" ]
66  }
67 
68  stest02 : {
69  module_type : SeedTestPolicy
70  module_name : stest02
71  instanceNames : [ "a", "c" ]
72  expectedErrors: 2
73  }
74 
75  }
76 
77  e1 : [stest01, stest02]
78 
79  end_paths : [e1]
80 
81 }