1 #include "services_dune.fcl"
2 #include "cry_dune.fcl"
3 #include "gen_ewcounterpair.fcl"
5 process_name: CosmicsGen
9 # Load the service that manages root files for histograms.
10 TFileService: { fileName: "cosmics_hist.root" }
13 RandomNumberGenerator: {} #ART native random number generator
14 FileCatalogMetadata: @local::art_file_catalog_mc
15 @table::dune35t_gen_services
18 #Start each new event with an empty event.
21 module_type: EmptyEvent
22 timestampPlugin: { plugin_type: "GeneratedEventTimestamp" }
23 maxEvents: 10 # Number of events to create
24 firstRun: 1 # Run number to use for this file
25 firstEvent: 1 # number of first event in the file
28 # Define and configure some modules to do work on each event.
29 # First modules are defined; they are scheduled later.
30 # Modules are grouped by type.
36 counterfilter: @local::dune35t_genextcounterfilter_ewcounterpair
41 generator: @local::dune35t_cry_single
42 rns: { module_type: "RandomNumberSaver" }
45 #define the producer and filter modules for this path, order matters,
46 #filters reject all following items. see lines starting physics.producers below
47 simulate: [ rns, generator, counterfilter ]
49 #define the output stream, there could be more than one if using filters
52 #trigger_paths is a keyword and contains the paths that modify the art::event,
53 #ie filters and producers
54 trigger_paths: [simulate]
56 #end_paths is a keyword and contains the paths that do not modify the art::Event,
57 #ie analyzers and output streams. these all run simultaneously
61 #block to define where the output goes. if you defined a filter in the physics
62 #block and put it in the trigger_paths then you need to put a SelectEvents: {SelectEvents: [XXX]}
63 #entry in the output stream you want those to go to, where XXX is the label of the filter module(s)
68 module_type: RootOutput
69 fileName: "prodcosmics_dune35t_onewindow_singleparticle_%tc_gen.root"
72 SelectEvents: [simulate]