Geant4-11
|
#include <G4VCrossSectionHandler.hh>
Protected Member Functions | |
void | ActiveElements () |
virtual std::vector< G4VEMDataSet * > * | BuildCrossSectionsForMaterials (const G4DataVector &energyVector, const G4DataVector *energyCuts=nullptr)=0 |
virtual G4VDataSetAlgorithm * | CreateInterpolation () |
const G4VDataSetAlgorithm * | GetInterpolation () const |
G4int | NumberOfComponents (G4int Z) const |
Private Attributes | |
G4DataVector | activeZ |
std::vector< G4VEMDataSet * > * | crossSections |
std::map< G4int, G4VEMDataSet *, std::less< G4int > > | dataMap |
G4double | eMax |
G4double | eMin |
G4VDataSetAlgorithm * | interpolation |
G4int | nBins |
G4double | unit1 |
G4double | unit2 |
G4int | zMax |
G4int | zMin |
Definition at line 63 of file G4VCrossSectionHandler.hh.
|
explicit |
Definition at line 88 of file G4VCrossSectionHandler.cc.
References ActiveElements(), crossSections, Initialise(), and interpolation.
|
explicit |
Definition at line 98 of file G4VCrossSectionHandler.cc.
References ActiveElements(), and crossSections.
|
virtual |
Definition at line 116 of file G4VCrossSectionHandler.cc.
References crossSections, dataMap, interpolation, CLHEP::detail::n, and pos.
|
delete |
|
protected |
Definition at line 658 of file G4VCrossSectionHandler.cc.
References activeZ, G4DataVector::contains(), FatalException, G4Exception(), G4Material::GetMaterialTable(), G4Material::GetNumberOfMaterials(), eplot::material, Z, zMax, and zMin.
Referenced by Clear(), and G4VCrossSectionHandler().
|
protectedpure virtual |
Implemented in G4eIonisationCrossSectionHandler, G4CrossSectionHandler, and G4eCrossSectionHandler.
Referenced by BuildMeanFreePathForMaterials().
G4VEMDataSet * G4VCrossSectionHandler::BuildMeanFreePathForMaterials | ( | const G4DataVector * | energyCuts = nullptr | ) |
Definition at line 441 of file G4VCrossSectionHandler.cc.
References G4VEMDataSet::AddComponent(), BuildCrossSectionsForMaterials(), CreateInterpolation(), crossSections, DBL_MAX, eMax, eMin, G4INCL::KinematicsUtils::energy(), FatalException, G4VEMDataSet::FindValue(), G4Exception(), G4VEMDataSet::GetComponent(), G4ProductionCutsTable::GetProductionCutsTable(), G4ProductionCutsTable::GetTableSize(), nBins, and G4VEMDataSet::NumberOfComponents().
Referenced by G4LivermoreIonisationModel::Initialise().
void G4VCrossSectionHandler::Clear | ( | ) |
Definition at line 345 of file G4VCrossSectionHandler.cc.
References ActiveElements(), activeZ, dataMap, and pos.
Referenced by export_G4VCrossSectionHandler(), G4LivermoreIonisationCrossSection::Initialise(), and G4LivermoreIonisationModel::Initialise().
|
protectedvirtual |
Definition at line 686 of file G4VCrossSectionHandler.cc.
Referenced by G4CrossSectionHandler::BuildCrossSectionsForMaterials(), BuildMeanFreePathForMaterials(), and Initialise().
Definition at line 366 of file G4VCrossSectionHandler.cc.
References dataMap, G4INCL::KinematicsUtils::energy(), G4VEMDataSet::FindValue(), G4cout, G4endl, pos, and Z.
Referenced by G4eIonisationCrossSectionHandler::BuildCrossSectionsForMaterials(), G4CrossSectionHandler::BuildCrossSectionsForMaterials(), G4LivermoreIonisationModel::ComputeDEDXPerVolume(), G4LivermoreIonisationCrossSection::CrossSection(), G4eIonisationCrossSectionHandler::GetCrossSectionAboveThresholdForElement(), SelectRandomShell(), and ValueForMaterial().
Definition at line 386 of file G4VCrossSectionHandler.cc.
References dataMap, G4INCL::KinematicsUtils::energy(), G4VEMDataSet::FindValue(), G4cout, G4endl, G4VEMDataSet::GetComponent(), G4VEMDataSet::NumberOfComponents(), pos, and Z.
|
inlineprotected |
void G4VCrossSectionHandler::Initialise | ( | G4VDataSetAlgorithm * | interpolation = nullptr , |
G4double | minE = 250*CLHEP::eV , |
||
G4double | maxE = 100*CLHEP::GeV , |
||
G4int | numberOfBins = 200 , |
||
G4double | unitE = CLHEP::MeV , |
||
G4double | unitData = CLHEP::barn , |
||
G4int | minZ = 1 , |
||
G4int | maxZ = 99 |
||
) |
Definition at line 141 of file G4VCrossSectionHandler.cc.
References CreateInterpolation(), eMax, eMin, interpolation, maxZ, nBins, unit1, unit2, zMax, and zMin.
Referenced by export_G4VCrossSectionHandler(), G4eCrossSectionHandler::G4eCrossSectionHandler(), G4eIonisationCrossSectionHandler::G4eIonisationCrossSectionHandler(), and G4VCrossSectionHandler().
void G4VCrossSectionHandler::LoadData | ( | const G4String & | dataFile | ) |
Definition at line 185 of file G4VCrossSectionHandler.cc.
References activeZ, G4VDataSetAlgorithm::Clone(), dataMap, FatalException, geant4_check_module_cycles::file, G4Exception(), interpolation, unit1, unit2, and Z.
Referenced by export_G4VCrossSectionHandler().
void G4VCrossSectionHandler::LoadNonLogData | ( | const G4String & | dataFile | ) |
Definition at line 260 of file G4VCrossSectionHandler.cc.
References activeZ, G4VDataSetAlgorithm::Clone(), dataMap, FatalException, geant4_check_module_cycles::file, G4Exception(), interpolation, unit1, unit2, and Z.
void G4VCrossSectionHandler::LoadShellData | ( | const G4String & | dataFile | ) |
Definition at line 329 of file G4VCrossSectionHandler.cc.
References activeZ, G4VDataSetAlgorithm::Clone(), dataMap, interpolation, G4VEMDataSet::LoadData(), and Z.
Referenced by export_G4VCrossSectionHandler(), G4LivermoreIonisationCrossSection::Initialise(), and G4LivermoreIonisationModel::Initialise().
Definition at line 694 of file G4VCrossSectionHandler.cc.
References dataMap, G4cout, G4endl, CLHEP::detail::n, G4VEMDataSet::NumberOfComponents(), pos, and Z.
Referenced by G4eIonisationCrossSectionHandler::BuildCrossSectionsForMaterials(), and G4eIonisationCrossSectionHandler::GetCrossSectionAboveThresholdForElement().
|
delete |
void G4VCrossSectionHandler::PrintData | ( | void | ) | const |
Definition at line 169 of file G4VCrossSectionHandler.cc.
References dataMap, G4cout, G4endl, pos, and G4VEMDataSet::PrintData().
Referenced by export_G4VCrossSectionHandler(), and G4LivermoreIonisationModel::Initialise().
G4int G4VCrossSectionHandler::SelectRandomAtom | ( | const G4MaterialCutsCouple * | couple, |
G4double | e | ||
) | const |
Definition at line 531 of file G4VCrossSectionHandler.cc.
References G4VEMDataSet::FindValue(), G4UniformRand, G4VEMDataSet::GetComponent(), G4MaterialCutsCouple::GetIndex(), G4MaterialCutsCouple::GetMaterial(), eplot::material, and Z.
Referenced by G4LivermoreIonisationModel::SampleSecondaries().
const G4Element * G4VCrossSectionHandler::SelectRandomElement | ( | const G4MaterialCutsCouple * | material, |
G4double | e | ||
) | const |
Definition at line 572 of file G4VCrossSectionHandler.cc.
References G4VEMDataSet::FindValue(), G4cout, G4endl, G4UniformRand, G4VEMDataSet::GetComponent(), G4MaterialCutsCouple::GetIndex(), G4MaterialCutsCouple::GetMaterial(), and eplot::material.
Referenced by export_G4VCrossSectionHandler().
Definition at line 618 of file G4VCrossSectionHandler.cc.
References dataMap, FatalException, G4VEMDataSet::FindValue(), FindValue(), G4Exception(), G4UniformRand, G4VEMDataSet::GetComponent(), G4VEMDataSet::NumberOfComponents(), pos, and Z.
Referenced by export_G4VCrossSectionHandler(), and G4LivermoreIonisationModel::SampleSecondaries().
G4double G4VCrossSectionHandler::ValueForMaterial | ( | const G4Material * | material, |
G4double | e | ||
) | const |
Definition at line 420 of file G4VCrossSectionHandler.cc.
References G4INCL::KinematicsUtils::energy(), FindValue(), eplot::material, and Z.
Referenced by export_G4VCrossSectionHandler().
|
private |
Definition at line 118 of file G4VCrossSectionHandler.hh.
Referenced by ActiveElements(), Clear(), LoadData(), LoadNonLogData(), and LoadShellData().
|
private |
Definition at line 121 of file G4VCrossSectionHandler.hh.
Referenced by BuildMeanFreePathForMaterials(), G4VCrossSectionHandler(), and ~G4VCrossSectionHandler().
|
private |
Definition at line 120 of file G4VCrossSectionHandler.hh.
Referenced by Clear(), FindValue(), LoadData(), LoadNonLogData(), LoadShellData(), NumberOfComponents(), PrintData(), SelectRandomShell(), and ~G4VCrossSectionHandler().
|
private |
Definition at line 124 of file G4VCrossSectionHandler.hh.
Referenced by BuildMeanFreePathForMaterials(), and Initialise().
|
private |
Definition at line 123 of file G4VCrossSectionHandler.hh.
Referenced by BuildMeanFreePathForMaterials(), and Initialise().
|
private |
Definition at line 117 of file G4VCrossSectionHandler.hh.
Referenced by G4VCrossSectionHandler(), GetInterpolation(), Initialise(), LoadData(), LoadNonLogData(), LoadShellData(), and ~G4VCrossSectionHandler().
|
private |
Definition at line 130 of file G4VCrossSectionHandler.hh.
Referenced by BuildMeanFreePathForMaterials(), and Initialise().
|
private |
Definition at line 125 of file G4VCrossSectionHandler.hh.
Referenced by Initialise(), LoadData(), and LoadNonLogData().
|
private |
Definition at line 126 of file G4VCrossSectionHandler.hh.
Referenced by Initialise(), LoadData(), and LoadNonLogData().
|
private |
Definition at line 129 of file G4VCrossSectionHandler.hh.
Referenced by ActiveElements(), and Initialise().
|
private |
Definition at line 128 of file G4VCrossSectionHandler.hh.
Referenced by ActiveElements(), and Initialise().