Commit 6ac2f732 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

PixelDetectorModel: backside implants are allowed to overlap

parent 189b6b1b
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -43,6 +43,11 @@ void PixelDetectorModel::validate() {
                implant.getConfiguration(), "size", "implant depth cannot be larger than sensor thickness");
        }

        // Check the offset only for front-side implants, backside implants are allowed to overlap:
        if(implant.getType() == Implant::Type::BACKSIDE) {
            continue;
        }

        // Offset of the collection diode implant from the pixel center, defaults to zero.
        if(std::fabs(implant.getOffset().x()) + implant.getSize().x() / 2 > pixel_size_.x() / 2 ||
           std::fabs(implant.getOffset().y()) + implant.getSize().y() / 2 > pixel_size_.y() / 2) {