Loading src/core/geometry/DetectorField.hpp +5 −0 Original line number Diff line number Diff line Loading @@ -67,6 +67,11 @@ namespace allpix { */ template <typename T = ROOT::Math::XYZVector> using FieldFunction = std::function<T(const ROOT::Math::XYZPoint& pos)>; /** * @brief FieldTable is a linearized 5x5 matrix */ using FieldTable = std::array<double, 25>; /** * @brief Helper function to invert the field vector when flipping the field direction at pixel/field boundaries * @param field Field value, templated to support vector fields and scalar fields Loading src/core/geometry/DetectorField.tpp +1 −1 Original line number Diff line number Diff line Loading @@ -268,7 +268,7 @@ namespace allpix { * Map field template specialization of helper function for field flipping. * This swaps the entries of the 5x5 map depending on whether it is flipped in that coordinate */ template <> inline void flip_vector_components<std::array<double, 25>>(std::array<double, 25>&, bool, bool) { template <> inline void flip_vector_components<FieldTable>(FieldTable&, bool, bool) { // FIXME need to flip map components here } Loading Loading
src/core/geometry/DetectorField.hpp +5 −0 Original line number Diff line number Diff line Loading @@ -67,6 +67,11 @@ namespace allpix { */ template <typename T = ROOT::Math::XYZVector> using FieldFunction = std::function<T(const ROOT::Math::XYZPoint& pos)>; /** * @brief FieldTable is a linearized 5x5 matrix */ using FieldTable = std::array<double, 25>; /** * @brief Helper function to invert the field vector when flipping the field direction at pixel/field boundaries * @param field Field value, templated to support vector fields and scalar fields Loading
src/core/geometry/DetectorField.tpp +1 −1 Original line number Diff line number Diff line Loading @@ -268,7 +268,7 @@ namespace allpix { * Map field template specialization of helper function for field flipping. * This swaps the entries of the 5x5 map depending on whether it is flipped in that coordinate */ template <> inline void flip_vector_components<std::array<double, 25>>(std::array<double, 25>&, bool, bool) { template <> inline void flip_vector_components<FieldTable>(FieldTable&, bool, bool) { // FIXME need to flip map components here } Loading