switchOnTwoConditions_w.fcl
Go to the documentation of this file.
1 source: {
2  module_type: EmptyEvent
3  maxEvents: 20
4  firstRun: 1
5  numberEventsInRun: 10
6 }
7 
8 physics.e1: [o1]
9 
10 outputs: {
11 
12  o1: {
13  module_type: RootOutput
14  fileName : "out_r%r_%#.root"
15 
16  // The default granularity is 'Event'. So the conditions below
17  // mean that if the number of events written to the file is 7 OR one
18  // run (fragment) has been written to the file, switch to a new
19  // output file.
20  //
21  // We should therefore expect the following files with their
22  // associated contents:
23  //
24  // out_r1_1.root : Run 1 SubRun 0 Events: 1 through 7
25  // out_r1_2.root : Run 1 SubRun 0 Events: 8 through 10
26  // out_r2_1.root : Run 2 SubRun 0 Events: 1 through 7
27  // out_r2_2.root : Run 2 SubRun 0 Events: 8 through 10
28 
29  fileProperties: {
30  maxEvents: 7
31  maxRuns: 1
32  }
33  }
34 
35 }
36 
37 process_name: twoConditions