filterMUSUN_dune10kt.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
15 }
16 
17 source: {
18  module_type: RootInput
19  maxEvents: -1 # Number of events to create
20 }
21 
22 # Define and configure some modules to do work on each event.
23 # First modules are defined; they are scheduled later.
24 # Modules are grouped by type.
25 physics:
26 {
27  filters: {
28  cosmicfilter: { module_type: "CosmicFilter" }
29  }
30  #define the output stream, there could be more than one if using filters
31  stream1: [ out1 ]
32 
33  fpath: [ cosmicfilter ]
34  #trigger_paths is a keyword and contains the paths that modify the art::event,
35  #ie filters and producers
36  trigger_paths: [fpath]
37 
38  #end_paths is a keyword and contains the paths that do not modify the art::Event,
39  #ie analyzers and output streams. these all run simultaneously
40  end_paths: [stream1]
41 }
42 
43 #block to define where the output goes. if you defined a filter in the physics
44 #block and put it in the trigger_paths then you need to put a SelectEvents: {SelectEvents: [XXX]}
45 #entry in the output stream you want those to go to, where XXX is the label of the filter module(s)
46 outputs:
47 {
48  out1:
49  {
50  module_type: RootOutput
51  fileName: "MUSUN_gen_dunefd_filtered.root"
52  dataTier: "generated"
53  compressionLevel: 1
54  SelectEvents: [fpath]
55  }
56 }