LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
genie_reweight_generic.fcl
Go to the documentation of this file.
1 #include "seedservice.fcl"
2 #include "genie_eventweight.fcl"
3 
4 process_name: GenieEventWeightTest
5 
6 services: {
7  # Make all uncaught exceptions fatal.
8  scheduler: { defaultExceptions: false }
9 
10  # Provides random numbers needed for the "multisim" reweighting strategy
11  NuRandomService: @local::random_NuRandomService
12 
13  # art native random number generator
14  RandomNumberGenerator: {}
15 
16  # NOTE: the GenieEventWeight class currently does not make any analysis
17  # histograms. It might be useful to add this functionality at some point for
18  # diagnostic purposes.
19  # Load the service that manages root files for histograms.
20  #TFileService: { fileName: "genie_reweight_hist.root" }
21 }
22 
23 #source is now a root file
24 source:
25 {
26  module_type: RootInput
27  maxEvents: -1 # Number of events to create (-1 means "process all of them")
28 }
29 
30 # Define and configure some modules to do work on each event.
31 # First modules are defined; they are scheduled later.
32 # Modules are grouped by type.
33 physics:
34 {
35  producers: {
36  genieeventweightTest: @local::genie_eventweight
37  rns: { module_type: "RandomNumberSaver" }
38  }
39 
40  # Define the output stream, there could be more than one if using filters
41  stream1: [ out1 ]
42 
43  # Define the producer and filter modules for this path, order matters,
44  # filters reject all following items.
45  simulate: [ rns, genieeventweightTest ]
46 
47  trigger_paths: [ simulate ]
48 
49  # end_paths is a keyword and contains the paths that do not modify the
50  # art::Event, i.e., analyzers and output streams. These all run simultaneously
51  end_paths: [ stream1 ]
52 }
53 
54 # Block to define where the output goes. If you defined a filter in the physics
55 # block and put it in the trigger_paths then you need to put a SelectEvents:
56 # {SelectEvents: [XXX]}
57 # Entry in the output stream you want those to go to, where XXX is the label of
58 # the filter module(s)
59 outputs: {
60  out1: {
61  module_type: RootOutput
62  # default file name, can override from command line with -o or --output
63  fileName: "%ifb_%tc_rewgt.root"
64  dataTier: "reconstructed"
65  compressionLevel: 1
66  }
67 }