Geant4  10.01.p02
G4DNAMolecularMaterial Class Reference

#include <G4DNAMolecularMaterial.hh>

+ Inheritance diagram for G4DNAMolecularMaterial:
+ Collaboration diagram for G4DNAMolecularMaterial:

Public Member Functions

void Initialize ()
 
void Clear ()
 
virtual G4bool Notify (G4ApplicationState requestedState)
 
const std::vector< ComponentMap > * GetMassFractionTable () const
 
const std::vector< ComponentMap > * GetDensityTable () const
 
const std::vector< double > * GetDensityTableFor (const G4Material *) const
 
const std::vector< double > * GetNumMolPerVolTableFor (const G4Material *) const
 
- Public Member Functions inherited from G4VStateDependent
 G4VStateDependent (G4bool bottom=false)
 
virtual ~G4VStateDependent ()
 
G4int operator== (const G4VStateDependent &right) const
 
G4int operator!= (const G4VStateDependent &right) const
 

Static Public Member Functions

static G4DNAMolecularMaterialInstance ()
 
static void DeleteInstance ()
 

Protected Member Functions

 G4DNAMolecularMaterial ()
 
 G4DNAMolecularMaterial (const G4DNAMolecularMaterial &right)
 
G4DNAMolecularMaterialoperator= (const G4DNAMolecularMaterial &)
 
virtual ~G4DNAMolecularMaterial ()
 
void Create ()
 
void InitializeNumMolPerVol ()
 
void InitializeDensity ()
 
void RecordMolecularMaterial (G4Material *parentMaterial, G4Material *molecularMaterial, G4double fraction)
 
void SearchMolecularMaterial (G4Material *parentMaterial, G4Material *material, double currentFraction)
 
void AddMaterial (const G4Material *, double fraction)
 
void PrintNotAMolecularMaterial (const char *methodName, const G4Material *lookForMaterial) const
 

Protected Attributes

std::vector< ComponentMap > * fpCompFractionTable
 
std::vector< ComponentMap > * fpCompDensityTable
 
std::vector< ComponentMap > * fpCompNumMolPerVolTable
 
std::map< const G4Material
*, std::vector< double >
*, CompareMaterial
fAskedDensityTable
 
std::map< const G4Material
*, std::vector< double >
*, CompareMaterial
fAskedNumPerVolTable
 
std::map< const G4Material
*, bool, CompareMaterial
fWarningPrinted
 
G4bool fIsInitialized
 
size_t fNMaterials
 

Static Protected Attributes

static G4DNAMolecularMaterialfInstance
 

Detailed Description

Definition at line 69 of file G4DNAMolecularMaterial.hh.

Constructor & Destructor Documentation

G4DNAMolecularMaterial::G4DNAMolecularMaterial ( )
protected

Definition at line 137 of file G4DNAMolecularMaterial.cc.

References Create(), and fInstance.

+ Here is the call graph for this function:

G4DNAMolecularMaterial::G4DNAMolecularMaterial ( const G4DNAMolecularMaterial right)
protected

Definition at line 161 of file G4DNAMolecularMaterial.cc.

References Create().

+ Here is the call graph for this function:

G4DNAMolecularMaterial::~G4DNAMolecularMaterial ( )
protectedvirtual

Definition at line 176 of file G4DNAMolecularMaterial.cc.

References Clear(), and fInstance.

+ Here is the call graph for this function:

Member Function Documentation

void G4DNAMolecularMaterial::AddMaterial ( const G4Material ,
double  fraction 
)
protected
void G4DNAMolecularMaterial::Clear ( )

Definition at line 94 of file G4DNAMolecularMaterial.cc.

Referenced by Notify(), and ~G4DNAMolecularMaterial().

+ Here is the caller graph for this function:

void G4DNAMolecularMaterial::Create ( )
protected

Definition at line 84 of file G4DNAMolecularMaterial.cc.

Referenced by G4DNAMolecularMaterial(), and operator=().

+ Here is the caller graph for this function:

void G4DNAMolecularMaterial::DeleteInstance ( )
static

Definition at line 75 of file G4DNAMolecularMaterial.cc.

const std::vector< ComponentMap > * G4DNAMolecularMaterial::GetDensityTable ( ) const
inline

Definition at line 128 of file G4DNAMolecularMaterial.hh.

References fpCompDensityTable.

const std::vector< double > * G4DNAMolecularMaterial::GetDensityTableFor ( const G4Material lookForMaterial) const

Definition at line 359 of file G4DNAMolecularMaterial.cc.

References fAskedDensityTable, FatalException, fIsInitialized, fNMaterials, fpCompDensityTable, G4endl, G4Exception(), G4State_Idle, G4Material::GetMaterialTable(), G4StateManager::GetStateManager(), Initialize(), and PrintNotAMolecularMaterial().

+ Here is the call graph for this function:

const std::vector< ComponentMap > * G4DNAMolecularMaterial::GetMassFractionTable ( ) const
inline

