Geant4 9.6.0
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)
 
G4State GetState () const
 
void SetState (G4String val)
 
G4double GetTemperature () const
 
void SetTemperature (G4double val)
 
G4double GetPressure () const
 
void SetPressure (G4double val)
 

Protected Attributes

G4String theName
 
G4double theDensity
 
G4int theNoComponents
 
G4String theMateType
 
G4double theIonisationMeanExcitationEnergy
 
G4State theState
 
G4double theTemperature
 
G4double thePressure
 

Detailed Description

Definition at line 45 of file G4tgrMaterial.hh.

Constructor & Destructor Documentation

◆ G4tgrMaterial()

G4tgrMaterial::G4tgrMaterial ( )

Definition at line 40 of file G4tgrMaterial.cc.

41 : theName("Material"), theDensity(0.), theNoComponents(0),
43 theState(kStateUndefined), theTemperature(STP_Temperature),
44 thePressure(STP_Pressure)
45{
46}
@ kStateUndefined
Definition: G4Material.hh:114
G4double theDensity
G4String theMateType
G4double thePressure
G4String theName
G4int theNoComponents
G4double theTemperature
G4State theState
G4double theIonisationMeanExcitationEnergy

◆ ~G4tgrMaterial()

G4tgrMaterial::~G4tgrMaterial ( )
virtual

Definition at line 50 of file G4tgrMaterial.cc.

51{
52}

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 67 of file G4tgrMaterial.hh.

Referenced by G4tgbMaterialMgr::FindOrBuildG4Material().

◆ GetName()

◆ GetNumberOfComponents()

◆ GetPressure()

◆ GetState()

◆ 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 70 of file G4tgrMaterial.hh.

Referenced by G4tgrLineProcessor::ProcessLine().

◆ SetPressure()

void G4tgrMaterial::SetPressure ( G4double  val)
inline

Definition at line 80 of file G4tgrMaterial.hh.

80{ thePressure = val; }

Referenced by G4tgrLineProcessor::ProcessLine().

◆ SetState()

void G4tgrMaterial::SetState ( G4String  val)

Definition at line 56 of file G4tgrMaterial.cc.

57{
58 if( val == "Undefined" ) {
60 } else if( val == "Solid" ) {
62 } else if( val == "Liquid" ) {
64 } else if( val == "Gas" ) {
66 } else {
67
68 G4Exception("G4tgrMaterial::SetState", "Wrong state", FatalErrorInArgument,
69 "Only possible states are Undefined/Solid/Liquid/Gas!");
70 }
71}
@ FatalErrorInArgument
@ kStateSolid
Definition: G4Material.hh:114
@ kStateLiquid
Definition: G4Material.hh:114
@ kStateGas
Definition: G4Material.hh:114
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41

Referenced by G4tgrLineProcessor::ProcessLine().

◆ SetTemperature()

void G4tgrMaterial::SetTemperature ( G4double  val)
inline

Definition at line 77 of file G4tgrMaterial.hh.

77{ theTemperature = val; }

Referenced by G4tgrLineProcessor::ProcessLine().

Member Data Documentation

◆ theDensity

G4double G4tgrMaterial::theDensity
protected

◆ theIonisationMeanExcitationEnergy

G4double G4tgrMaterial::theIonisationMeanExcitationEnergy
protected

◆ theMateType

G4String G4tgrMaterial::theMateType
protected

◆ theName

G4String G4tgrMaterial::theName
protected

◆ theNoComponents

G4int G4tgrMaterial::theNoComponents
protected

◆ thePressure

G4double G4tgrMaterial::thePressure
protected

Definition at line 91 of file G4tgrMaterial.hh.

Referenced by GetPressure(), and SetPressure().

◆ theState

G4State G4tgrMaterial::theState
protected

Definition at line 89 of file G4tgrMaterial.hh.

Referenced by GetState(), and SetState().

◆ theTemperature

G4double G4tgrMaterial::theTemperature
protected

Definition at line 90 of file G4tgrMaterial.hh.

Referenced by GetTemperature(), and SetTemperature().


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