Skip to content

Removed extraneous if-statement in [CSADigitizer]

Haakan Wennloef requested to merge hwennlof/allpix-squared:tidyCSAdigi into master

The statement if((k - i) < pulse.size()) was placed after setting the minimum value of i via size_t jmin = (k >= pulse.size() - 1) ? k - (pulse.size() - 1) : 0;. This means that k - i always smaller than pulse.size(), as it will be either k - 0 when k < pulse.size() - 1 or k - k + (pulse.size() - 1) for larger values of k.

Also added the response function equation in the time domain to the readme.

Merge request reports