Definition at line 122 of file G4DNAMolecularMaterial.hh.

References fpCompFractionTable.

const std::vector< double > * G4DNAMolecularMaterial::GetNumMolPerVolTableFor ( const G4Material lookForMaterial) const
void G4DNAMolecularMaterial::Initialize ( )

Definition at line 184 of file G4DNAMolecularMaterial.cc.

References aMutex, fIsInitialized, fNMaterials, fpCompFractionTable, G4Material::GetMaterialTable(), InitializeDensity(), InitializeNumMolPerVol(), and SearchMolecularMaterial().

Referenced by GetDensityTableFor(), GetNumMolPerVolTableFor(), G4DNAChampionElasticModel::Initialise(), and Notify().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4DNAMolecularMaterial::InitializeDensity ( )
protected

Definition at line 219 of file G4DNAMolecularMaterial.cc.

References FatalException, fNMaterials, fpCompDensityTable, fpCompFractionTable, G4endl, G4Exception(), and G4Material::GetMaterialTable().

Referenced by Initialize().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4DNAMolecularMaterial::InitializeNumMolPerVol ( )
protected

Definition at line 262 of file G4DNAMolecularMaterial.cc.

References FatalException, fNMaterials, fpCompDensityTable, fpCompNumMolPerVolTable, G4endl, and G4Exception().

Referenced by Initialize().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4DNAMolecularMaterial::Notify ( G4ApplicationState  requestedState)
virtual

Implements G4VStateDependent.

Definition at line 144 of file G4DNAMolecularMaterial.cc.

References Clear(), G4State_Idle, G4State_PreInit, G4State_Quit, G4StateManager::GetStateManager(), and Initialize().

+ Here is the call graph for this function:

G4DNAMolecularMaterial & G4DNAMolecularMaterial::operator= ( const G4DNAMolecularMaterial rhs)
protected

Definition at line 169 of file G4DNAMolecularMaterial.cc.

References Create().

+ Here is the call graph for this function:

void G4DNAMolecularMaterial::PrintNotAMolecularMaterial ( const char *  methodName,
const G4Material lookForMaterial 
) const
protected

Definition at line 516 of file G4DNAMolecularMaterial.cc.

References fWarningPrinted, G4endl, G4Exception(), G4Material::GetName(), and JustWarning.

Referenced by GetDensityTableFor(), and GetNumMolPerVolTableFor().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4DNAMolecularMaterial::RecordMolecularMaterial ( G4Material parentMaterial,
G4Material molecularMaterial,
G4double  fraction 
)
protected

Definition at line 297 of file G4DNAMolecularMaterial.cc.

References G4Material::GetIndex().

Referenced by SearchMolecularMaterial().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4DNAMolecularMaterial::SearchMolecularMaterial ( G4Material parentMaterial,
G4Material material,
double  currentFraction 
)
protected

Definition at line 322 of file G4DNAMolecularMaterial.cc.

References G4Material::GetMassOfMolecule(), G4Material::GetMatComponents(), and RecordMolecularMaterial().

Referenced by Initialize().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

std::map<const G4Material*, std::vector<double>*, CompareMaterial> G4DNAMolecularMaterial::fAskedDensityTable
mutableprotected

Definition at line 112 of file G4DNAMolecularMaterial.hh.

Referenced by GetDensityTableFor().

std::map<const G4Material*, std::vector<double>*, CompareMaterial> G4DNAMolecularMaterial::fAskedNumPerVolTable
mutableprotected

Definition at line 114 of file G4DNAMolecularMaterial.hh.

Referenced by GetNumMolPerVolTableFor().

G4DNAMolecularMaterial * G4DNAMolecularMaterial::fInstance
staticprotected

Definition at line 86 of file G4DNAMolecularMaterial.hh.

Referenced by G4DNAMolecularMaterial(), and ~G4DNAMolecularMaterial().

G4bool G4DNAMolecularMaterial::fIsInitialized
protected
size_t G4DNAMolecularMaterial::fNMaterials
protected
std::vector<ComponentMap>* G4DNAMolecularMaterial::fpCompDensityTable
protected
std::vector<ComponentMap>* G4DNAMolecularMaterial::fpCompFractionTable
protected

Definition at line 107 of file G4DNAMolecularMaterial.hh.

Referenced by GetMassFractionTable(), Initialize(), and InitializeDensity().

std::vector<ComponentMap>* G4DNAMolecularMaterial::fpCompNumMolPerVolTable
protected

Definition at line 109 of file G4DNAMolecularMaterial.hh.

Referenced by GetNumMolPerVolTableFor(), and InitializeNumMolPerVol().

std::map<const G4Material*, bool, CompareMaterial> G4DNAMolecularMaterial::fWarningPrinted
mutableprotected

Definition at line 115 of file G4DNAMolecularMaterial.hh.

Referenced by PrintNotAMolecularMaterial().


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