Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4DNAMaterialManager Class Reference

#include <G4DNAMaterialManager.hh>

Public Types

using MaterialMap = std::map<size_t, G4Material*>
 

Public Member Functions

 G4DNAMaterialManager (const G4DNAMaterialManager &)=delete
 
const G4DNAMaterialManageroperator= (const G4DNAMaterialManager &)=delete
 
G4VEmModelGetModel (const DNAModelType &t)
 
void SetMasterDataModel (const DNAModelType &t, G4VEmModel *m)
 
G4bool IsLocked () const
 

Static Public Member Functions

static G4DNAMaterialManagerInstance ()
 

Detailed Description

Definition at line 47 of file G4DNAMaterialManager.hh.

Member Typedef Documentation

◆ MaterialMap

using G4DNAMaterialManager::MaterialMap = std::map<size_t, G4Material*>

Definition at line 49 of file G4DNAMaterialManager.hh.

Constructor & Destructor Documentation

◆ G4DNAMaterialManager()

G4DNAMaterialManager::G4DNAMaterialManager ( const G4DNAMaterialManager & )
delete

Member Function Documentation

◆ GetModel()

◆ Instance()

G4DNAMaterialManager * G4DNAMaterialManager::Instance ( )
static

Definition at line 41 of file G4DNAMaterialManager.cc.

41 {
42 if (nullptr == theInstance) {
43 G4AutoLock l(&MaterialMutex);
44 if (nullptr == theInstance) {
45 static G4DNAMaterialManager manager;
46 theInstance = &manager;
47 }
48 l.unlock();
49 }
50 return theInstance;
51}

Referenced by G4DNACPA100ElasticModel::Initialise(), G4DNACPA100ExcitationModel::Initialise(), G4DNACPA100IonisationModel::Initialise(), G4DNAPTBElasticModel::Initialise(), G4DNAPTBExcitationModel::Initialise(), and G4DNAPTBIonisationModel::Initialise().

◆ IsLocked()

G4bool G4DNAMaterialManager::IsLocked ( ) const

Definition at line 66 of file G4DNAMaterialManager.cc.

67{
69}
G4bool IsMasterThread()

◆ operator=()

const G4DNAMaterialManager & G4DNAMaterialManager::operator= ( const G4DNAMaterialManager & )
delete

◆ SetMasterDataModel()


The documentation for this class was generated from the following files: