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