# SPDX-FileCopyrightText: 2023 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 = 445um220um0um
number_of_charges = 2000
# We use a custom field here to not trigger the warning about linear fields being inappropriate
[ElectricFieldReader]
model = "custom"
field_function = "[0]*z + [1]"
field_parameters = -3750V/cm/cm, -1000V/cm
[WeightingPotentialReader]
model = pad
[TransientPropagation]
log_level = INFO
temperature = 293K
trapping_model = "nonexistent"
#PASS (FATAL) [I:TransientPropagation:mydetector] Error in the configuration:\nValue "nonexistent" of key 'trapping_model' in section 'TransientPropagation' is not valid: Model with name "nonexistent" does not exist