Commit 371c110a authored by Simon Spannagel's avatar Simon Spannagel
Browse files

HexagonalPixel: inherit from PixelDetectorModel class

parent c8be889c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@
using namespace allpix;

HexagonalPixelDetectorModel::HexagonalPixelDetectorModel(std::string type, const ConfigReader& reader)
    : DetectorModel(std::move(type), reader) {
    : PixelDetectorModel(std::move(type), reader) {
    auto config = reader.getHeaderConfiguration();

    // Select shape orientation
+2 −2
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@
#ifndef ALLPIX_HEXAGONAL_PIXEL_DETECTOR_H
#define ALLPIX_HEXAGONAL_PIXEL_DETECTOR_H

#include "DetectorModel.hpp"
#include "PixelDetectorModel.hpp"

namespace allpix {
    /**
@@ -22,7 +22,7 @@ namespace allpix {
     * along the rows and (slanted) columns of the hexagonal grid are defined. An excellent description of this coordinate
     * systam along with all necessary math and transformations can be found at https://www.redblobgames.com/grids/hexagons
     */
    class HexagonalPixelDetectorModel : public DetectorModel {
    class HexagonalPixelDetectorModel : public PixelDetectorModel {
    public:
        /**
         * @brief constructor of a hexagonal pixel detector model