Skip to content
Snippets Groups Projects
Forked from atlas / athena
107120 commits behind the upstream repository.
  • Benjamin Morgan's avatar
    ec19e9a9
    Support building with Geant4 10.6 · ec19e9a9
    Benjamin Morgan authored
    From version 10.6, Geant4 no longer exports G4MULTITHREADED in the
    compiler flags as "-DG4MULTITHREADED". This symbol must be the same
    between a build of Geant4 and any client application, so is instead
    exported into configuration header included in the commonn G4Types.hh
    header.
    
    Update components of Athena that rely on this symbol so that they
    explicitly #include G4Types.hh before using it.
    
    InnerDetector has a private dependency on Geant4 headers added so
    that it picks up the needed header path.
    ec19e9a9
    History
    Support building with Geant4 10.6
    Benjamin Morgan authored
    From version 10.6, Geant4 no longer exports G4MULTITHREADED in the
    compiler flags as "-DG4MULTITHREADED". This symbol must be the same
    between a build of Geant4 and any client application, so is instead
    exported into configuration header included in the commonn G4Types.hh
    header.
    
    Update components of Athena that rely on this symbol so that they
    explicitly #include G4Types.hh before using it.
    
    InnerDetector has a private dependency on Geant4 headers added so
    that it picks up the needed header path.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
G4AtlasUserWorkerThreadInitialization.cxx 548 B
/*
  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
*/

// Hide multi-threading classes from builds without G4MT
#include "G4Types.hh"
#ifdef G4MULTITHREADED

#include "G4AtlasAlg/G4AtlasUserWorkerThreadInitialization.h"
#include "G4AtlasAlg/G4AtlasWorkerRunManager.h"

G4WorkerRunManager* G4AtlasUserWorkerThreadInitialization::
CreateWorkerRunManager() const
{
  // TODO: maybe better to just use the pseudo-singleton mechanism
  return G4AtlasWorkerRunManager::GetG4AtlasWorkerRunManager();
}

#endif // G4MULTITHREADED