IAP GITLAB

Skip to content
Snippets Groups Projects
Commit b9ea5008 authored by Remy Prechelt's avatar Remy Prechelt Committed by ralfulrich
Browse files

Fix forwarding for observation plane.

parent 6565119a
No related branches found
No related tags found
1 merge request!371Additional outputs ported to new architecture
......@@ -9,15 +9,18 @@
namespace corsika {
template <typename TOutput>
template <typename... TArgs>
ObservationPlane<TOutput>::ObservationPlane(Plane const& obsPlane,
DirectionVector const& x_axis,
bool const deleteOnHit)
bool const deleteOnHit,
TArgs&&... args)
: plane_(obsPlane)
, deleteOnHit_(deleteOnHit)
, energy_ground_(0_GeV)
, count_ground_(0)
, xAxis_(x_axis.normalized())
, yAxis_(obsPlane.getNormal().cross(xAxis_)) {}
, yAxis_(obsPlane.getNormal().cross(xAxis_))
, TOutput(std::forward<TArgs>(args)...) {}
template <typename TTracking, typename TOutput>
template <typename TParticle, typename TTrajectory>
......
......@@ -36,7 +36,9 @@ namespace corsika {
public TOutputWriter {
public:
ObservationPlane(Plane const&, DirectionVector const&, bool const = true);
template <typename... TArgs>
ObservationPlane(Plane const&, DirectionVector const&, bool const = true,
TArgs&&... args);
~ObservationPlane() {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment