Unverified Commit 73c4b55f authored by Stephan Lachnit's avatar Stephan Lachnit
Browse files

GeometryBuildGeant4: note+test for RunManager performance

parent 5863f212
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -14,5 +14,4 @@ workers = 1

#PASS (WARNING) Using multithreading with only one worker, this might be slower than multithreading=false
#LABEL coverage
#FAIL ERROR
#FAIL FATAL
#FAIL FATAL;ERROR
+2 −0
Original line number Diff line number Diff line
@@ -129,6 +129,8 @@ void GeometryBuilderGeant4Module::initialize() {
    } else {
        LOG(DEBUG) << "Making a single-thread RunManager";
        run_manager_g4_ = std::make_unique<RunManager>();
        LOG(INFO) << "Using Geant4 modules without multithreading might reduce performance when using complex geometries, "
                     "please check the documentation for details";
    }

    // Set the geometry construction to use
+32 −0
Original line number Diff line number Diff line
# SPDX-FileCopyrightText: 2023 CERN and the Allpix Squared authors
# SPDX-License-Identifier: MIT

#DESC tests the use the MTRunManager with workers=1
[Allpix]
detectors_file = "detector.conf"
number_of_events = 1
random_seed = 0
multithreading=true
workers=1

[GeometryBuilderGeant4]

[DepositionGeant4]
log_level = INFO
particle_type = "e+"
source_energy = 5MeV
source_position = 0um 0um -500um
beam_size = 0
beam_direction = 0 0 1

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

[ProjectionPropagation]
temperature = 293K
propagate_holes = true

#PASS Deposited 71000 charges in sensor of detector mydetector
#FAIL FATAL;ERROR