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.SimulationLabel: "largeant"
47 physics.analyzers.datadump.TrainingDataAlg.SaveVtxFlags: true # save (or not) interaction and decay vertex info
48 physics.analyzers.datadump.TrainingDataAlg.DriftWindow: 6 # downsampling window in drift ticks
49 physics.analyzers.datadump.TrainingDataAlg.AdcDelayTicks: 0 # delay of ADC peak in drift ticks
50 physics.analyzers.datadump.TrainingDataAlg.DownscaleFn: "mean" # downsampling function
52 # Input TPC / plane selection:
54 physics.analyzers.datadump.SelectedTPC: [2] # all TPC's if empty list, or save data from selected TPC's only
55 physics.analyzers.datadump.SelectedView: [2] # all views if empty list, or save data from selected views only
57 # Output format and location:
59 physics.analyzers.datadump.OutTextFilePath: "/home/your_path/to_files" # output directory for data dump
60 physics.analyzers.datadump.Crop: true # set to false when dumping noise (empty) events
61 physics.analyzers.datadump.DumpToRoot: true # all events data is saved to a single ROOT file (otherwise text
62 # files for each PDG/ADC/deposit map are produced), both formats
63 # can be parsed by the patch making Python scripts
66 #physics.analyzers.datadump.TrainingDataAlg.CalorimetryAlg: @local::standard_calorimetryalgmc # use your detector calibration constants, this is the default
67 physics.analyzers.datadump.TrainingDataAlg.CalibrateAmpl: true # this equalizes ADC amplitudes between planes and MC/data
69 # Noise and distortions testing (off by default):
71 #physics.analyzers.datadump.TrainingDataAlg.BlurKernel: [0.03, 0.15, 0.64, 0.15, 0.03] # wire to wire blur
72 #physics.analyzers.datadump.TrainingDataAlg.NoiseSigma: 4 # uncorrelated noise
73 #physics.analyzers.datadump.TrainingDataAlg.CoherentSigma: 6 # coherent noise, over 32 wire groups