From c2e3a8f22cb61729e68afba5d441b592793e28c4 Mon Sep 17 00:00:00 2001
From: Markus Frank <Markus.Frank@cern.ch>
Date: Wed, 29 Nov 2017 20:49:06 +0100
Subject: [PATCH] Add user defined framework context to DDG4and make the
 G4RunManager instantiation a plugin this should consequently allow for user
 defined specializations.

---
 DDG4/plugins/Geant4RunManagers.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/DDG4/plugins/Geant4RunManagers.cpp b/DDG4/plugins/Geant4RunManagers.cpp
index f3ac82ab1..784054341 100644
--- a/DDG4/plugins/Geant4RunManagers.cpp
+++ b/DDG4/plugins/Geant4RunManagers.cpp
@@ -84,7 +84,7 @@ namespace dd4hep {
   namespace sim {
     template <> void Geant4RunManager<G4MTRunManager>::enableUI()  {
       Geant4Action::enableUI();
-      this->RUNMANAGER::SetNumberOfThreads(m_numThreads);
+      this->G4MTRunManager::SetNumberOfThreads(m_numThreads);
       printout(WARNING,"Geant4RunManager","+++ Configured run manager of type: %s with %d threads.",
                typeName(typeid(G4MTRunManager)).c_str(), m_numThreads);
     }
-- 
GitLab