atmo.fcl
Go to the documentation of this file.
1 #include "services_dune.fcl"
2 #include "nuance.fcl"
3 #include "filters.fcl"
4 #include "largeantmodules_dune.fcl"
5 #include "detsimmodules_dune.fcl"
6 #include "mccheatermodules.fcl"
7 #include "caldata_dune.fcl"
8 ##include "cluster_dune.fcl"
9 
10 #
11 # This fcl file begins by reading up a txt file of HEPEvt events (in/atmo00001.txt).
12 # It then runs a series of producers and one analyzer. It runs the evts through a
13 # filter looking for primary K+'s and outputs those events to one file, while
14 # writing every single event to another file.
15 #
16 
17 process_name: Atmo
18 
19 services:
20 {
21  # Load the service that manages root files for histograms.
22  TFileService: { fileName: "ndk_hist_atmo.root" }
23  TimeTracker: {}
24  MemoryTracker: { } # default is one
25  RandomNumberGenerator: {} #ART native random number generator
26  @table::dunefd_simulation_services
27 }
28 
29 services.LArFFT.FFTOption: ""
30 services.Geometry.GDML: "dune4apa36deg.gdml"
31 services.Geometry.ROOT: "dune4apa36deg.gdml"
32 
33 #Start each new event with an empty event.
34 source:
35 {
36  module_type: EmptyEvent
37  timestampPlugin: { plugin_type: "GeneratedEventTimestamp" }
38  maxEvents: 4000
39 }
40 
41 # Define and configure some modules to do work on each event.
42 # First modules are defined; they are scheduled later.
43 # Modules are grouped by type.
44 physics:
45 {
46 
47  producers:
48  {
49  generator: @local::argoneut_nuance
50  largeant: @local::dunefd_largeant
51  daq: @local::dunefd_simwire
52  backtrack: @local::standard_backtrackerloader
53  caldata: @local::dunefd_calwire
54  gaushit: @local::dunefd_gaushitfinder
55  hitcheat: @local::dunefd_hitcheater
56  apahit: @local::dunefd_apahitfinder
57 # fuzzy: @local::dunefd_fuzzycluster
58  rns: { module_type: "RandomNumberSaver" }
59  }
60 
61  analyzers:
62  {
63  largana: @local::microboone_largeantana
64  }
65 
66  filters :
67 {
68  selectMode1: {
69  module_type: FilterPrimaryPDG
70  GeantModuleLabel: "largeant"
71  PrimaryParticles: [ 321 ] # find one of these and it's satisfied. 321==K+
72  }
73 }
74 
75  #define the producer and filter modules for this path, order matters,
76 
77  #simulate: [ generator, largeant, daq, backtrack, caldata, gaushit, hitcheat, apahit, rns ]
78 
79  mode0: [ generator, largeant, daq, backtrack, caldata, gaushit, hitcheat, apahit, rns ]
80  mode1: [ generator, largeant, daq, backtrack, caldata, gaushit, hitcheat, apahit, rns, selectMode1 ] #
81 
82  larana: [ largana ]
83 
84  #define the output stream, there could be more than one if using filters
85  #stream1: [ out1 ]
86  stream: [ out1, out2 ]
87 
88  #trigger_paths is a keyword and contains the paths that modify the art::event,
89  #ie filters and producers
90 # trigger_paths: [simulate]
91  trigger_paths: [ mode0, mode1]
92 
93  #end_paths is a keyword and contains the paths that do not modify the art::Event,
94  #ie analyzers and output streams. these all run simultaneously
95 # end_paths: [larana, stream1]
96  end_paths: [larana, stream]
97 }
98 
99 #block to define where the output goes. if you defined a filter in the physics
100 #block and put it in the trigger_paths then you need to put a SelectEvents: {SelectEvents: [XXX]}
101 #entry in the output stream you want those to go to, where XXX is the label of the filter module(s)
102 outputs:
103 {
104  out1:
105  {
106  module_type: RootOutput
107  fileName: "atmo.00003.root" #default file name, can override from command line with -o or --output
108 # SelectEvents: { SelectEvents: [ mode0 ] }
109  }
110  out2: {
111  module_type: RootOutput
112  fileName: "atmo.00003.strange.root"
113  SelectEvents: { SelectEvents: [ mode1 ] }
114  }
115 
116 }
117 
118 physics.producers.generator.module_type: "NDKGen"
119 physics.producers.generator.NdkFile: "/dune/app/users/echurch/lgm/in/atmo.00001.txt"
120 physics.producers.generator.fseed: 314159
121 #physics.producers.largeant.DumpParticleList: true
122 
123 physics.producers.apahit.DisambigAlg.UseEndP: false
124 physics.producers.apahit.DisambigAlg.CompareViews: false