Definition at line 5 of file GaussianDistribution2D.h.
◆ GaussianDistribution2D()
GaussianDistribution2D::GaussianDistribution2D |
( |
double |
normalization, |
|
|
const Acts::Vector3 & |
mean, |
|
|
const Acts::Vector3 & |
major_axis, |
|
|
const Acts::Vector3 & |
minor_axis |
|
) |
| |
Definition at line 5 of file GaussianDistribution2D.cxx.
7 {
8 normalization_ = normalization;
9 mean_ = mean;
10
11 if (std::abs(major_axis.dot(minor_axis)) < 1.e-9) {
12 major_axis_ = major_axis;
13 minor_axis_ = minor_axis;
14 } else {
15 std::cout << __PRETTY_FUNCTION__ << "FAILURE: Axes are not perpendicular"
16 << std::endl;
17 }
18}
◆ covxy()
double GaussianDistribution2D::covxy |
( |
const Acts::Vector3 & |
xaxis, |
|
|
const Acts::Vector3 |
yaxis |
|
) |
| |
Definition at line 42 of file GaussianDistribution2D.cxx.
43 {
44
45 if (std::abs(xaxis.dot(yaxis) > 1e-9))
46 std::cout << "ERROR:: Pixel axes are not orthogonal" << std::endl;
47
48
49 double cth = (xaxis / xaxis.norm()).dot((major_axis_ / major_axis_.norm()));
50 double sth = (yaxis / yaxis.norm()).dot((major_axis_ / major_axis_.norm()));
51
52
53 return sth * cth * (major_axis_.squaredNorm() - minor_axis_.squaredNorm());
54}
◆ getMean()
Acts::Vector3 GaussianDistribution2D::getMean |
( |
| ) |
|
|
inline |
◆ getNormalization()
double GaussianDistribution2D::getNormalization |
( |
| ) |
|
|
inline |
◆ sigma1D()
double GaussianDistribution2D::sigma1D |
( |
const Acts::Vector3 & |
axis | ) |
|
Definition at line 36 of file GaussianDistribution2D.cxx.
36 {
37 Acts::Vector3 uaxis = axis / axis.norm();
38 return std::sqrt(std::pow(uaxis.dot(major_axis_), 2) +
39 std::pow(uaxis.dot(minor_axis_), 2));
40}
◆ transform()
void GaussianDistribution2D::transform |
( |
const Acts::Transform3 & |
transform | ) |
|
Definition at line 20 of file GaussianDistribution2D.cxx.
20 {
21 mean_ = transform * mean_;
22 major_axis_ = transform * major_axis_;
23 minor_axis_ = transform * minor_axis_;
24}
◆ transformed()
Definition at line 26 of file GaussianDistribution2D.cxx.
27 {
28 Acts::Vector3 t_mean = transform * mean_;
29 Acts::Vector3 t_major_axis = transform * major_axis_;
30 Acts::Vector3 t_minor_axis = transform * minor_axis_;
31
33 t_minor_axis);
34}
◆ upperIntegral1D()
double GaussianDistribution2D::upperIntegral1D |
( |
const Acts::Vector3 & |
axis, |
|
|
double |
integration_limit |
|
) |
| |
Definition at line 56 of file GaussianDistribution2D.cxx.
57 {
58 std::cout << "UPPER INTEGRAL 1D TO BE IMPLEMENTED" << std::endl;
59 return -999;
60}
◆ major_axis_
Acts::Vector3 GaussianDistribution2D::major_axis_ {0., 0., 0.} |
|
private |
◆ mean_
Acts::Vector3 GaussianDistribution2D::mean_ {0., 0., 0.} |
|
private |
◆ minor_axis_
Acts::Vector3 GaussianDistribution2D::minor_axis_ {0., 0., 0.} |
|
private |
◆ normalization_
double GaussianDistribution2D::normalization_ {1.0} |
|
private |
The documentation for this class was generated from the following files: