LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
genie_reweight_uboone.fcl
Go to the documentation of this file.
1 #include "services_microboone.fcl"
2 #include "time_memory_tracker_microboone.fcl"
3 #include "seedservice_microboone.fcl"
4 #include "genie_eventweight.fcl"
5 
6 process_name: GenieEventWeight
7 
8 services:
9 {
10  scheduler: { defaultExceptions: false } # Make all uncaught exceptions fatal.
11  # Load the service that manages root files for histograms.
12  TFileService: { fileName: "genie_reweight_hist.root" }
13  TimeTracker: @local::microboone_time_tracker
14  MemoryTracker: @local::microboone_memory_tracker
15  RandomNumberGenerator: {} #ART native random number generator
16  message: @local::microboone_message_services_prod_debug
17  FileCatalogMetadata: @local::art_file_catalog_mc
18  @table::microboone_simulation_services
19 
20 }
21 
22 services.DetectorPropertiesService.NumberTimeSamples: 6400
23 services.DetectorPropertiesService.ReadOutWindowSize: 6400
24 services.DetectorClocksService.InheritClockConfig: false
25 services.DetectorClocksService.TriggerOffsetTPC: -0.400e3
26 
27 #source is now a root file
28 source:
29 {
30  module_type: RootInput
31  maxEvents: -1 # Number of events to create
32 }
33 
34 # Define and configure some modules to do work on each event.
35 # First modules are defined; they are scheduled later.
36 # Modules are grouped by type.
37 physics:
38 {
39  producers:{
40  genieeventweight: @local::genie_eventweight
41  rns: { module_type: "RandomNumberSaver" }
42  }
43 
44  #define the output stream, there could be more than one if using filters
45  stream1: [ out1 ]
46 
47  #define the producer and filter modules for this path, order matters,
48  #filters reject all following items. see lines starting physics.producers below
49  simulate: [ rns, genieeventweight ]
50  ana: [ ]
51 
52  trigger_paths: [simulate]
53 
54  #end_paths is a keyword and contains the paths that do not modify the art::Event,
55  #ie analyzers and output streams. these all run simultaneously
56  end_paths: [stream1,ana]
57 }
58 
59 #block to define where the output goes. if you defined a filter in the physics
60 #block and put it in the trigger_paths then you need to put a SelectEvents: {SelectEvents: [XXX]}
61 #entry in the output stream you want those to go to, where XXX is the label of the filter module(s)
62 outputs:
63 {
64  out1:
65  {
66  module_type: RootOutput
67  fileName: "%ifb_%tc_rewgt.root" #default file name, can override from command line with -o or --output
68  dataTier: "reconstructed"
69  compressionLevel: 1
70  }
71 }