Commit e54002bf authored by Håkan Wennlöf's avatar Håkan Wennlöf Committed by Simon Spannagel
Browse files

Added test for collecting from implants (same as [SimpleTransfer])

(cherry picked from commit 5f6cdad3)
parent b5ec6358
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -67,8 +67,10 @@ void CapacitiveTransferModule::initialize() {
        }
        LOG(INFO) << "Collecting charges from implants";
    } else if(!model->getImplants().empty()) {
        LOG(WARNING) << "Detector " << detector_->getName() << " of type " << model->getType()
                     << " has implants defined but collecting charge carriers from full sensor surface, with a max depth distance of " << max_depth_distance_;
        LOG(WARNING)
            << "Detector " << detector_->getName() << " of type " << model->getType()
            << " has implants defined but collecting charge carriers from full sensor surface, with a max depth distance of "
            << max_depth_distance_;
    } else {
        LOG(DEBUG) << "Collecting from sensor surface with a max depth distance of " << max_depth_distance_;
    }
+32 −0
Original line number Diff line number Diff line
# SPDX-FileCopyrightText: 2018-2024 CERN and the Allpix Squared authors
# SPDX-License-Identifier: MIT

#DESC tests the transfer of charges from sensor implants to readout chip in case sensor implants have been defined in the detector model.
[Allpix]
detectors_file = "detector_implant.conf"
number_of_events = 1
random_seed = 0

[DepositionPointCharge]
model = "fixed"
source_type = "point"
position = 445um 220um 0um
number_of_charges = 20

[ElectricFieldReader]
model = "mesh"
file_name = "@PROJECT_SOURCE_DIR@/examples/example_electric_field.init"
field_mapping = PIXEL_FULL

[GenericPropagation]
temperature = 293K
charge_per_step = 1
propagate_electrons = false
propagate_holes = true

[SimpleTransfer]
collect_from_implant = true
log_level = TRACE

#PASS [R:SimpleTransfer:mydetector] Skipping set of 1 propagated charges at (452.42um,213.772um,1.821um) because their local position is outside the pixel implant
#FAIL ERROR;FATAL
+7 −0
Original line number Diff line number Diff line
# SPDX-FileCopyrightText: 2017-2024 CERN and the Allpix Squared authors
# SPDX-License-Identifier: MIT

[mydetector]
type = "test_implants"
position = 0 0 0
orientation = 0 0 0