103 std::pair<G4VSensitiveDetector*, G4FieldManager*>>;
107 std::pair<G4FastSimulationManager*, G4UserSteppingAction*>>;
111 for(std::size_t ip = 0; ip < mLogVolStore->size(); ++ip)
148 if(sd !=
nullptr || fmgr !=
nullptr)
150 lvmap[lv] = std::make_pair(sd, fmgr);
154 for(std::size_t ir = 0; ir < mRegStore->size(); ++ir)
159 if(reg !=
nullptr || usa !=
nullptr)
161 rgnmap[reg] = std::make_pair(fsm, usa);
184 for(
auto it = lvmap.cbegin(); it != lvmap.cend(); ++it)
198 for(
auto it3 = rgnmap.cbegin(); it3 != rgnmap.cend(); ++it3)
219 G4int offset = affinity;
224 "Cannot set thread affinity, affinity parameter larger than "
239 cpuindex = myidx + (myidx >= offset);
243# if defined(G4MULTITHREADED)
253 "Cannot set thread affinity.");
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
G4DummyThread::native_handle_type G4NativeThread
G4GLOB_DLL std::ostream G4cout
void InitialiseWorkspace()
static pool_type * GetPool()
static G4LogicalVolumeStore * GetInstance()
void SetFieldManager(G4FieldManager *pFieldMgr, G4bool forceToAllDaughters)
G4VSensitiveDetector * GetMasterSensitiveDetector() const
G4VSensitiveDetector * GetSensitiveDetector() const
G4FieldManager * GetMasterFieldManager() const
G4FieldManager * GetFieldManager() const
void SetSensitiveDetector(G4VSensitiveDetector *pSDetector)
static pool_type * GetPool()
static pool_type * GetPool()
static G4RegionStore * GetInstance()
G4FastSimulationManager * GetFastSimulationManager() const
void SetFastSimulationManager(G4FastSimulationManager *fsm)
void SetRegionalSteppingAction(G4UserSteppingAction *rusa)
G4UserSteppingAction * GetRegionalSteppingAction() const
void InitialiseWorkspace()
static pool_type * GetPool()
void CreateAndUseWorkspace()
void CleanUpAndDestroyAllWorkspaces()
G4int GetThreadId() const
static void BuildGeometryAndPhysicsVector()
static void UpdateGeometryAndPhysicsVectorFromMaster()
static void DestroyGeometryAndPhysicsVector()
void SetNumberThreads(G4int numnberThreads)
void SetPinAffinity(G4int aff) const
void SetThreadId(G4int threadId)
G4int GetNumberThreads() const
G4bool G4SetPinAffinity(G4int idx, G4NativeThread &at)
G4int G4GetNumberOfCores()