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

#include <G4tgrMaterial.hh>

+ Inheritance diagram for G4tgrMaterial:

Public Member Functions

 G4tgrMaterial ()
 
virtual ~G4tgrMaterial ()
 
const G4StringGetName () const
 
G4double GetDensity () const
 
G4int GetNumberOfComponents () const
 
const G4StringGetType () const
 
virtual G4double GetA () const =0
 
virtual G4double GetZ () const =0
 
virtual const G4StringGetComponent (G4int i) const =0
 
virtual G4double GetFraction (G4int i)=0
 
G4double GetIonisationMeanExcitationEnergy () const
 
void SetIonisationMeanExcitationEnergy (G4double mee)
 
const G4StateGetState () const
 
void SetState (const G4String &val)
 
G4double GetTemperature () const
 
void SetTemperature (G4double val)
 
G4double GetPressure () const
 
void SetPressure (G4double val)
 

Protected Attributes

G4String theName = "Material"
 
G4double theDensity = 0.0
 
G4int theNoComponents = 0
 
G4String theMateType = "Material"
 
G4double theIonisationMeanExcitationEnergy = -1.0
 
G4State theState = kStateUndefined
 
G4double theTemperature = 0.0
 
G4double thePressure = 0.0
 

Detailed Description

Definition at line 40 of file G4tgrMaterial.hh.

Constructor & Destructor Documentation

◆ G4tgrMaterial()

G4tgrMaterial::G4tgrMaterial ( )

Definition at line 35 of file G4tgrMaterial.cc.

36 : theTemperature(NTP_Temperature)
37 , thePressure(STP_Pressure)
38{
39}
G4double thePressure
G4double theTemperature

◆ ~G4tgrMaterial()

G4tgrMaterial::~G4tgrMaterial ( )
virtual

Definition at line 42 of file G4tgrMaterial.cc.

43{
44}

Member Function Documentation

◆ GetA()

virtual G4double G4tgrMaterial::GetA ( ) const
pure virtual

Implemented in G4tgrMaterialMixture, and G4tgrMaterialSimple.

Referenced by G4tgbMaterial::GetA().

◆ GetComponent()

virtual const G4String & G4tgrMaterial::GetComponent ( G4int i) const
pure virtual

◆ GetDensity()

◆ GetFraction()

virtual G4double G4tgrMaterial::GetFraction ( G4int i)
pure virtual

◆ GetIonisationMeanExcitationEnergy()

G4double G4tgrMaterial::GetIonisationMeanExcitationEnergy ( ) const
inline

Definition at line 62 of file G4tgrMaterial.hh.

63 {
65 }
G4double theIonisationMeanExcitationEnergy

Referenced by G4tgbMaterialMgr::FindOrBuildG4Material().

◆ GetName()

◆ GetNumberOfComponents()

◆ GetPressure()

◆ GetState()

const G4State & G4tgrMaterial::GetState ( ) const
inline

◆ GetTemperature()

◆ GetType()

const G4String & G4tgrMaterial::GetType ( ) const
inline

◆ GetZ()

virtual G4double G4tgrMaterial::GetZ ( ) const
pure virtual

Implemented in G4tgrMaterialMixture, and G4tgrMaterialSimple.

Referenced by G4tgbMaterial::GetZ().

◆ SetIonisationMeanExcitationEnergy()

void G4tgrMaterial::SetIonisationMeanExcitationEnergy ( G4double mee)
inline

Definition at line 67 of file G4tgrMaterial.hh.

68 {
70 }

Referenced by G4tgrLineProcessor::ProcessLine().

◆ SetPressure()

void G4tgrMaterial::SetPressure ( G4double val)
inline

Definition at line 79 of file G4tgrMaterial.hh.

79{ thePressure = val; }

Referenced by G4tgrLineProcessor::ProcessLine().

◆ SetState()

void G4tgrMaterial::SetState ( const G4String & val)

Definition at line 47 of file G4tgrMaterial.cc.

48{
49 if(val == "Undefined")
50 {
52 }
53 else if(val == "Solid")
54 {
56 }
57 else if(val == "Liquid")
58 {
60 }
61 else if(val == "Gas")
62 {
64 }
65 else
66 {
67 G4Exception("G4tgrMaterial::SetState", "Wrong state", FatalErrorInArgument,
68 "Only possible states are Undefined/Solid/Liquid/Gas!");
69 }
70}
@ FatalErrorInArgument
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
@ kStateSolid
@ kStateLiquid
@ kStateGas
@ kStateUndefined

Referenced by G4tgrLineProcessor::ProcessLine().

◆ SetTemperature()

void G4tgrMaterial::SetTemperature ( G4double val)
inline

Definition at line 76 of file G4tgrMaterial.hh.

76{ theTemperature = val; }

Referenced by G4tgrLineProcessor::ProcessLine().

Member Data Documentation

◆ theDensity

G4double G4tgrMaterial::theDensity = 0.0
protected

◆ theIonisationMeanExcitationEnergy

G4double G4tgrMaterial::theIonisationMeanExcitationEnergy = -1.0
protected

◆ theMateType

G4String G4tgrMaterial::theMateType = "Material"
protected

◆ theName

G4String G4tgrMaterial::theName = "Material"
protected

◆ theNoComponents

G4int G4tgrMaterial::theNoComponents = 0
protected

◆ thePressure

G4double G4tgrMaterial::thePressure = 0.0
protected

Definition at line 90 of file G4tgrMaterial.hh.

Referenced by GetPressure(), and SetPressure().

◆ theState

G4State G4tgrMaterial::theState = kStateUndefined
protected

Definition at line 88 of file G4tgrMaterial.hh.

Referenced by GetState(), and SetState().

◆ theTemperature

G4double G4tgrMaterial::theTemperature = 0.0
protected

Definition at line 89 of file G4tgrMaterial.hh.

Referenced by GetTemperature(), and SetTemperature().


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