protodune_optical_tutorial_digi.fcl
Go to the documentation of this file.
1 #include "services_dune.fcl"
2 #include "singles_dune.fcl"
3 #include "largeantmodules_dune.fcl"
4 #include "detsimmodules_dune.fcl"
5 #include "mccheatermodules.fcl"
6 #include "photpropservices_dune.fcl"
7 #include "opticaldetectormodules_dune.fcl"
8 #include "opticaldetectorservices_dune.fcl"
9 
10 
11 process_name: OpticalDigitization
12 
13 services:
14 {
15  # Load the service that manages root files for histograms.
16  TFileService: { fileName: "protodune_optical_tutorial_digi_hist.root" }
17  TimeTracker: {}
18  RandomNumberGenerator: {} #ART native random number generator
19  message: @local::standard_info
20  @table::protodune_simulation_services
21 }
22 
23 
24 #source is now a root file
25 source:
26 {
27  module_type: RootInput
28  maxEvents: 10 # Number of events to create
29  #specify from command line with -s or --source
30 
31 }
32 
33 
34 # Define and configure some modules to do work on each event.
35 # First modules are defined; they are scheduled later.
36 # Modules are grouped by type.
37 physics:
38 {
39 
40  producers:
41  {
42  opdigi: @local::dunefd_opdigi_threegang # simple digitizer with no noise and high saturation
43  rns: { module_type: "RandomNumberSaver" }
44  }
45 
46  analyzers:
47  {
48  opdigiana: @local::dunefd_opdigiana
49  #ophitana: @local::dunefd_ophitana
50  }
51 
52 
53  #define the producer and filter modules for this path, order matters,
54  #filters reject all following items. see lines starting physics.producers below
55  simulate: [ opdigi, rns ]
56  analyzeIt: [ opdigiana]
57 
58  #define the output stream, there could be more than one if using filters
59  stream1: [ out1 ]
60 
61  #trigger_paths is a keyword and contains the paths that modify the art::event,
62  #ie filters and producers
63  trigger_paths: [simulate]
64 
65  #end_paths is a keyword and contains the paths that do not modify the art::Event,
66  #ie analyzers and output streams. these all run simultaneously
67  end_paths: [analyzeIt, stream1]
68 }
69 
70 #block to define where the output goes. if you defined a filter in the physics
71 #block and put it in the trigger_paths then you need to put a SelectEvents: {SelectEvents: [XXX]}
72 #entry in the output stream you want those to go to, where XXX is the label of the filter module(s)
73 outputs:
74 {
75  out1:
76  {
77  module_type: RootOutput
78  fileName: "protodune_optical_tutorial_digi_gen.root"
79  #default file name, can override from command line with -o or --output
80  }
81 }