Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4tgrMaterialSimple Class Reference

#include <G4tgrMaterialSimple.hh>

Inheritance diagram for G4tgrMaterialSimple:
Collaboration diagram for G4tgrMaterialSimple:

Public Member Functions

 G4tgrMaterialSimple (const G4String &matType, const std::vector< G4String > &wl)
 
G4tgrMaterialSimpleoperator= (const G4tgrMaterialSimple &)
 
G4double GetA () const
 
G4double GetZ () const
 
const G4StringGetComponent (G4int i) const
 
G4double GetFraction (G4int i)
 
 G4tgrMaterialSimple ()
 
 ~G4tgrMaterialSimple ()
 
- Public Member Functions inherited from G4tgrMaterial
 G4tgrMaterial ()
 
virtual ~G4tgrMaterial ()
 
const G4StringGetName () const
 
G4double GetDensity () const
 
G4int GetNumberOfComponents () const
 
const G4StringGetType () const
 
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)
 

Friends

std::ostream & operator<< (std::ostream &, const G4tgrMaterialSimple &)
 

Additional Inherited Members

- Protected Attributes inherited from G4tgrMaterial
G4String theName
 
G4double theDensity
 
G4int theNoComponents
 
G4String theMateType
 
G4double theIonisationMeanExcitationEnergy
 
G4State theState
 
G4double theTemperature
 
G4double thePressure
 

Detailed Description

Definition at line 50 of file G4tgrMaterialSimple.hh.

Constructor & Destructor Documentation

G4tgrMaterialSimple::G4tgrMaterialSimple ( const G4String matType,
const std::vector< G4String > &  wl 
)

Definition at line 57 of file G4tgrMaterialSimple.cc.

59  : name("MaterialSimple")
60 {
61  //---------- Check for miminum number of words read
63  "G4tgrMaterialSimple::G4tgrMaterialSimple");
64 
65  theMateType = matType;
66 
67  //---------- Fill private data
68  theName = G4tgrUtils::GetString( wl[1] );
69  theZ = G4tgrUtils::GetDouble( wl[2] );
70  theA = G4tgrUtils::GetDouble( wl[3], g/mole);
72  theNoComponents = 0;
73 #ifdef G4VERBOSE
75  {
76  G4cout << " Created " << *this << G4endl;
77  }
78 #endif
79 }
const XML_Char * name
Definition: expat.h:151
static void CheckWLsize(const std::vector< G4String > &wl, unsigned int nWCheck, WLSIZEtype st, const G4String &methodName)
Definition: G4tgrUtils.cc:475
G4double theDensity
function g(Y1, Y2, PT2)
Definition: hijing1.383.f:5205
G4String theName
G4GLOB_DLL std::ostream G4cout
static G4int GetVerboseLevel()
G4int theNoComponents
static constexpr double cm3
Definition: G4SIunits.hh:121
static G4double GetDouble(const G4String &str, G4double unitval=1.)
Definition: G4tgrUtils.cc:205
static G4String GetString(const G4String &str)
Definition: G4tgrUtils.cc:180
#define G4endl
Definition: G4ios.hh:61
G4String theMateType
static constexpr double mole
Definition: G4SIunits.hh:286

Here is the call graph for this function:

G4tgrMaterialSimple::G4tgrMaterialSimple ( )

Definition at line 44 of file G4tgrMaterialSimple.cc.

45  : name("MaterialSimple"), theA(0.), theZ(0.)
46 {
47 }
const XML_Char * name
Definition: expat.h:151
G4tgrMaterialSimple::~G4tgrMaterialSimple ( )

Definition at line 51 of file G4tgrMaterialSimple.cc.

52 {
53 }

Member Function Documentation

G4double G4tgrMaterialSimple::GetA ( ) const
inlinevirtual

Implements G4tgrMaterial.

Definition at line 62 of file G4tgrMaterialSimple.hh.

62 { return theA; }

Here is the caller graph for this function:

const G4String & G4tgrMaterialSimple::GetComponent ( G4int  i) const
virtual

Implements G4tgrMaterial.

Definition at line 83 of file G4tgrMaterialSimple.cc.

84 {
85  G4String ErrMessage = "Should never be called for a MaterialSimple - i:"
87  G4Exception("G4tgrMaterialSimple::GetComponent()",
88  "InvalidCall", FatalException, ErrMessage);
89 
90  return name; // dummy, to avoid compilation warnings...
91 }
const XML_Char * name
Definition: expat.h:151
static G4String ConvertToString(G4bool boolVal)
Definition: G4UIcommand.cc:372
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41

Here is the call graph for this function:

G4double G4tgrMaterialSimple::GetFraction ( G4int  i)
virtual

Implements G4tgrMaterial.

Definition at line 95 of file G4tgrMaterialSimple.cc.

96 {
97  G4String ErrMessage = "Should never be called for a MaterialSimple - i:"
99  G4Exception("G4tgrMaterialSimple::GetFraction()",
100  "InvalidCall", FatalException, ErrMessage);
101 
102  return 0.; // dummy, to avoid compilation warnings...
103 }
static G4String ConvertToString(G4bool boolVal)
Definition: G4UIcommand.cc:372
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41

Here is the call graph for this function:

G4double G4tgrMaterialSimple::GetZ ( ) const
inlinevirtual

Implements G4tgrMaterial.

Definition at line 63 of file G4tgrMaterialSimple.hh.

63 { return theZ; }

Here is the caller graph for this function:

G4tgrMaterialSimple& G4tgrMaterialSimple::operator= ( const G4tgrMaterialSimple )

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const G4tgrMaterialSimple mate 
)
friend

Definition at line 107 of file G4tgrMaterialSimple.cc.

108 {
109  os << "G4tgrMaterialSimple= " << mate.theName
110  << " Z " << mate.theZ << " A " << mate.theA
111  << "density= " << mate.theDensity/g*cm3
112  << " g/cm3. Number of Components: " << mate.theNoComponents << G4endl;
113  return os;
114 }
G4double theDensity
function g(Y1, Y2, PT2)
Definition: hijing1.383.f:5205
G4String theName
G4int theNoComponents
static constexpr double cm3
Definition: G4SIunits.hh:121
#define G4endl
Definition: G4ios.hh:61

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