Analysis-Utilities 26.9.9
C++/ROOT utilities for nuclear measurement data analysis
Loading...
Searching...
No Matches
FileProcessingConfig Struct Reference

Everything needed to configure one processing run. More...

#include <WaveformProcessingUtils.hpp>

Public Attributes

Int_t polarity = -1
 Pulse polarity: -1 for negative-going pulses (inverted during baseline subtraction), +1 for positive-going.
Float_t trigger_threshold = 0.15
 Trigger level as a fraction of the waveform's peak, in (0, 1].
Int_t num_samples_baseline = 10
 Leading samples averaged to estimate the baseline.
Int_t pre_samples = 17
 Samples kept before the trigger when cropping.
Int_t post_samples = 190
 Samples kept after the trigger when cropping.
Int_t pre_gate = 10
 Samples before pre_samples at which integration starts, so integration begins at pre_samples - pre_gate within the cropped waveform.
Int_t short_gate = 10
 Width of the short integration gate.
Int_t long_gate = 200
 Width of the long integration gate.
Int_t sample_waveforms_to_save = 5
 How many example waveforms to write out as figures, for eyeballing.
Int_t max_events = -1
 Cap on waveforms to read per file; -1 means no limit.
Bool_t verbose = kTRUE
 Print progress and per-file summaries.
Bool_t store_waveforms = kTRUE
 Write the cropped waveform to the tree.
InputFormat input_format = InputFormat::kCOMPASS
 Input file format.
Int_t adc_saturation_code = 16384
 ADC code that means full scale.

Detailed Description

Everything needed to configure one processing run.

Passed to the WaveformProcessingUtils constructor, and the only way to configure the workers spawned by WaveformProcessingUtils::ProcessFilesParallel(). All sample counts and gate widths are in samples.

Definition at line 88 of file WaveformProcessingUtils.hpp.

Member Data Documentation

◆ adc_saturation_code

Int_t FileProcessingConfig::adc_saturation_code = 16384

ADC code that means full scale.

A raw extremum equal to this (positive polarity) or to zero (negative polarity) is treated as clipped.

Definition at line 116 of file WaveformProcessingUtils.hpp.

◆ input_format

InputFormat FileProcessingConfig::input_format = InputFormat::kCOMPASS

Input file format.

Definition at line 113 of file WaveformProcessingUtils.hpp.

◆ long_gate

Int_t FileProcessingConfig::long_gate = 200

Width of the long integration gate.

Definition at line 106 of file WaveformProcessingUtils.hpp.

◆ max_events

Int_t FileProcessingConfig::max_events = -1

Cap on waveforms to read per file; -1 means no limit.

Definition at line 110 of file WaveformProcessingUtils.hpp.

◆ num_samples_baseline

Int_t FileProcessingConfig::num_samples_baseline = 10

Leading samples averaged to estimate the baseline.

Definition at line 95 of file WaveformProcessingUtils.hpp.

◆ polarity

Int_t FileProcessingConfig::polarity = -1

Pulse polarity: -1 for negative-going pulses (inverted during baseline subtraction), +1 for positive-going.

Definition at line 91 of file WaveformProcessingUtils.hpp.

◆ post_samples

Int_t FileProcessingConfig::post_samples = 190

Samples kept after the trigger when cropping.

Definition at line 99 of file WaveformProcessingUtils.hpp.

◆ pre_gate

Int_t FileProcessingConfig::pre_gate = 10

Samples before pre_samples at which integration starts, so integration begins at pre_samples - pre_gate within the cropped waveform.

Definition at line 102 of file WaveformProcessingUtils.hpp.

◆ pre_samples

Int_t FileProcessingConfig::pre_samples = 17

Samples kept before the trigger when cropping.

Definition at line 97 of file WaveformProcessingUtils.hpp.

◆ sample_waveforms_to_save

Int_t FileProcessingConfig::sample_waveforms_to_save = 5

How many example waveforms to write out as figures, for eyeballing.

Definition at line 108 of file WaveformProcessingUtils.hpp.

◆ short_gate

Int_t FileProcessingConfig::short_gate = 10

Width of the short integration gate.

Definition at line 104 of file WaveformProcessingUtils.hpp.

◆ store_waveforms

Bool_t FileProcessingConfig::store_waveforms = kTRUE

Write the cropped waveform to the tree.

Definition at line 112 of file WaveformProcessingUtils.hpp.

◆ trigger_threshold

Float_t FileProcessingConfig::trigger_threshold = 0.15

Trigger level as a fraction of the waveform's peak, in (0, 1].

Definition at line 93 of file WaveformProcessingUtils.hpp.

◆ verbose

Bool_t FileProcessingConfig::verbose = kTRUE

Print progress and per-file summaries.

Definition at line 111 of file WaveformProcessingUtils.hpp.


The documentation for this struct was generated from the following file: