79 std::pair<G4VSensitiveDetector*, G4FieldManager*>>
84 std::pair<G4FastSimulationManager*, G4UserSteppingAction*>>
89 for(
size_t ip = 0; ip < mLogVolStore->size(); ip++)
128 lvmap[lv] = std::make_pair(sd, fmgr);
132 for(
size_t ir = 0; ir < mRegStore->size(); ir++)
139 rgnmap[reg] = std::make_pair(fsm, usa);
162 for(LV2SDFM::const_iterator it = lvmap.begin(); it != lvmap.end(); ++it)
176 for(R2FSM::const_iterator it3 = rgnmap.begin(); it3 != rgnmap.end(); it3++)
196 G4int offset = affinity;
201 "Cannot set thread affinity, affinity parameter larger than "
216 cpuindex = myidx + (myidx >= offset);
220# if defined(G4MULTITHREADED)
230 "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()