LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
example_dump_events_protodune_cnn.fcl
Go to the documentation of this file.
1 #include "services_dune.fcl"
2 #include "imagepatternalgs.fcl"
3 
4 # Example configuration of job file dumping ADC to text files for
5 # further processing of trainning/testinng sets for CNN. Dumped
6 # data contains "images" of ADC downscaled in drift direction,
7 # accompanied with images of PDG codes and vertex information,
8 # Configured for ProtoDUNE, hopefully straight-forward to adopt
9 # to other experiments.
10 
11 process_name: DataDump
12 
13 services:
14 {
15  TFileService: { fileName: "reco_hist.root" }
16  MemoryTracker: {}
17  TimeTracker: {}
18  RandomNumberGenerator: {} #ART native random number generator
19  message: @local::dune_message_services_prod_debug
20  FileCatalogMetadata: @local::art_file_catalog_mc
21  @table::protodune_simulation_services
22 }
23 
24 services.NuRandomService.policy: "perEvent"
25 
26 source:
27 {
28  module_type: RootInput
29  maxEvents: -1 # Number of events to create
30 }
31 
32 physics:
33 {
34  analyzers:
35  {
36  # module making ADC + MC-truth data dumps
37  datadump: @local::standard_pointidtrainingdata
38  }
39 
40  anadata: [ datadump ]
41 
42  trigger_paths: [ ]
43  end_paths: [ anadata ]
44 }
45 
46 # Data preparation settings:
47 #
48 physics.analyzers.datadump.TrainingDataAlg.WireLabel: "wclsdatasp:gauss"
49 physics.analyzers.datadump.TrainingDataAlg.SimulationLabel: "largeant"
50 physics.analyzers.datadump.TrainingDataAlg.SimChannelLabel: "tpcrawdecoder:simpleSC"
51 physics.analyzers.datadump.TrainingDataAlg.SaveVtxFlags: false # save (or not) interaction and decay vertex info
52 physics.analyzers.datadump.TrainingDataAlg.DriftWindow: 6 # downsampling window in drift ticks
53 physics.analyzers.datadump.TrainingDataAlg.AdcDelayTicks: 0 # delay of ADC peak in drift ticks
54 physics.analyzers.datadump.TrainingDataAlg.DownscaleFn: "mean" # downsampling function
55 physics.analyzers.datadump.TrainingDataAlg.AdcMax: 30
56 physics.analyzers.datadump.TrainingDataAlg.AdcMin: 0
57 physics.analyzers.datadump.TrainingDataAlg.OutMax: 1
58 physics.analyzers.datadump.TrainingDataAlg.OutMin: 0
59 # Input TPC / plane selection:
60 #
61 physics.analyzers.datadump.SelectedTPC: [1, 2, 5, 6, 9, 10] # all TPC's if empty list, or save data from selected TPC's only
62 physics.analyzers.datadump.SelectedView: [2] # all views if empty list, or save data from selected views only
63 
64 # Output format and location:
65 #
66 physics.analyzers.datadump.OutTextFilePath: "/home/your_path/to_files" # output directory for data dump
67 physics.analyzers.datadump.Crop: false # set to false when dumping noise (empty) events
68 physics.analyzers.datadump.DumpToRoot: false # all events data is saved to a single ROOT file (otherwise text
69  # files for each PDG/ADC/deposit map are produced), both formats
70  # can be parsed by the patch making Python scripts
71 physics.analyzers.datadump.OutNumpyFileName: "output"
72 physics.analyzers.datadump.DumpToNumpy: true
73 physics.analyzers.datadump.Patch_size_w: 48
74 physics.analyzers.datadump.Patch_size_d: 48
75 physics.analyzers.datadump.Em: 0.003
76 physics.analyzers.datadump.Trk: 0.005
77 physics.analyzers.datadump.Michel: 0.3
78 physics.analyzers.datadump.None: 0.000015
79 physics.analyzers.datadump.ScalePriEl: 100
80 physics.analyzers.datadump.ScalePriMu: 1
81 
82 # Calibration:
83 #
84 #physics.analyzers.datadump.TrainingDataAlg.CalorimetryAlg: @local::standard_calorimetryalgmc # use your detector calibration constants, this is the default
85 physics.analyzers.datadump.TrainingDataAlg.CalibrateAmpl: false # this equalizes ADC amplitudes between planes and MC/data
86 physics.analyzers.datadump.TrainingDataAlg.CalibrateLifetime: false
87 # Noise and distortions testing (off by default):
88 #
89 #physics.analyzers.datadump.TrainingDataAlg.BlurKernel: [0.03, 0.15, 0.64, 0.15, 0.03] # wire to wire blur
90 #physics.analyzers.datadump.TrainingDataAlg.NoiseSigma: 4 # uncorrelated noise
91 #physics.analyzers.datadump.TrainingDataAlg.CoherentSigma: 6 # coherent noise, over 32 wire groups
92