run_genericCRT.fcl
Go to the documentation of this file.
1 #
2 # File: standard_detsim_sbnd.fcl
3 # Purpose: Simulates readout response to induced and collected charge
4 # Author: Gianluca Petrillo (petrillo@fnal.gov)
5 # Date: December 23, 2016
6 # Version: 1.1
7 #
8 # This configuration runs event generation, simulation of propagation through
9 # matter and readout simulation.
10 #
11 # Input:
12 # - output from LArG4 module (in particular, SimChannels)
13 #
14 # Output:
15 # - daq: RawDigit collection with simulated TPC readout response as waveforms
16 # - includes the whole input data
17 #
18 #
19 # Dependencies:
20 # - uses the bundle of SBND simulation services for readout simulation
21 #
22 # Changes:
23 # 20160601 (petrillo@fnal.gov) [v1.0]
24 # first version
25 #
26 # 20161223 (petrillo@fnal.gov) [v1.1]
27 # - adopted shared root output configuration
28 #
29 #
30 
31 #
32 # services
33 #
34 
35 #include "simulationservices_sbnd.fcl"
36 #include "messages_sbnd.fcl"
37 
38 #
39 # modules
40 #
41 
42 #include "detsimmodules_sbnd.fcl"
43 #include "crtsimmodules_sbnd.fcl"
44 #include "rootoutput_sbnd.fcl"
45 #include "opdetdigitizer_sbnd.fcl"
46 #include "simulationservices_sbnd.fcl"
47 #include "config_genericCRT.fcl"
48 
49 process_name: CRTTranslation
50 
51 services:
52 {
53  TFileService: { fileName: @local::sbnd_tfileoutput.fileName }
54  @table::sbnd_detsim_services
55  FileCatalogMetadata: @local::sbnd_file_catalog_mc
56  AuxDetExptGeoHelperInterface: { service_provider: "sbndcode/CRT/CRTGeometryHelper" }
57  AuxDetGeometry: { @table::sbnd_geo_source }
58 }
59 
60 
61 source:
62 {
63  module_type: RootInput
64 }
65 
66 
67 # Define and configure some modules to do work on each event.
68 # First modules are defined; they are scheduled later.
69 # Modules are grouped by type.
70 physics:
71 {
72 
73  producers:
74  {
75  rns: { module_type: "RandomNumberSaver" }
76  daq: @local::sbnd_simwire
77  crt: @local::sbnd_genericCRT
78  opdaq: @local::sbnd_opdetdigitizer
79  }
80 
81  #define the producer and filter modules for this path, order matters,
82  simulate: [ rns, crt, daq, opdaq]
83  # simulate: [ rns, daq, opdaq]
84 
85  #define the output stream, there could be more than one if using filters
86  stream1: [ out1 ]
87 
88  #ie analyzers and output streams. these all run simultaneously
89  end_paths: [stream1]
90 }
91 
92 # block to define where the output goes. if you defined a filter in the physics
93 # block and put it in the trigger_paths then you need to put a SelectEvents: {SelectEvents: [XXX]}
94 # entry in the output stream you want those to go to, where XXX is the label of the filter module(s)
95 outputs:
96 {
97  out1:
98  {
99  @table::sbnd_rootoutput # inherit shared settings
100  dataTier: "simulated"
101  compressionLevel: 1 # TODO better to use no compression here and Huffman encoding
102  }
103 }
104 
105 physics.producers.daq.DriftEModuleLabel: "simdrift"
106 physics.producers.opdaq.InputModule: "PDFastSim"
107