Commit 0bdeb232 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

DetectorField: add using to name array

parent 54b957ad
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -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
    }