1 #include "services_dune.fcl"
2 #include "imagepatternalgs.fcl"
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.
11 process_name: DataDump
15 TFileService: { fileName: "reco_hist.root" }
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
26 module_type: RootInput
27 maxEvents: -1 # Number of events to create
34 # module making ADC + MC-truth data dumps
35 datadump: @local::standard_pointidtrainingdata
41 end_paths: [ anadata ]
44 # Data preparation settings:
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
54 # Input TPC / plane selection:
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
59 # Output format and location:
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
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
71 # Noise and distortions testing (off by default):
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