prodcosmics_CORSIKA_CMC.fcl
Go to the documentation of this file.
1 #include "services_microboone.fcl"
2 #include "CORSIKAGen.fcl"
3 
4 process_name: CORSIKAGen
5 
6 services:
7 {
8  # Load the service that manages root files for histograms.
9  TFileService: { fileName: "cosmics_hist.root" }
10  TimeTracker: {}
11  RandomNumberGenerator: {} #ART native random number generator
12  @table::microboone_simulation_services
13 }
14 
15 #Start each new event with an empty event.
16 source:
17 {
18  module_type: EmptyEvent
19  timestampPlugin: { plugin_type: "GeneratedEventTimestamp" }
20  maxEvents: 10 # Number of events to create
21  firstRun: 1 # Run number to use for this file
22  firstEvent: 1 # number of first event in the file
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  generator: @local::standard_CORSIKAGen_CMC
34  rns: { module_type: "RandomNumberSaver" }
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: [ generator, rns]
40 
41  #define the output stream, there could be more than one if using filters
42  stream1: [ out1 ]
43 
44  #trigger_paths is a keyword and contains the paths that modify the art::event,
45  #ie filters and producers
46  trigger_paths: [simulate]
47 
48  #end_paths is a keyword and contains the paths that do not modify the art::Event,
49  #ie analyzers and output streams. these all run simultaneously
50  end_paths: [stream1]
51 }
52 
53 #block to define where the output goes. if you defined a filter in the physics
54 #block and put it in the trigger_paths then you need to put a SelectEvents: {SelectEvents: [XXX]}
55 #entry in the output stream you want those to go to, where XXX is the label of the filter module(s)
56 outputs:
57 {
58  out1:
59  {
60  module_type: RootOutput
61  fileName: "corsika_gen.root" #default file name, can override from command line with -o or --output
62  }
63 }
64