prodmarley.fcl
Go to the documentation of this file.
1 #include "geometry.fcl"
2 #include "marley.fcl"
3 #include "seedservice.fcl"
4 
5 process_name: MarleyGen
6 
7 services:
8 {
9  # Load the service that manages root files for histograms.
10  TFileService: { fileName: "marley_hist.root" }
11  TimeTracker: {}
12 
13  RandomNumberGenerator: {} #ART native random number generator
14  NuRandomService: @local::random_NuRandomService
15 
16  @table::standard_geometry_services # from geometry.fcl
17 }
18 
19 
20 #Start each new event with an empty event.
21 source:
22 {
23  module_type: EmptyEvent
24  timestampPlugin: { plugin_type: "GeneratedEventTimestamp" }
25  maxEvents: 100 # Number of events to create
26  firstRun: 1 # Run number to use for this file
27  firstEvent: 1 # Number of first event in the file
28 }
29 
30 # Define and configure some modules to do work on each event.
31 # First modules are defined; they are scheduled later.
32 # Modules are grouped by type.
33 physics:
34 {
35 
36  producers:
37  {
38  # Generate events using MARLEY
39  generator: @local::standard_marley
40  # Save the state of the LArSoft random number generators
41  rns: { module_type: "RandomNumberSaver" }
42  }
43 
44  # define the producer and filter modules for this path, order matters, filters
45  # reject all following items. see lines starting physics.producers below
46  simulate: [ generator, rns ]
47 
48  # define the output stream, there could be more than one if using filters
49  stream1: [ out1 ]
50 
51  # trigger_paths is a keyword and contains the paths that modify the
52  # art::event, ie filters and producers
53  trigger_paths: [simulate]
54 
55  # end_paths is a keyword and contains the paths that do not modify the
56  # art::Event, ie analyzers and output streams. these all run simultaneousy
57  end_paths: [stream1]
58 }
59 
60 # block to define where the output goes. if you defined a filter in the
61 # physics block and put it in the trigger_paths then you need to put a
62 # SelectEvents: {SelectEvents: [XXX]} entry in the output stream you want those
63 # to go to, where XXX is the label of the filter module(s)
64 outputs:
65 {
66  out1:
67  {
68  module_type: RootOutput
69  # default file name, can override from command line with -o or --output
70  fileName: "marley_gen.root"
71  }
72 }