test_optical_digi_dune35t.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 
9 
10 
11 process_name: SinglesGen
12 
13 services:
14 {
15  # Load the service that manages root files for histograms.
16  TFileService: { fileName: "test_optical_digi_dune35t_hist.root" }
17  TimeTracker: {}
18  RandomNumberGenerator: {} #ART native random number generator
19  @table::dune35t_simulation_services_legacy
20  message: @local::standard_info
21 }
22 
23 services.OpDigiProperties: @local::dune35t_opdigiproperties
24 
25 
26 
27 #Start each new event with an empty event.
28 source:
29 {
30  module_type: EmptyEvent
31  timestampPlugin: { plugin_type: "GeneratedEventTimestamp" }
32  maxEvents: 1 # Number of events to create
33  firstRun: 1 # Run number to use for this file
34  firstEvent: 1 # number of first event in the file
35 }
36 
37 # Define and configure some modules to do work on each event.
38 # First modules are defined; they are scheduled later.
39 # Modules are grouped by type.
40 physics:
41 {
42 
43  producers:
44  {
45  generator: @local::dune35t_singlep
46  largeant: @local::dune35t_largeant
47  opdigi: @local::dune35t_opdigi # simple digitizer with no noise and high saturation
48  rns: { module_type: "RandomNumberSaver" }
49  }
50 
51  analyzers:
52  {
53  }
54 
55 
56  #define the producer and filter modules for this path, order matters,
57  #filters reject all following items. see lines starting physics.producers below
58  simulate: [ generator, largeant, opdigi, rns ]
59  analyzeIt: [ ]
60 
61  #define the output stream, there could be more than one if using filters
62  stream1: [ out1 ]
63 
64  #trigger_paths is a keyword and contains the paths that modify the art::event,
65  #ie filters and producers
66  trigger_paths: [simulate]
67 
68  #end_paths is a keyword and contains the paths that do not modify the art::Event,
69  #ie analyzers and output streams. these all run simultaneously
70  end_paths: [analyzeIt, stream1]
71 }
72 
73 #block to define where the output goes. if you defined a filter in the physics
74 #block and put it in the trigger_paths then you need to put a SelectEvents: {SelectEvents: [XXX]}
75 #entry in the output stream you want those to go to, where XXX is the label of the filter module(s)
76 outputs:
77 {
78  out1:
79  {
80  module_type: RootOutput
81  fileName: "test_optical_digi_dune35t_gen.root" #default file name, can override from command line with -o or --output
82  }
83 }
84 
85 
86 
87 
88 #
89 # Change the properties of the generated singles
90 #
91 
92 #physics.producers.generator.Theta0XZ: [ 0 ]
93 #physics.producers.generator.Theta0YZ: [ 0 ]
94 #physics.producers.generator.SigmaThetaXZ: [ 0 ]
95 #physics.producers.generator.SigmaThetaYZ: [ 0 ]
96 
97 #physics.producers.generator.X0: [ 50.0 ] # Middle in X
98 #physics.producers.generator.SigmaX: [ 1.0 ] # fraction with uniform
99 #physics.producers.generator.Y0: [ 1.0 ] # slight offset in y
100 #physics.producers.generator.SigmaY: [ 50.0 ] # fraction with uniform
101 #physics.producers.generator.Z0: [ 0.0 ]
102 #physics.producers.generator.SigmaZ: [ 0.0 ]
103 #physics.producers.generator.PDist: 0 # uniform
104 #physics.producers.generator.PosDist: 0 # uniform
105 #physics.producers.generator.ThetaDist: 0 # uniform