95 std::pair<G4VSensitiveDetector*,G4FieldManager*> > LV2SDFM;
99 std::pair<G4FastSimulationManager*,G4UserSteppingAction*> > R2FSM;
103 for(
size_t ip=0; ip<mLogVolStore->size(); ip++)
105 G4LogicalVolume *lv = (*mLogVolStore)[ip];
142 lvmap[lv] = std::make_pair(sd,fmgr);
146 for(
size_t ir=0; ir<mRegStore->size(); ir++)
148 G4Region*
reg = (*mRegStore)[ir];
153 rgnmap[
reg] = std::make_pair(fsm,usa);
176 for ( LV2SDFM::const_iterator it = lvmap.begin() ;
177 it != lvmap.end() ; ++it )
179 G4LogicalVolume* lv = it->first;
191 for ( R2FSM::const_iterator it3 = rgnmap.begin() ;
192 it3 != rgnmap.end() ; it3++ )
194 G4Region*
reg = it3->first;
204 if ( affinity == 0 )
return;
209 G4int offset = affinity;
214 "Cannot set thread affinity, affinity parameter larger than number of cores");
228 cpuindex = myidx + (myidx>=offset);
232 #if defined(G4MULTITHREADED)
241 G4Exception(
"G4MTRunManagerKernel::StarThread()",
"Run0101",
G4FastSimulationManager * GetFastSimulationManager() const
G4VSensitiveDetector * GetSensitiveDetector() const
G4FieldManager * GetMasterFieldManager() const
G4VSensitiveDetector * GetMasterSensitiveDetector() const
G4SolidsWorkspace * GetWorkspace()
void CreateAndUseWorkspace()
static void BuildGeometryAndPhysicsVector()
static G4SolidsWorkspacePool * GetInstance()
G4UserSteppingAction * GetRegionalSteppingAction() const
void SetFieldManager(G4FieldManager *pFieldMgr, G4bool forceToAllDaughters)
static void DestroyGeometryAndPhysicsVector()
static constexpr double second
static void UpdateGeometryAndPhysicsVectorFromMaster()
G4int G4GetNumberOfCores()
static pool_type * GetPool()
void CleanUpAndDestroyAllWorkspaces()
void InitialiseWorkspace()
G4bool G4SetPinAffinity(G4int idx, G4NativeThread &at)
void SetPinAffinity(G4int aff) const
void CleanUpAndDestroyAllWorkspaces()
G4int GetThreadId() const
G4DummyThread::native_handle_type G4NativeThread
void CreateAndUseWorkspace()
void CleanUpAndDestroyAllWorkspaces()
static G4GeometryWorkspacePool * GetInstance()
void SetThreadId(G4int threadId)
G4GeometryWorkspace * GetWorkspace()
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
static G4RegionStore * GetInstance()
static pool_type * GetPool()
G4int GetNumberThreads() const
void SetFastSimulationManager(G4FastSimulationManager *fsm)
G4GLOB_DLL std::ostream G4cout
G4FieldManager * GetFieldManager() const
void SetRegionalSteppingAction(G4UserSteppingAction *rusa)
static const G4double reg
void CreateAndUseWorkspace()
static G4LogicalVolumeStore * GetInstance()
void SetNumberThreads(G4int numnberThreads)
void InitialiseWorkspace()
void SetSensitiveDetector(G4VSensitiveDetector *pSDetector)