prodcosmics_corsika_protodunedp_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 
5 
6 process_name: G4
7 
8 services: @local::protodunedphase_simulation_services_legacy
9 
10 # Load the service that manages root files for histograms.
11 services.TFileService: { fileName: "cosmics_corsika_rotation_hist.root" }
12 services.TimeTracker: {}
13 services.MemoryTracker: { } # default is one
14 services.RandomNumberGenerator: {} #ART native random number generator
15 services.Geometry: @local::protodunedphase_geo
16 services.DetectorPropertiesService: @local::protodunedphase_detproperties
17 
18 #source is now a root file
19 source: {
20  module_type: RootInput
21  maxEvents: 100 # Number of events to create
22 }
23 
24 
25 # Define and configure some modules to do work on each event.
26 # First modules are defined; they are scheduled later.
27 # Modules are grouped by type.
28 physics:
29 {
30 
31  producers:
32  {
33  rns: { module_type: "RandomNumberSaver" }
34  largeant: @local::dunefd_largeant
35  }
36 
37  #define the producer and filter modules for this path, order matters,
38  #filters reject all following items. see lines starting physics.producers below
39  simulate: [ rns,
40  largeant
41  ]
42 
43  #define the output stream, there could be more than one if using filters
44  stream1: [ out1 ]
45 
46  #trigger_paths is a keyword and contains the paths that modify the art::event,
47  #ie filters and producers
48  trigger_paths: [simulate]
49 
50  #end_paths is a keyword and contains the paths that do not modify the art::Event,
51  #ie analyzers and output streams. these all run simultaneously
52  end_paths: [stream1]
53 }
54 
55 #block to define where the output goes. if you defined a filter in the physics
56 #block and put it in the trigger_paths then you need to put a
57 SelectEvents: {SelectEvents: [XXX]}
58 #entry in the output stream you want those to go to, where XXX is the label of the filter module(s)
59 outputs:
60 {
61  out1:
62  {
63  module_type: RootOutput
64  fileName: "%ifb_g4.root" #default file name, can override from command line with -o or --output
65  dataTier: "cosmic-detsim"
66  compressionLevel: 1
67  }
68 }
69 
70 services.DetectorPropertiesService.Electronlifetime: 3000.0 #in us
71 services.LArG4Parameters.MinNumberOfElCluster: 20
72 
73 services.PhotonVisibilityService: @local::protodunedp_photonvisibilityservice
74 services.PhotonVisibilityService.Interpolate: true
75 
76