testPredefinedSeedErr02.fcl
Go to the documentation of this file.
1 # Test the seeds service.
2 #
3 # Policy: preDefinedSeed
4 # Valid: no (missing configuration for a module label)
5 # Will succeed: yes
6 # Purpose: check unexpected module labels and engine instance names
7 #
8 
9 #include "messageService.fcl"
10 
11 # Give this job a name.
12 process_name : SeedTestPredefinedErr
13 
14 # Start form an empty source
15 source :
16 {
17  module_type : EmptyEvent
18  maxEvents : 2
19 }
20 
21 services :
22 {
23  message : @local::mf_interactive
24  RandomNumberGenerator: {}
25 
26  NuRandomService: {
27  policy : "preDefinedSeed"
28  verbosity : 2
29  endOfJobSummary : false
30 
31  stest01 : 3
32 
33  stest02 : {
34  a : 5
35  b : 7
36  }
37  }
38 
39 }
40 
41 physics :
42 {
43  analyzers: {
44  stest01 : {
45  module_type : SeedTestPolicy
46  module_name : stest01
47  instanceNames : [ "" ]
48  }
49 
50  stestUnexpected : {
51  module_type : SeedTestPolicy
52  module_name : stestUnexpected
53  instanceNames : [ "a", "b" ]
54  expectedErrors: 4
55  }
56 
57  }
58 
59  e1 : [stest01, stestUnexpected]
60 
61  end_paths : [e1]
62 
63 }