standard_g4_dune10kt_refactored.fcl
Go to the documentation of this file.
1 #include "LArG4_dune.fcl"
2 #include "IonAndScint_dune.fcl"
3 #include "elecdrift_dune.fcl"
4 #include "PDFastSim_dune.fcl"
5 #include "services_dune.fcl"
6 
7 process_name: G4
8 
9 services:
10 {
11  # Load the service that manages root files for histograms.
12  TFileService: { fileName: "g4_hist.root" }
13  TimeTracker: {}
14  MemoryTracker: {} # default is one
15  RandomNumberGenerator: {} #ART native random number generator
16  FileCatalogMetadata: @local::art_file_catalog_mc
17 
18  @table::dunefd_simulation_services_refactored
19 }
20 
21 
22 #services.LArG4Parameters.UseModBoxRecomb: true
23 
24 #source is now a root file
25 source:
26 {
27  module_type: RootInput
28  maxEvents: 10 # Number of events to create
29 }
30 
31 # Define and configure some modules to do work on each event.
32 # First modules are defined; they are scheduled later.
33 # Modules are grouped by type.
34 physics:
35 {
36 
37  producers:
38  {
39  largeant: @local::dunefd_larg4
40  IonAndScint: @local::dunefd_ionandscint
41  PDFastSim: @local::dunefd_pdfastsim
42  elecDrift: @local::dunefd_elecdrift
43  rns: { module_type: "RandomNumberSaver" }
44  }
45 
46  #define the producer and filter modules for this path, order matters,
47  #filters reject all following items. see lines starting physics.producers below
48  simulate: [ rns, largeant, IonAndScint, elecDrift, PDFastSim ]
49 
50  #define the output stream, there could be more than one if using filters
51  stream1: [ out1 ]
52 
53  #trigger_paths is a keyword and contains the paths that modify the art::event,
54  #ie filters and producers
55  trigger_paths: [simulate]
56 
57  #end_paths is a keyword and contains the paths that do not modify the art::Event,
58  #ie analyzers and output streams. these all run simultaneously
59  end_paths: [stream1]
60 }
61 
62 #block to define where the output goes. if you defined a filter in the physics
63 #block and put it in the trigger_paths then you need to put a SelectEvents: {SelectEvents: [XXX]}
64 #entry in the output stream you want those to go to, where XXX is the label of the filter module(s)
65 outputs:
66 {
67  out1:
68  {
69  module_type: RootOutput
70  fileName: "%ifb_g4.root"
71  dataTier: "simulated"
72  compressionLevel: 1
73  }
74 }
75 
76