Commit 4be83c87 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Update and re-add test cases for offset

parent 6aea8db9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@ random_seed = 0
[ElectricFieldReader]
log_level = TRACE
model = "mesh"
file_name = "../../../../examples/example_electric_field.init"
file_name = "@PROJECT_SOURCE_DIR@/examples/example_electric_field.init"
field_mapping = HALF_RIGHT

#PASS (WARNING) [I:ElectricFieldReader:mydetector] Electric field size is (150um,100um) but current configuration results in an field area of (110um,440um)
+1 −1
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@ random_seed = 0
[ElectricFieldReader]
log_level = TRACE
model = "mesh"
file_name = "../../../../examples/example_electric_field.init"
file_name = "@PROJECT_SOURCE_DIR@/examples/example_electric_field.init"
field_mapping = FULL_INVERSE

#PASS (WARNING) [I:ElectricFieldReader:mydetector] Electric field size is (150um,100um) but current configuration results in an field area of (220um,440um)
+17 −0
Original line number Diff line number Diff line
# SPDX-FileCopyrightText: 2021-2022 CERN and the Allpix Squared authors
# SPDX-License-Identifier: MIT

#DESC tests that the mesh offset cannot be negative
[Allpix]
detectors_file = "detector.conf"
number_of_events = 1
random_seed = 0

[ElectricFieldReader]
log_level = TRACE
model = "mesh"
file_name = "@PROJECT_SOURCE_DIR@/examples/example_electric_field.init"
field_offset = -0.5, 0.5
field_mapping = SENSOR

#PASS (FATAL) [I:ElectricFieldReader:mydetector] Error in the configuration:\nValue -0.5, 0.5 of key 'field_offset' in section 'ElectricFieldReader' is not valid: offsets for the electric field have to be positive
+17 −0
Original line number Diff line number Diff line
# SPDX-FileCopyrightText: 2021-2022 CERN and the Allpix Squared authors
# SPDX-License-Identifier: MIT

#DESC tests that the mesh offset cannot be larger than one pixel pitch
[Allpix]
detectors_file = "detector.conf"
number_of_events = 1
random_seed = 0

[ElectricFieldReader]
log_level = TRACE
model = "mesh"
file_name = "@PROJECT_SOURCE_DIR@/examples/example_electric_field.init"
field_offset = 1.0, 2.0
field_mapping = SENSOR

#PASS (FATAL) [I:ElectricFieldReader:mydetector] Error in the configuration:\nValue 1.0, 2.0 of key 'field_offset' in section 'ElectricFieldReader' is not valid: shifting electric field by more than one pixel (offset > 1.0) is not allowed