rungeant4.fcl
Go to the documentation of this file.
1 #NuTools Services
2 #include "magfield.fcl"
3 #include "seedservice.fcl"
4 
5 #GArSoft Services
6 #include "DetectorClocks.fcl"
7 #include "DetectorProperties.fcl"
8 #include "GArProperties.fcl"
9 #include "Geometry.fcl"
10 #include "RunHistory.fcl"
11 #include "ECALProperties.fcl"
12 
13 #Plugins
14 #include "GArG4.fcl"
15 
16 process_name: GenieGen
17 
18 services:
19 {
20  # Load the service that manages root files for histograms.
21  TFileService: { fileName: "prodgenie_hist.root" }
22  TimeTracker: {}
23  RandomNumberGenerator: {} #ART native random number generator
24  #See Geometry.fcl for the list of geometries available
25  GeometryGAr: @local::nd_hall_mpd_only_SPYv3_geo
26  ExptGeoHelperInterface: @local::standard_geometry_helper
27  DetectorClocks: @local::standard_clocks
28  DetectorProperties: @local::standard_detproperties
29  GArProperties: @local::standard_garproperties
30  NuRandomService: @local::standard_NuRandomService
31  MagneticField: @local::standard_mag_garsoft
32 #RunHistory: @local::standard_runhistory
33 ECALProperties: @local::standard_ecalproperties
34  IFDH: {}
35 }
36 
37 #Start each new event with an empty event.
38 source:
39 {
40  module_type: RootInput
41 # timestampPlugin: { plugin_type: "GeneratedEventTimestamp" }
42 # maxEvents: 10 # Number of events to create
43 # firstRun: 1 # Run number to use for this file
44 # firstEvent: 1 # number of first event in the file
45 }
46 
47 # Define and configure some modules to do work on each event.
48 # First modules are defined; they are scheduled later.
49 # Modules are grouped by type.
50 physics:
51 {
52 
53  producers:
54  {
55  geant: @local::standard_geant
56  rns: { module_type: "RandomNumberSaver" }
57  }
58 
59  #define the producer and filter modules for this path, order matters,
60  #filters reject all following items. see lines starting physics.producers below
61  simulate: [ geant, rns ]
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 }
71 
72 #block to define where the output goes. if you defined a filter in the physics
73 #block and put it in the trigger_paths then you need to put a SelectEvents: {SelectEvents: [XXX]}
74 #entry in the output stream you want those to go to, where XXX is the label of the filter module(s)
75 outputs:
76 {
77  out1:
78  {
79  module_type: RootOutput
80  fileName: "output_geant.root" #default file name, can override from command line with -o or --output
81  }
82 }