Geant4-11
Public Member Functions | Protected Attributes
G4tgrMaterial Class Referenceabstract

#include <G4tgrMaterial.hh>

Inheritance diagram for G4tgrMaterial:
G4tgrMaterialMixture G4tgrMaterialSimple

Public Member Functions

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

Protected Attributes

G4double theDensity = 0.0
 
G4double theIonisationMeanExcitationEnergy = -1.0
 
G4String theMateType = "Material"
 
G4String theName = "Material"
 
G4int theNoComponents = 0
 
G4double thePressure = 0.0
 
G4State theState = kStateUndefined
 
G4double theTemperature = 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.

38{
39}
static const G4double NTP_Temperature
Definition: G4Material.hh:113
G4double thePressure
G4double theTemperature
int STP_Pressure
Definition: hepunit.py:302

◆ ~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()

G4double G4tgrMaterial::GetDensity ( ) const
inline

◆ 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

References theIonisationMeanExcitationEnergy.

Referenced by G4tgbMaterialMgr::FindOrBuildG4Material().

◆ GetName()

const G4String & G4tgrMaterial::GetName ( ) const
inline

◆ GetNumberOfComponents()

G4int G4tgrMaterial::GetNumberOfComponents ( ) const
inline

◆ GetPressure()

G4double G4tgrMaterial::GetPressure ( ) const
inline

◆ GetState()

const G4State & G4tgrMaterial::GetState ( ) const
inline

◆ GetTemperature()

G4double G4tgrMaterial::GetTemperature ( ) const
inline

◆ 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 }

References theIonisationMeanExcitationEnergy.

Referenced by G4tgrLineProcessor::ProcessLine().

◆ SetPressure()

void G4tgrMaterial::SetPressure ( G4double  val)
inline

Definition at line 79 of file G4tgrMaterial.hh.

79{ thePressure = val; }

References thePressure.

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)
Definition: G4Exception.cc:35
@ kStateSolid
Definition: G4Material.hh:111
@ kStateLiquid
Definition: G4Material.hh:111
@ kStateGas
Definition: G4Material.hh:111
@ kStateUndefined
Definition: G4Material.hh:111

References FatalErrorInArgument, G4Exception(), kStateGas, kStateLiquid, kStateSolid, kStateUndefined, and theState.

Referenced by G4tgrLineProcessor::ProcessLine().

◆ SetTemperature()

void G4tgrMaterial::SetTemperature ( G4double  val)
inline

Definition at line 76 of file G4tgrMaterial.hh.

76{ theTemperature = val; }

References theTemperature.

Referenced by G4tgrLineProcessor::ProcessLine().

Field 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: