Commit 611dcf12 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Merge branch 'p-geant4-world-region-user-limits' into 'master'

DepositionGeant4: set world limits to region instead of LV

See merge request allpix-squared/allpix-squared!794
parents e37352d1 dca29558
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -223,7 +223,7 @@ void DepositionGeant4Module::initialize() {
    if(world_log_volume != nullptr) {
        LOG(DEBUG) << "Setting world volume user limits to constrain event time to "
                   << Units::display(config_.get<double>("cutoff_time"), {"ns", "us", "ms", "s"});
        world_log_volume->SetUserLimits(user_limits_world_.get());
        world_log_volume->GetRegion()->SetUserLimits(user_limits_world_.get());
    }

    // Initialize the physics list