vdcb_tde_g4.fcl
Go to the documentation of this file.
1 #include "LArG4.fcl"
2 #include "IonAndScint_dune.fcl"
3 #include "elecdrift_dune.fcl"
4 #include "PDFastSim_dune.fcl"
5 #include "services_vdcoldbox.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  # the correct config should be added to dune/Simulation/larg4services_dune.fcl
19  LArG4Detector: {
20  category : "world"
21  gdmlFileName_ : @local::dunevdcb_geo.GDML
22  volumeNames : [ "volTPCActive" ]
23  stepLimits : [0.4]
24 }
25  @table::common_larg4_services
26  @table::vdcb_services
27  @table::vdcb_sim_base_services
28 } # end services
29 
30 ##services.OpDetResponseInterface.QuantumEfficiency: 0.001
31 
32 #source is now a root file
33 source:
34 {
35  module_type: RootInput
36  maxEvents: -1 # Number of events to create
37 }
38 
39 # Define and configure some modules to do work on each event.
40 # First modules are defined; they are scheduled later.
41 # Modules are grouped by type.
42 physics:
43 {
44 
45  producers:
46  {
47  largeant: @local::vdcb_tde_larg4
48  IonAndScint: @local::vdcb_tde_ionandscint
49  IonAndScintExternal: @local::vdcb_tde_ionandscint_external
50  elecDrift: @local::vdcb_tde_elecdrift
51  PDFastSimAr: @local::vdcb_tde_pdfastsim_par_ar_fastonly
52  PDFastSimArExternal: @local::vdcb_tde_pdfastsim_par_ar_external_fastonly
53 ## PDFastSimXe: @local::vdcb_tde_pdfastsim_par_xe
54 ## PDFastSimXeExternal: @local::vdcb_tde_pdfastsim_par_xe_external
55  rns: { module_type: "RandomNumberSaver" }
56  }
57 
58  #define the producer and filter modules for this path, order matters,
59  #filters reject all following items. see lines starting physics.producers below
60  simulate: [ rns, largeant, IonAndScint, IonAndScintExternal, elecDrift, PDFastSimAr, PDFastSimArExternal ]
61 # simulate: [ rns, largeant , IonAndScint, IonAndScintExternal, elecDrift, PDFastSimAr, PDFastSimXe, PDFastSimArExternal, PDFastSimXeExternal ]
62 
63  #define the output stream, there could be more than one if using filters
64  stream1: [ out1 ]
65 
66  #trigger_paths is a keyword and contains the paths that modify the art::event,
67  #ie filters and producers
68  trigger_paths: [simulate]
69 
70  #end_paths is a keyword and contains the paths that do not modify the art::Event,
71  #ie analyzers and output streams. these all run simultaneously
72  end_paths: [stream1]
73 }
74 
75 
76 
77 #block to define where the output goes. if you defined a filter in the physics
78 #block and put it in the trigger_paths then you need to put a SelectEvents: {SelectEvents: [XXX]}
79 #entry in the output stream you want those to go to, where XXX is the label of the filter module(s)
80 outputs:
81 {
82  out1:
83  {
84  module_type: RootOutput
85  fileName: "%ifb_g4.root"
86  dataTier: "simulated"
87  compressionLevel: 1
88  }
89 }
90 
91