protoDUNE_g4_wirecell.fcl
Go to the documentation of this file.
1 # Modified by Jingbo Wang (jiowang@ucdavis.edu) on April 17, 2019
2 
3 #include "services_dune.fcl"
4 #include "largeantmodules_dune.fcl"
5 #include "photpropservices_dune.fcl"
6 #include "opticaldetectormodules_dune.fcl"
7 
8 process_name: G4
9 
10 services:
11 {
12  # Load the service that manages root files for histograms.
13  TFileService: { fileName: "gen_protoDUNE_hist.root" }
14  TimeTracker: {}
15  MemoryTracker: {}
16  RandomNumberGenerator: {} #ART native random number generator
17  FileCatalogMetadata: @local::art_file_catalog_mc
18  @table::protodune_simulation_services
19 }
20 
21 services.LArG4Parameters.SkipWireSignalInTPCs: [0,3,4,7,8,11]
22 
23 #source is now a root file
24 source:
25 {
26  module_type: RootInput
27  maxEvents: 30000
28  fileNames: ["gen_protoDUNE_g4.root"]
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_largeant
40  ionization: {
41  module_type: "larsim/ElectronDrift/ShiftEdepSCE"
42  EDepTag: "largeant:TPCActive"
43  MakeAnaTree: false
44  }
45  rns: { module_type: "RandomNumberSaver" }
46  }
47 
48  #define the producer and filter modules for this path, order matters,
49  #filters reject all following items. see lines starting physics.producers below
50  simulate: [ rns, largeant, ionization ]
51 
52  #define the output stream, there could be more than one if using filters
53  stream1: [ out1 ]
54 
55  #trigger_paths is a keyword and contains the paths that modify the art::event,
56  #ie filters and producers
57  trigger_paths: [simulate]
58 
59  #end_paths is a keyword and contains the paths that do not modify the art::Event,
60  #ie analyzers and output streams. these all run simultaneously
61  end_paths: [stream1]
62 }
63 
64 #block to define where the output goes. if you defined a filter in the physics
65 #block and put it in the trigger_paths then you need to put a SelectEvents: {SelectEvents: [XXX]}
66 #entry in the output stream you want those to go to, where XXX is the label of the filter module(s)
67 outputs:
68 {
69  out1:
70  {
71  module_type: RootOutput
72  fileName: "%ifb_g4.root"
73  dataTier: "simulated"
74  compressionLevel: 1
75  }
76 }
77 
78 #wirecell parameters
79 services.LArG4Parameters.FillSimEnergyDeposits: true
80 services.SpaceCharge.EnableSimEfieldSCE: true
81 services.SpaceCharge.EnableSimSpatialSCE: true
82 services.SpaceCharge.EnableSimulationSCE: true
83 services.SpaceCharge.RepresentationType: Voxelized
84 services.SpaceCharge.InputFilename: "SpaceChargeProtoDUNE/dispOutput_ProtoDUNESP_withFlowNegX_E500.root"
85 
86