Commit 60dbe209 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Add moar tests for ROOTObjectWriter exclude/include logic

(cherry picked from commit e50cb4c2)
parent cecd172d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -29,3 +29,4 @@ propagate_holes = true
[ROOTObjectWriter]

#PASS Wrote 25 objects to 6 branches in file:
#FAIL ERROR;FATAL
+31 −0
Original line number Diff line number Diff line
# SPDX-FileCopyrightText: 2017-2023 CERN and the Allpix Squared authors
# SPDX-License-Identifier: MIT

#DESC ensures proper functionality of the ROOT file writer module. It monitors the total number of objects and branches written to the output ROOT trees.
[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 = 20

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

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

[SimpleTransfer]

[ROOTObjectWriter]

#PASS (WARNING) [I:ROOTObjectWriter] Writing all simulation objects to file, this will lead to large output files and possible performance penalties\nIt is advised to use the include and exclude parameters to select object types specifically.
+32 −0
Original line number Diff line number Diff line
# SPDX-FileCopyrightText: 2017-2023 CERN and the Allpix Squared authors
# SPDX-License-Identifier: MIT

#DESC ensures proper functionality of the ROOT file writer module. It monitors the total number of objects and branches written to the output ROOT trees.
[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 = 20

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

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

[SimpleTransfer]

[ROOTObjectWriter]
include = "PixelCharge"

#PASS Wrote 2 objects to 3 branches in file:
+32 −0
Original line number Diff line number Diff line
# SPDX-FileCopyrightText: 2017-2023 CERN and the Allpix Squared authors
# SPDX-License-Identifier: MIT

#DESC ensures proper functionality of the ROOT file writer module. It monitors the total number of objects and branches written to the output ROOT trees.
[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 = 20

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

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

[SimpleTransfer]

[ROOTObjectWriter]
include = "DepositedCharge"

#PASS (WARNING) [I:ROOTObjectWriter] DepositedCharge included, this will lead to large output files and possible performance penalties
+32 −0
Original line number Diff line number Diff line
# SPDX-FileCopyrightText: 2017-2023 CERN and the Allpix Squared authors
# SPDX-License-Identifier: MIT

#DESC ensures proper functionality of the ROOT file writer module. It monitors the total number of objects and branches written to the output ROOT trees.
[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 = 20

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

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

[SimpleTransfer]

[ROOTObjectWriter]
exclude = "DepositedCharge", "PropagatedCharge"

#PASS Wrote 3 objects to 4 branches in file:
Loading