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 source:
25 {
26  module_type: RootInput
27  maxEvents: -1 # Number of events to create
28 }
29 
30 physics:
31 {
32  analyzers:
33  {
34  # module making ADC + MC-truth data dumps
35  datadump: @local::standard_pointidtrainingdata
36  }
37 
38  anadata: [ datadump ]
39 
40  trigger_paths: [ ]
41  end_paths: [ anadata ]
42 }
43 
44 # Data preparation settings:
45 #
46 physics.analyzers.datadump.TrainingDataAlg.WireLabel: "wclsdatasp:gauss"
47 physics.analyzers.datadump.TrainingDataAlg.SimulationLabel: "largeant"
48 physics.analyzers.datadump.TrainingDataAlg.SimChannelLabel: "tpcrawdecoder:simpleSC"
49 physics.analyzers.datadump.TrainingDataAlg.SaveVtxFlags: false # save (or not) interaction and decay vertex info
50 physics.analyzers.datadump.TrainingDataAlg.DriftWindow: 6 # downsampling window in drift ticks
51 physics.analyzers.datadump.TrainingDataAlg.AdcDelayTicks: 0 # delay of ADC peak in drift ticks
52 physics.analyzers.datadump.TrainingDataAlg.DownscaleFn: "mean" # downsampling function
53 
54 # Input TPC / plane selection:
55 #
56 physics.analyzers.datadump.SelectedTPC: [1, 2, 5, 6, 9, 10] # all TPC's if empty list, or save data from selected TPC's only
57 physics.analyzers.datadump.SelectedView: [] # all views if empty list, or save data from selected views only
58 
59 # Output format and location:
60 #
61 physics.analyzers.datadump.OutTextFilePath: "/home/your_path/to_files" # output directory for data dump
62 physics.analyzers.datadump.Crop: true # set to false when dumping noise (empty) events
63 physics.analyzers.datadump.DumpToRoot: true # all events data is saved to a single ROOT file (otherwise text
64  # files for each PDG/ADC/deposit map are produced), both formats
65  # can be parsed by the patch making Python scripts
66 # Calibration:
67 #
68 #physics.analyzers.datadump.TrainingDataAlg.CalorimetryAlg: @local::standard_calorimetryalgmc # use your detector calibration constants, this is the default
69 physics.analyzers.datadump.TrainingDataAlg.CalibrateAmpl: false # this equalizes ADC amplitudes between planes and MC/data
70 
71 # Noise and distortions testing (off by default):
72 #
73 #physics.analyzers.datadump.TrainingDataAlg.BlurKernel: [0.03, 0.15, 0.64, 0.15, 0.03] # wire to wire blur
74 #physics.analyzers.datadump.TrainingDataAlg.NoiseSigma: 4 # uncorrelated noise
75 #physics.analyzers.datadump.TrainingDataAlg.CoherentSigma: 6 # coherent noise, over 32 wire groups
76