Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4DensityEffectData Class Reference

#include <G4DensityEffectData.hh>

Public Member Functions

 G4DensityEffectData ()
 
 ~G4DensityEffectData ()
 
G4int GetElementIndex (G4int Z, G4State mState) const
 
G4int GetIndex (const G4String &matName) const
 
void PrintData (const G4String &matName) const
 
void DumpData () const
 
G4double GetPlasmaEnergy (G4int idx) const
 
G4double GetAdjustmentFactor (G4int idx) const
 
G4double GetCdensity (G4int idx) const
 
G4double GetX0density (G4int idx) const
 
G4double GetX1density (G4int idx) const
 
G4double GetAdensity (G4int idx) const
 
G4double GetMdensity (G4int idx) const
 
G4double GetDelta0density (G4int idx) const
 
G4double GetErrorDensity (G4int idx) const
 
G4double GetMeanIonisationPotential (G4int idx) const
 

Detailed Description

Definition at line 61 of file G4DensityEffectData.hh.

Constructor & Destructor Documentation

G4DensityEffectData::G4DensityEffectData ( )
explicit

Definition at line 53 of file G4DensityEffectData.cc.

53  :index(0)
54 {
55  Initialize();
56 }
G4DensityEffectData::~G4DensityEffectData ( )

Definition at line 60 of file G4DensityEffectData.cc.

61 {
62 }

Member Function Documentation

void G4DensityEffectData::DumpData ( ) const

Definition at line 1362 of file G4DensityEffectData.cc.

1363 {
1364  G4cout << "======================================================================"
1365  << G4endl;
1366  G4cout << " Material Eplasma(eV) rho -C x0 x1 a m d0 err"
1367  << G4endl;
1368  G4cout << "======================================================================"
1369  << G4endl;
1370  for(G4int i=0; i<NDENSDATA; ++i) {
1371  G4cout << std::setw(3) << i << ". " << std::setw(25) << names[i]
1372  << std::setw(8) << data[i][0]/eV;
1373  for(G4int j=1; j<NDENSARRAY; ++j) { G4cout << std::setw(8) << data[i][j]; }
1374  G4cout << G4endl;
1375  }
1376  G4cout << "======================================================================"
1377  << G4endl;
1378 }
const G4int NDENSARRAY
const G4int NDENSDATA
int G4int
Definition: G4Types.hh:78
const XML_Char const XML_Char * data
Definition: expat.h:268
G4GLOB_DLL std::ostream G4cout
static constexpr double eV
Definition: G4SIunits.hh:215
#define G4endl
Definition: G4ios.hh:61

Here is the caller graph for this function:

G4double G4DensityEffectData::GetAdensity ( G4int  idx) const
inline

Definition at line 139 of file G4DensityEffectData.hh.

140 {
141  return (idx >= 0 && idx < NDENSDATA) ? data[idx][5] : DBL_MAX;
142 }
const G4int NDENSDATA
const XML_Char const XML_Char * data
Definition: expat.h:268
#define DBL_MAX
Definition: templates.hh:83
G4double G4DensityEffectData::GetAdjustmentFactor ( G4int  idx) const
inline

Definition at line 119 of file G4DensityEffectData.hh.

120 {
121  return (idx >= 0 && idx < NDENSDATA) ? data[idx][1] : DBL_MAX;
122 }
const G4int NDENSDATA
const XML_Char const XML_Char * data
Definition: expat.h:268
#define DBL_MAX
Definition: templates.hh:83
G4double G4DensityEffectData::GetCdensity ( G4int  idx) const
inline

Definition at line 124 of file G4DensityEffectData.hh.

125 {
126  return (idx >= 0 && idx < NDENSDATA) ? data[idx][2] : DBL_MAX;
127 }
const G4int NDENSDATA
const XML_Char const XML_Char * data
Definition: expat.h:268
#define DBL_MAX
Definition: templates.hh:83
G4double G4DensityEffectData::GetDelta0density ( G4int  idx) const
inline

Definition at line 149 of file G4DensityEffectData.hh.

150 {
151  return (idx >= 0 && idx < NDENSDATA) ? data[idx][7] : DBL_MAX;
152 }
const G4int NDENSDATA
const XML_Char const XML_Char * data
Definition: expat.h:268
#define DBL_MAX
Definition: templates.hh:83
G4int G4DensityEffectData::GetElementIndex ( G4int  Z,
G4State  mState 
) const

Definition at line 1302 of file G4DensityEffectData.cc.

1303 {
1304  G4int idx = -1;
1305  if(Z > 0 && Z < NDENSELEM) {
1306  if(st == state[Z]) { idx = indexZ[Z]; }
1307  else if(st == kStateUndefined) { idx = indexZ[Z]; }
1308  }
1309  return idx;
1310 }
const G4int NDENSELEM
int G4int
Definition: G4Types.hh:78
G4double G4DensityEffectData::GetErrorDensity ( G4int  idx) const
inline

