pdsp_datadriven_beam_job.fcl
Go to the documentation of this file.
1 #include "services_dune.fcl"
2 #include "PDSPDataDrivenBeam.fcl"
3 
4 process_name: PDSPDataDrivenBeamGen
5 
6 services:
7 {
8  # Load the service that manages root files for histograms.
9  TimeTracker: {}
10  RandomNumberGenerator: {} #ART native random number generator
11  FileCatalogMetadata: @local::art_file_catalog_mc
12  @table::protodune_simulation_services
13  TFileService: { #closeFileFast: true
14  fileName: "datadriven_hist.root" #can be overridden by '-T'
15  }
16 }
17 
18 #Start each new event with an empty event.
19 source:
20 {
21  module_type: EmptyEvent
22  timestampPlugin: { plugin_type: "GeneratedEventTimestamp" }
23  maxEvents: 100
24  firstRun: 1 # Run number to use for this file
25  firstEvent: 1 # number of first event in the file
26 }
27 
28 physics:
29 {
30  producers:
31  {
32  generator: @local::datadriven_beam
33  rns: { module_type: "RandomNumberSaver" }
34  }
35  simulate: [ rns, generator ]
36  stream1: [ out1 ]
37  trigger_paths: [simulate]
38  end_paths: [stream1]
39 }
40 
41 outputs:
42 {
43  out1:
44  {
45  module_type: RootOutput
46  fileName: "genBeam_dataDriven.root" #default file name, can override from command line with -o or --output
47  dataTier: "generated"
48  compressionLevel: 1
49  }
50 }
51 
52 physics.producers.generator.InputFileName: "p100.root"
53 physics.producers.generator.ResolutionFileName: "2D_res.root" #"beam_res.root"
54 physics.producers.generator.NGenerate: 5
55 physics.producers.generator.UnsmearType: 2
56 source.maxEvents: @local::physics.producers.generator.NGenerate
57 physics.producers.generator.Verbose: false