src/core/geometry/StaggeredPixelDetectorModel.hpp

Pixel detector model. More…

Namespaces

Name
allpix
Helper class to hold support layers for a detector model.

Classes

Name
class allpix::StaggeredPixelDetectorModel
Model of a pixel detector with a brick wall layout.

Detailed Description

Pixel detector model.

Copyright: Copyright (c) 2025 CERN and the Allpix Squared authors. This software is distributed under the terms of the MIT License, copied verbatim in the file “LICENSE.md”. In applying this license, CERN does not waive the privileges and immunities granted to it by virtue of its status as an Intergovernmental Organization or submit itself to any jurisdiction. SPDX-License-Identifier: MIT

Source code


#ifndef ALLPIX_Staggered_PIXEL_DETECTOR_MODEL_H
#define ALLPIX_Staggered_PIXEL_DETECTOR_MODEL_H

#include <array>
#include <string>
#include <utility>

#include <Math/Point2D.h>
#include <Math/Point3D.h>
#include <Math/Vector2D.h>
#include <Math/Vector3D.h>

#include "PixelDetectorModel.hpp"

namespace allpix {
    class StaggeredPixelDetectorModel : public PixelDetectorModel {
    public:
        explicit StaggeredPixelDetectorModel(std::string type,
                                             const std::shared_ptr<DetectorAssembly>& assembly,
                                             const ConfigReader& reader,
                                             const Configuration& config);

        ROOT::Math::XYZPoint getMatrixCenter() const override;

        ROOT::Math::XYZVector getMatrixSize() const override;

        bool isWithinMatrix(const ROOT::Math::XYZPoint& position) const override;

        ROOT::Math::XYZPoint getPixelCenter(const int x, const int y) const override;

        std::pair<int, int> getPixelIndex(const ROOT::Math::XYZPoint& local_pos) const override;

        std::set<Pixel::Index> getNeighbors(const Pixel::Index& idx, const size_t distance) const override;

        bool areNeighbors(const Pixel::Index& seed, const Pixel::Index& entrant, const size_t distance) const override;

    private:
        double offset_;
    };
} // namespace allpix

#endif // ALLPIX_Staggered_PIXEL_DETECTOR_MODEL_H

Updated on 2025-05-10 at 19:40:39 +0000