diff --git a/Environment/ShowerAxis.cc b/Environment/ShowerAxis.cc index f67cfb42f8473729a9d679338f8a264150240d0e..61412c48c689548f47583d92a181743647881c99 100644 --- a/Environment/ShowerAxis.cc +++ b/Environment/ShowerAxis.cc @@ -47,3 +47,9 @@ GrammageType ShowerAxis::projectedX(geometry::Point const& p) const { auto const projectedLength = (p - pointStart_).dot(axis_normalized_); return X(projectedLength); } + +geometry::Vector<units::si::dimensionless_d> const& ShowerAxis::GetDirection() const { + return axis_normalized_; +} + +geometry::Point const& ShowerAxis::GetStart() const { return pointStart_; } diff --git a/Environment/ShowerAxis.h b/Environment/ShowerAxis.h index 3d31a0c7c9eb3a73b92c052c67ce6ce2d85febd8..3e713dd4601a7dfe2612b6303bf8b985f8261fac 100644 --- a/Environment/ShowerAxis.h +++ b/Environment/ShowerAxis.h @@ -79,6 +79,10 @@ namespace corsika::environment { units::si::GrammageType X(units::si::LengthType) const; + geometry::Vector<units::si::dimensionless_d> const& GetDirection() const; + + geometry::Point const& GetStart() const; + private: geometry::Point const pointStart_; geometry::Vector<units::si::length_d> const length_;