reject_events_t.fcl
Go to the documentation of this file.
1 source: {
2  module_type: EmptyEvent
3  maxEvents: 20
4 }
5 
6 services.scheduler.wantSummary: true
7 
8 physics: {
9  filters: {
10  onlyEvens: {
11  module_type: Prescaler
12  prescaleFactor: 2
13  prescaleOffset: 0
14  }
15  onlyOdds: {
16  module_type: Prescaler
17  prescaleFactor: 2
18  prescaleOffset: 1
19  }
20  everyFour: {
21  module_type: Prescaler
22  prescaleFactor: 4
23  prescaleOffset: 0
24  }
25  }
26  path_evens: [onlyEvens]
27  path_odds: [onlyOdds]
28  path_every_fourth: [everyFour]
29 
30  analyzers: {
31  allEvents: {
32  module_type: EventCounter
33  expected: 20
34  }
35  evenEvents: {
36  module_type: EventCounter
37  SelectEvents: [path_evens]
38  expected: 10
39  }
40  oddEvents: {
41  module_type: EventCounter
42  RejectEvents: [path_evens]
43  expected: 10
44  }
45  reallyJustOddEvents: {
46  module_type: EventCounter
47  SelectEvents: [path_odds]
48  RejectEvents: [path_evens]
49  expected: 10
50  }
51  evensButMultiplesOfFour: {
52  module_type: EventCounter
53  SelectEvents: [path_evens]
54  RejectEvents: [path_every_fourth]
55  expected: 5 # events 2, 6, 10, 14, 18
56  }
57  noEventsLogicalAnd: {
58  module_type: EventCounter
59  # Remember de Morgan's law:
60  # not (!path_evens || !path_odds) = path_evens && path_odds
61  RejectEvents: ["!path_evens", "!path_odds"]
62  expected: 0
63  }
64  }
65  run_analyzers: [allEvents, evenEvents, oddEvents, reallyJustOddEvents, evensButMultiplesOfFour, noEventsLogicalAnd]
66 }