Skip to content

Conversation

@vpec0
Copy link
Member

@vpec0 vpec0 commented Dec 19, 2025

Introducing feature to allow configuration of gains for each channel in the deconvolution algorithm. The gains are used to normalise the output waveform - the SPE templates' amplitudes are normalised to the specified gain (number of ADCs per SPE).

The gains are expected to come within an ascii file: each row specifies the channel number and the gain, separated by whitespace.

New configurable for the deconvolution module is ChannelGainFile. If it is empty string, no rescaling is done and the SPE amplitude is equal to the amplitude of the corresponding SPE template.

So far, no checks are done if all channels have the gain set and it is implicitly assumed that they are. The case where only subset of channels have their gains set would lead to a segfault.

@vpec0 vpec0 requested a review from lpaulucc December 19, 2025 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants