Commit 9aa7f738 authored by Paul Schütze's avatar Paul Schütze Committed by Simon Spannagel
Browse files

Add unittests for trapping

parent 02a1c9ee
Loading
Loading
Loading
Loading
+28 −0
Original line number Diff line number Diff line
# SPDX-FileCopyrightText: 2017-2022 CERN and the Allpix Squared authors
# SPDX-License-Identifier: MIT

#DESC tests the fallback of infinite charge carrier lifetime in case no trapping model is chosen
[Allpix]
detectors_file = "detector.conf"
number_of_events = 1
random_seed = 0

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

[ElectricFieldReader]
model = "linear"
bias_voltage = 100V
depletion_voltage = 150V

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

#PASS No charge carrier trapping model chosen, no trapping simulated
+29 −0
Original line number Diff line number Diff line
# SPDX-FileCopyrightText: 2017-2022 CERN and the Allpix Squared authors
# SPDX-License-Identifier: MIT

#DESC tests if non-existing trapping models selected in the configuration file are detected
[Allpix]
detectors_file = "detector.conf"
number_of_events = 1
random_seed = 0

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

[ElectricFieldReader]
model = "linear"
bias_voltage = 100V
depletion_voltage = 150V

[GenericPropagation]
log_level = INFO
temperature = 293K
charge_per_step = 1
propagate_electrons = false
propagate_holes = true
trapping_model = "nonexistent"

#PASS (FATAL) [I:GenericPropagation:mydetector] Error in the configuration:\nValue "nonexistent" of key 'trapping_model' in section 'GenericPropagation' is not valid: Model with name "nonexistent" does not exist
+33 −0
Original line number Diff line number Diff line
# SPDX-FileCopyrightText: 2017-2022 CERN and the Allpix Squared authors
# SPDX-License-Identifier: MIT

#DESC tests if non-existing trapping models selected in the configuration file are detected
[Allpix]
detectors_file = "detector.conf"
number_of_events = 1
random_seed = 0

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

[ElectricFieldReader]
model = "linear"
bias_voltage = 100V
depletion_voltage = 150V

[GenericPropagation]
log_level = INFO
temperature = 293K
charge_per_step = 1
propagate_electrons = false
propagate_holes = true
trapping_model = "custom"
trapping_function_electrons = "[0]"
trapping_parameters_electrons = 10ns
trapping_function_holes = "[0]"
trapping_parameters_holes = 10ns

#PASS Trapped 1385 charges during transport