Definition at line 154 of file G4DensityEffectData.hh.

155 {
156  return (idx >= 0 && idx < NDENSDATA) ? data[idx][8] : DBL_MAX;
157 }
const G4int NDENSDATA
const XML_Char const XML_Char * data
Definition: expat.h:268
#define DBL_MAX
Definition: templates.hh:83
G4int G4DensityEffectData::GetIndex ( const G4String matName) const

Definition at line 1312 of file G4DensityEffectData.cc.

1313 {
1314  G4int idx = -1;
1315 
1316  for (G4int i=0; i<NDENSDATA; ++i) {
1317  if ( names[i] == matName ) {
1318  idx = i;
1319  break;
1320  }
1321  }
1322  return idx;
1323 }
const G4int NDENSDATA
int G4int
Definition: G4Types.hh:78

Here is the caller graph for this function:

G4double G4DensityEffectData::GetMdensity ( G4int  idx) const
inline

Definition at line 144 of file G4DensityEffectData.hh.

145 {
146  return (idx >= 0 && idx < NDENSDATA) ? data[idx][6] : DBL_MAX;
147 }
const G4int NDENSDATA
const XML_Char const XML_Char * data
Definition: expat.h:268
#define DBL_MAX
Definition: templates.hh:83
G4double G4DensityEffectData::GetMeanIonisationPotential ( G4int  idx) const
inline

Definition at line 159 of file G4DensityEffectData.hh.

160 {
161  return (idx >= 0 && idx < NDENSDATA) ? data[idx][9] : DBL_MAX;
162 }
const G4int NDENSDATA
const XML_Char const XML_Char * data
Definition: expat.h:268
#define DBL_MAX
Definition: templates.hh:83

Here is the caller graph for this function:

G4double G4DensityEffectData::GetPlasmaEnergy ( G4int  idx) const
inline

Definition at line 114 of file G4DensityEffectData.hh.

115 {
116  return (idx >= 0 && idx < NDENSDATA) ? data[idx][0] : DBL_MAX;
117 }
const G4int NDENSDATA
const XML_Char const XML_Char * data
Definition: expat.h:268
#define DBL_MAX
Definition: templates.hh:83
G4double G4DensityEffectData::GetX0density ( G4int  idx) const
inline

Definition at line 129 of file G4DensityEffectData.hh.

130 {
131  return (idx >= 0 && idx < NDENSDATA) ? data[idx][3] : DBL_MAX;
132 }
const G4int NDENSDATA
const XML_Char const XML_Char * data
Definition: expat.h:268
#define DBL_MAX
Definition: templates.hh:83
G4double G4DensityEffectData::GetX1density ( G4int  idx) const
inline

Definition at line 134 of file G4DensityEffectData.hh.

135 {
136  return (idx >= 0 && idx < NDENSDATA) ? data[idx][4] : DBL_MAX;
137 }
const G4int NDENSDATA
const XML_Char const XML_Char * data
Definition: expat.h:268
#define DBL_MAX
Definition: templates.hh:83
void G4DensityEffectData::PrintData ( const G4String matName) const

Definition at line 1336 of file G4DensityEffectData.cc.

1337 {
1338  if("" == matName || "all" == matName) {
1339  DumpData();
1340  return;
1341  }
1342  G4int idx = GetIndex(matName);
1343  if(idx >= 0) {
1344  G4cout << "G4DensityEffectData for <" << matName
1345  << "> index= " << idx << G4endl;
1346  G4cout << "I(eV)= " << data[idx][9]/CLHEP::eV
1347  << "Eplasma(eV)= " << data[idx][0]/CLHEP::eV
1348  << " rho= " << data[idx][1]
1349  << " -C= " << data[idx][2]
1350  << " x0= " << data[idx][3]
1351  << " x1= " << data[idx][4]
1352  << " a= " << data[idx][5]
1353  << " m= " << data[idx][6]
1354  << " d0= " << data[idx][7]
1355  << " err= " << data[idx][8]
1356  << G4endl;
1357  } else {
1358  G4cout << "G4DensityEffectData does not have <" << matName << ">" << G4endl;
1359  }
1360 }
G4int GetIndex(const G4String &matName) const
int G4int
Definition: G4Types.hh:78
const XML_Char const XML_Char * data
Definition: expat.h:268
G4GLOB_DLL std::ostream G4cout
static constexpr double eV
#define G4endl
Definition: G4ios.hh:61

Here is the call graph for this function:

Here is the caller graph for this function:


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