prodmarleytime.fcl
Go to the documentation of this file.
1 # Generates time-dependent events in the DUNE 10kt 1x2x6 geometry
2 
3 #include "marley.fcl"
4 #include "services_dune.fcl"
5 
6 process_name: MARLEYTimeGen
7 
8 services:
9 {
10  # Load the service that manages root files for histograms.
11  TFileService: { fileName: "marley_time_hist.root" }
12  TimeTracker: {}
13  RandomNumberGenerator: {} #ART native random number generator
14  @table::dunefd_simulation_services
15  Geometry: @local::dune10kt_1x2x6_geo
16 }
17 
18 
19 #Start each new event with an empty event.
20 source:
21 {
22  module_type: EmptyEvent
23  timestampPlugin: { plugin_type: "GeneratedEventTimestamp" }
24  maxEvents: 100 # Number of events to create
25  firstRun: 1 # Run number to use for this file
26  firstEvent: 1 # Number of first event in the file
27 }
28 
29 # Define and configure some modules to do work on each event.
30 # First modules are defined; they are scheduled later.
31 # Modules are grouped by type.
32 physics:
33 {
34 
35  producers:
36  {
37  # Generate events using MARLEY
38  generator: { @table::standard_marley
39  module_type: "MARLEYTimeGen"
40  sampling_mode: "histogram"
41  nu_per_event: 1
42 
43  spectrum_file: "SupernovaModels/Huedepohl-Accretion-LS220-s11.2_parameters.dat"
44  spectrum_file_format: "fit"
45  pinching_parameter_type: "alpha"
46  fit_Emin: 0. # MeV
47  fit_Emax: 100. # MeV
48 
49  #spectrum_file: "nusperbin2d.root"
50  #spectrum_file_format: "th2d"
51  #namecycle: "nusperbin2d_nue"
52  }
53  # Save the state of the LArSoft random number generators
54  rns: { module_type: "RandomNumberSaver" }
55  }
56 
57  # define the producer and filter modules for this path, order matters, filters
58  # reject all following items. see lines starting physics.producers below
59  simulate: [ rns, generator ]
60 
61  # define the output stream, there could be more than one if using filters
62  stream1: [ out1 ]
63 
64  # trigger_paths is a keyword and contains the paths that modify the
65  # art::event, ie filters and producers
66  trigger_paths: [simulate]
67 
68  # end_paths is a keyword and contains the paths that do not modify the
69  # art::Event, ie analyzers and output streams. these all run simultaneousy
70  end_paths: [stream1]
71 }
72 
73 # block to define where the output goes. if you defined a filter in the
74 # physics block and put it in the trigger_paths then you need to put a
75 # SelectEvents: {SelectEvents: [XXX]} entry in the output stream you want those
76 # to go to, where XXX is the label of the filter module(s)
77 outputs:
78 {
79  out1:
80  {
81  module_type: RootOutput
82  # default file name, can override from command line with -o or --output
83  fileName: "marley_time_gen.root"
84  }
85 }