prodcosmics.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 "CosmicsGen.fcl"
15 #include "GArG4.fcl"
16 
17 
18 process_name: CosmicsGen
19 
20 services:
21 {
22  # Load the service that manages root files for histograms.
23  TFileService: { fileName: "prodcosmics_hist.root" }
24  TimeTracker: {}
25  RandomNumberGenerator: {} #ART native random number generator
26  GeometryGAr: @local::standard_geo
27  ExptGeoHelperInterface: @local::standard_geometry_helper
28  DetectorClocks: @local::standard_clocks
29  DetectorProperties: @local::standard_detproperties
30  GArProperties: @local::standard_garproperties
31  NuRandomService: @local::standard_NuRandomService
32  MagneticField: @local::standard_mag_garsoft
33 # RunHistory: @local::standard_runhistory
34  ECALProperties: @local::standard_ecalproperties
35 }
36 
37 #Start each new event with an empty event.
38 source:
39 {
40  module_type: EmptyEvent
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  generator: @local::standard_cry
56  geant: @local::standard_geant
57  rns: { module_type: "RandomNumberSaver" }
58  }
59 
60  #define the producer and filter modules for this path, order matters,
61  #filters reject all following items. see lines starting physics.producers below
62  simulate: [ generator, geant, rns ]
63 
64  #define the output stream, there could be more than one if using filters
65  stream1: [ out1 ]
66 
67  #trigger_paths is a keyword and contains the paths that modify the ::art::event,
68  #ie filters and producers
69  trigger_paths: [simulate]
70 
71 }
72 
73 #block to define where the output goes. if you defined a filter in the physics
74 #block and put it in the trigger_paths then you need to put a SelectEvents: {SelectEvents: [XXX]}
75 #entry in the output stream you want those to go to, where XXX is the label of the filter module(s)
76 outputs:
77 {
78  out1:
79  {
80  module_type: RootOutput
81  fileName: "cosmics_gen.root" #default file name, can override from command line with -o or --output
82  }
83 }
84