#include <GaussianDiffusion.h>
Public Member Functions | |
GausDesc (double center, double sigma) | |
double | distance (double x) |
Return the distance in number of sigma that x is from the center. More... | |
std::pair< double, double > | sigma_range (double nsigma=3.0) |
std::vector< double > | sample (double start, double step, int nsamples) const |
std::vector< double > | binint (double start, double step, int nbins) const |
std::vector< double > | weight (double start, double step, int nbins, std::vector< double > pvec) const |
Public Attributes | |
double | center |
double | sigma |
The Gaussian sigma (half) width. More... | |
A GausDesc describes a Gaussian distribution.
Two are used by GaussianDiffusion. One describes the transverse dimension along the direction of wire pitch (and for a given wire plane) and one the longitudinal dimension is along the drift direction as measured in time.
Definition at line 21 of file GaussianDiffusion.h.
|
inline |
Definition at line 29 of file GaussianDiffusion.h.
std::vector< double > Gen::GausDesc::binint | ( | double | start, |
double | step, | ||
int | nbins | ||
) | const |
Integrate Gaussian across uniform bins. Result is normalized assuming integral of Gaussian over entire domain is 1.0.
Definition at line 31 of file GaussianDiffusion.cxx.
|
inline |
Return the distance in number of sigma that x is from the center.
Definition at line 35 of file GaussianDiffusion.h.
std::vector< double > Gen::GausDesc::sample | ( | double | start, |
double | step, | ||
int | nsamples | ||
) | const |
Sample the Gaussian at points on a uniform linear grid.
Definition at line 8 of file GaussianDiffusion.cxx.
|
inline |
Definition at line 46 of file GaussianDiffusion.h.
std::vector< double > Gen::GausDesc::weight | ( | double | start, |
double | step, | ||
int | nbins, | ||
std::vector< double > | pvec | ||
) | const |
Integrate Gaussian diffusion with linear weighting to redistribute the charge to the two neartest impact positions for linear interpolation of the field response
Definition at line 64 of file GaussianDiffusion.cxx.
double WireCell::Gen::GausDesc::center |
The absolute location of the mean of the Gaussian as measured relative to some externally defined origin.
Definition at line 25 of file GaussianDiffusion.h.
double WireCell::Gen::GausDesc::sigma |
The Gaussian sigma (half) width.
Definition at line 27 of file GaussianDiffusion.h.