filterMUSUN_dune10kt_legacy.fcl
Go to the documentation of this file.
1 #include "services_dune.fcl"
2 #include "MUSUN.fcl"
3 
4 process_name: MUSUNFilter
5 
6 services:
7 {
8  # Load the service that manages root files for histograms.
9  TFileService: { fileName: "MUSUN_filter_hist.root" }
10  TimeTracker: {}
11  MemoryTracker: { } # default is one
12  RandomNumberGenerator: {} #ART native random number generator
13  FileCatalogMetadata: @local::art_file_catalog_mc
14  @table::dunefd_simulation_services_legacy
15  Geometry: @local::dune10kt_geo
16 }
17 
18 source: {
19  module_type: RootInput
20  maxEvents: -1 # Number of events to create
21 }
22 
23 # Define and configure some modules to do work on each event.
24 # First modules are defined; they are scheduled later.
25 # Modules are grouped by type.
26 physics:
27 {
28  filters: {
29  cosmicfilter: { module_type: "CosmicFilter" }
30  }
31  #define the output stream, there could be more than one if using filters
32  stream1: [ out1 ]
33 
34  fpath: [ cosmicfilter ]
35  #trigger_paths is a keyword and contains the paths that modify the art::event,
36  #ie filters and producers
37  trigger_paths: [fpath]
38 
39  #end_paths is a keyword and contains the paths that do not modify the art::Event,
40  #ie analyzers and output streams. these all run simultaneously
41  end_paths: [stream1]
42 }
43 
44 #block to define where the output goes. if you defined a filter in the physics
45 #block and put it in the trigger_paths then you need to put a SelectEvents: {SelectEvents: [XXX]}
46 #entry in the output stream you want those to go to, where XXX is the label of the filter module(s)
47 outputs:
48 {
49  out1:
50  {
51  module_type: RootOutput
52  fileName: "MUSUN_gen_dunefd_filtered.root"
53  dataTier: "generated"
54  compressionLevel: 1
55  SelectEvents: [fpath]
56  }
57 }