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