protoDUNE_g4.fcl
Go to the documentation of this file.
1 #include "services_dune.fcl"
2 #include "largeantmodules_dune.fcl"
3 #include "photpropservices_dune.fcl"
4 #include "opticaldetectormodules_dune.fcl"
5 
6 process_name: G4
7 
8 services:
9 {
10  # Load the service that manages root files for histograms.
11  TFileService: { fileName: "g4_protoDUNE_hist.root" }
12  TimeTracker: @local::dune_time_tracker
13  MemoryTracker: @local::dune_memory_tracker
14  RandomNumberGenerator: {} #ART native random number generator
15  FileCatalogMetadata: @local::art_file_catalog_mc
16  @table::protodune_simulation_services
17 }
18 
19 #services.LArG4Parameters.SkipWireSignalInTPCs: [0,3,4,7,8,11]
20 
21 #source is now a root file
22 source:
23 {
24  module_type: RootInput
25  maxEvents: 30000
26  fileNames: ["gen_protoDUNE.root"]
27 }
28 
29 # Define and configure some modules to do work on each event.
30 # First modules are defined; they are scheduled later.
31 # Modules are grouped by type.
32 physics:
33 {
34 
35  producers:
36  {
37  largeant: @local::dunefd_largeant
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: [ rns, largeant ]
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: "%ifb_g4.root"
66  dataTier: "simulated"
67  compressionLevel: 1
68  }
69 }
70 
71 physics.producers.largeant.ChargeRecoveryMargin: 2.5 # cm
72 services.NuRandomService.policy: "perEvent"