Skip to content

Commit

Permalink
Use G4VG interface to convert geometry in AdePT
Browse files Browse the repository at this point in the history
  • Loading branch information
drbenmorgan committed May 2, 2024
1 parent 6b8d9d6 commit 3bffcf4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/AdePTTrackingManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include "G4EventManager.hh"
#include "G4Event.hh"
#include "G4RunManager.hh"
#include "G4TransportationManager.hh"

#include "G4Electron.hh"
#include "G4Gamma.hh"
Expand Down Expand Up @@ -41,7 +42,9 @@ void AdePTTrackingManager::InitializeAdePT()
auto tid = G4Threading::G4GetThreadId();
if (tid < 0) {
// Load the VecGeom world in memory
AdePTGeant4Integration::CreateVecGeomWorld(fAdePTConfiguration->GetVecGeomGDML());
auto* tman = G4TransportationManager::GetTransportationManager();
auto* world = tman->GetNavigatorForTracking()->GetWorldVolume();
AdePTGeant4Integration::CreateVecGeomWorld(world);

// Track and Hit buffer capacities on GPU are split among threads
int num_threads = G4RunManager::GetRunManager()->GetNumberOfThreads();
Expand Down

0 comments on commit 3bffcf4

Please sign in to comment.