Geant4  10.04.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
G4VCrossSectionHandler Class Referenceabstract
Inheritance diagram for G4VCrossSectionHandler:
G4BremsstrahlungCrossSectionHandler G4CrossSectionHandler G4eCrossSectionHandler G4eIonisationCrossSectionHandler

Public Member Functions

 G4VCrossSectionHandler ()
 
 G4VCrossSectionHandler (G4VDataSetAlgorithm *interpolation, G4double minE=250 *CLHEP::eV, G4double maxE=100 *CLHEP::GeV, G4int nBins=200, G4double unitE=CLHEP::MeV, G4double unitData=CLHEP::barn, G4int minZ=1, G4int maxZ=99)
 
virtual ~G4VCrossSectionHandler ()
 
void Initialise (G4VDataSetAlgorithm *interpolation=0, 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)
 
G4int SelectRandomAtom (const G4MaterialCutsCouple *couple, G4double e) const
 
const G4ElementSelectRandomElement (const G4MaterialCutsCouple *material, G4double e) const
 
G4int SelectRandomShell (G4int Z, G4double e) const
 
G4VEMDataSetBuildMeanFreePathForMaterials (const G4DataVector *energyCuts=0)
 
G4double FindValue (G4int Z, G4double e) const
 
G4double FindValue (G4int Z, G4double e, G4int shellIndex) const
 
G4double ValueForMaterial (const G4Material *material, G4double e) const
 
void LoadData (const G4String &dataFile)
 
void LoadNonLogData (const G4String &dataFile)
 
void LoadShellData (const G4String &dataFile)
 
void PrintData () const
 
void Clear ()
 

Protected Member Functions

G4int NumberOfComponents (G4int Z) const
 
void ActiveElements ()
 
virtual std::vector
< G4VEMDataSet * > * 
BuildCrossSectionsForMaterials (const G4DataVector &energyVector, const G4DataVector *energyCuts=0)=0
 
virtual G4VDataSetAlgorithmCreateInterpolation ()
 
const G4VDataSetAlgorithmGetInterpolation () const
 

Private Member Functions

 G4VCrossSectionHandler (const G4VCrossSectionHandler &)
 
G4VCrossSectionHandleroperator= (const G4VCrossSectionHandler &right)
 

Private Attributes

G4VDataSetAlgorithminterpolation
 
G4double eMin
 
G4double eMax
 
G4int nBins
 
G4double unit1
 
G4double unit2
 
G4int zMin
 
G4int zMax
 
G4DataVector activeZ
 
std::map< G4int, G4VEMDataSet
*, std::less< G4int > > 
dataMap
 
std::vector< G4VEMDataSet * > * crossSections
 

Constructor & Destructor Documentation

G4VCrossSectionHandler ( G4VDataSetAlgorithm interpolation,
G4double  minE = 250 *CLHEP::eV,
G4double  maxE = 100 *CLHEP::GeV,
G4int  nBins = 200,
G4double  unitE = CLHEP::MeV,
G4double  unitData = CLHEP::barn,
G4int  minZ = 1,
G4int  maxZ = 99 
)
virtual ~G4VCrossSectionHandler ( )
virtual

Member Function Documentation

void Initialise ( G4VDataSetAlgorithm interpolation = 0,
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 
)
G4int SelectRandomAtom ( const G4MaterialCutsCouple couple,
G4double  e 
) const
const G4Element* SelectRandomElement ( const G4MaterialCutsCouple material,
G4double  e 
) const
G4int SelectRandomShell ( G4int  Z,
G4double  e 
) const
G4VEMDataSet* BuildMeanFreePathForMaterials ( const G4DataVector energyCuts = 0)
G4double FindValue ( G4int  Z,
G4double  e 
) const
G4double FindValue ( G4int  Z,
G4double  e,
G4int  shellIndex 
) const
G4double ValueForMaterial ( const G4Material material,
G4double  e 
) const
void LoadData ( const G4String dataFile)
void LoadNonLogData ( const G4String dataFile)
void LoadShellData ( const G4String dataFile)
void PrintData ( ) const
void Clear ( )
G4int NumberOfComponents ( G4int  Z) const
protected
void ActiveElements ( )
protected
virtual std::vector<G4VEMDataSet*>* BuildCrossSectionsForMaterials ( const G4DataVector energyVector,
const G4DataVector energyCuts = 0 
)
protectedpure virtual
virtual G4VDataSetAlgorithm* CreateInterpolation ( )
protectedvirtual
const G4VDataSetAlgorithm* GetInterpolation ( ) const
protected

References interpolation.

G4VCrossSectionHandler& operator= ( const G4VCrossSectionHandler right)
private

Member Data Documentation

G4VDataSetAlgorithm* interpolation
private

Referenced by GetInterpolation().

G4double eMin
private
G4double eMax
private
G4int nBins
private
G4double unit1
private
G4double unit2
private
G4int zMin
private
G4int zMax
private
G4DataVector activeZ
private
std::map<G4int,G4VEMDataSet*,std::less<G4int> > dataMap
private
std::vector<G4VEMDataSet*>* crossSections
private