#include <G4DensityEffectData.hh>
Public Member Functions | |
G4DensityEffectData () | |
~G4DensityEffectData () | |
G4int | GetElementIndex (G4int Z, G4State mState) |
G4int | GetIndex (const G4String &matName) |
void | PrintData (const G4String &matName) |
void | DumpData () |
G4double | GetPlasmaEnergy (G4int idx) |
G4double | GetAdjustmentFactor (G4int idx) |
G4double | GetCdensity (G4int idx) |
G4double | GetX0density (G4int idx) |
G4double | GetX1density (G4int idx) |
G4double | GetAdensity (G4int idx) |
G4double | GetMdensity (G4int idx) |
G4double | GetDelta0density (G4int idx) |
G4double | GetErrorDensity (G4int idx) |
Definition at line 61 of file G4DensityEffectData.hh.
G4DensityEffectData::G4DensityEffectData | ( | ) |
G4DensityEffectData::~G4DensityEffectData | ( | ) |
void G4DensityEffectData::DumpData | ( | ) |
Definition at line 1360 of file G4DensityEffectData.cc.
References G4cout, G4endl, and NDENSDATA.
Referenced by PrintData().
01361 { 01362 G4cout << "======================================================================" 01363 << G4endl; 01364 G4cout << " Material Eplasma(eV) rho -C x0 x1 a m d0 err" 01365 << G4endl; 01366 G4cout << "======================================================================" 01367 << G4endl; 01368 for(G4int i=0; i<NDENSDATA; ++i) { 01369 G4cout << std::setw(3) << i << ". " << std::setw(25) << names[i] 01370 << std::setw(8) << data[i][0]/eV; 01371 for(G4int j=1; j<NDENSARRAY; ++j) { G4cout << std::setw(8) << data[i][j]; } 01372 G4cout << G4endl; 01373 } 01374 G4cout << "======================================================================" 01375 << G4endl; 01376 }
Definition at line 1301 of file G4DensityEffectData.cc.
References kStateUndefined, and NDENSELEM.
01302 { 01303 G4int idx = -1; 01304 if(Z > 0 && Z < NDENSELEM) { 01305 if(st == state[Z]) { idx = indexZ[Z]; } 01306 else if(st == kStateUndefined) { idx = indexZ[Z]; } 01307 } 01308 return idx; 01309 }
Definition at line 1311 of file G4DensityEffectData.cc.
References NDENSDATA.
Referenced by PrintData().
01312 { 01313 G4int idx = -1; 01314 01315 for (G4int i=0; i<NDENSDATA; ++i) { 01316 if ( names[i] == matName ) { 01317 idx = i; 01318 break; 01319 } 01320 } 01321 01322 return idx; 01323 }
void G4DensityEffectData::PrintData | ( | const G4String & | matName | ) |
Definition at line 1335 of file G4DensityEffectData.cc.
References DumpData(), G4cout, G4endl, and GetIndex().
Referenced by G4NistMessenger::SetNewValue().
01336 { 01337 if("" == matName || "all" == matName) { 01338 DumpData(); 01339 return; 01340 } 01341 G4int idx = GetIndex(matName); 01342 if(idx >= 0) { 01343 G4cout << "G4DensityEffectData for <" << matName 01344 << "> index= " << idx << G4endl; 01345 G4cout << "Eplasma(eV)= " << data[idx][0]/eV 01346 << " rho= " << data[idx][1] 01347 << " -C= " << data[idx][2] 01348 << " x0= " << data[idx][3] 01349 << " x1= " << data[idx][4] 01350 << " a= " << data[idx][5] 01351 << " m= " << data[idx][6] 01352 << " d0= " << data[idx][7] 01353 << " err= " << data[idx][8] 01354 << G4endl; 01355 } else { 01356 G4cout << "G4DensityEffectData does not have <" << matName << ">" << G4endl; 01357 } 01358 }