gencosmics_test.fcl
Go to the documentation of this file.
1 #
2 # File: gencosmics_test.fcl
3 # Brief: cosmic ray generation test with standard geometry
4 # Author: Gianluca Petrillo (petrillo@fnal.gov)
5 # Date: February 24th, 2015
6 # Version: 1.0
7 #
8 # Cosmic ray generation test, with a "neutral" geometry.
9 #
10 # Changes:
11 # 20150224 (petrillo@fnal.gov) [v1.0]
12 # original version from prodcosmics.fcl, with ArgoNeuT geometry
13 #
14 
15 #include "services_argoneut.fcl"
16 #include "cry.fcl"
17 
18 process_name: CosmicsGen
19 
20 services:
21 {
22  # Load the service that manages root files for histograms.
23  TFileService: { fileName: "cosmics_hist.root" }
24  TimeTracker: {}
25  RandomNumberGenerator: {} #ART native random number generator
26  @table::argoneut_simulation_services
27 }
28 
29 #Start each new event with an empty event.
30 source:
31 {
32  module_type: EmptyEvent
33  timestampPlugin: { plugin_type: "GeneratedEventTimestamp" }
34  maxEvents: 10 # Number of events to create
35  firstRun: 1 # Run number to use for this file
36  firstEvent: 1 # number of first event in the file
37 }
38 
39 # Define and configure some modules to do work on each event.
40 # First modules are defined; they are scheduled later.
41 # Modules are grouped by type.
42 physics:
43 {
44 
45  producers:
46  {
47  generator: @local::argoneut_cry
48  rns: { module_type: "RandomNumberSaver" }
49  }
50 
51  #define the producer and filter modules for this path, order matters,
52  #filters reject all following items. see lines starting physics.producers below
53  simulate: [ generator, rns ]
54 
55  #define the output stream, there could be more than one if using filters
56  stream1: [ out1 ]
57 
58  #trigger_paths is a keyword and contains the paths that modify the art::event,
59  #ie filters and producers
60  trigger_paths: [simulate]
61 
62  #end_paths is a keyword and contains the paths that do not modify the art::Event,
63  #ie analyzers and output streams. these all run simultaneously
64  end_paths: [stream1]
65 }
66 
67 #block to define where the output goes. if you defined a filter in the physics
68 #block and put it in the trigger_paths then you need to put a SelectEvents: {SelectEvents: [XXX]}
69 #entry in the output stream you want those to go to, where XXX is the label of the filter module(s)
70 outputs:
71 {
72  out1:
73  {
74  module_type: RootOutput
75  fileName: "cosmics_gen.root" #default file name, can override from command line with -o or --output
76  }
77 }
78