2 #include "magfield.fcl"
3 #include "seedservice.fcl"
6 #include "DetectorClocks.fcl"
7 #include "DetectorProperties.fcl"
8 #include "GArProperties.fcl"
9 #include "Geometry.fcl"
10 # #include "RunHistory.fcl"
11 #include "ECALProperties.fcl"
14 #include "CosmicsGen.fcl"
18 process_name: CosmicsGen
22 # Load the service that manages root files for histograms.
23 TFileService: { fileName: "prodcosmics_hist.root" }
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
37 #Start each new event with an empty event.
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
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.
55 generator: @local::standard_cry
56 geant: @local::standard_geant
57 rns: { module_type: "RandomNumberSaver" }
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 ]
64 #define the output stream, there could be more than one if using filters
67 #trigger_paths is a keyword and contains the paths that modify the ::art::event,
68 #ie filters and producers
69 trigger_paths: [simulate]
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)
80 module_type: RootOutput
81 fileName: "cosmics_gen.root" #default file name, can override from command line with -o or --output