Geant4  10.00.p03
G4EMDataSet Class Reference

#include <G4EMDataSet.hh>

+ Inheritance diagram for G4EMDataSet:
+ Collaboration diagram for G4EMDataSet:

Public Member Functions

 G4EMDataSet (G4int argZ, G4VDataSetAlgorithm *algo, G4double xUnit=CLHEP::MeV, G4double yUnit=CLHEP::barn, G4bool random=false)
 
 G4EMDataSet (G4int argZ, G4DataVector *xData, G4DataVector *data, G4VDataSetAlgorithm *algo, G4double xUnit=CLHEP::MeV, G4double yUnit=CLHEP::barn, G4bool random=false)
 
 G4EMDataSet (G4int argZ, G4DataVector *xData, G4DataVector *data, G4DataVector *xLogData, G4DataVector *Logdata, G4VDataSetAlgorithm *algo, G4double xUnit=CLHEP::MeV, G4double yUnit=CLHEP::barn, G4bool random=false)
 
virtual ~G4EMDataSet ()
 
virtual G4double FindValue (G4double x, G4int componentId=0) const
 
virtual void PrintData (void) const
 
virtual const G4VEMDataSetGetComponent (G4int) const
 
virtual void AddComponent (G4VEMDataSet *)
 
virtual size_t NumberOfComponents (void) const
 
virtual const G4DataVectorGetEnergies (G4int) const
 
virtual const G4DataVectorGetData (G4int) const
 
virtual const G4DataVectorGetLogEnergies (G4int) const
 
virtual const G4DataVectorGetLogData (G4int) const
 
virtual void SetEnergiesData (G4DataVector *xData, G4DataVector *data, G4int componentId)
 
virtual void SetLogEnergiesData (G4DataVector *xData, G4DataVector *data, G4DataVector *xLogData, G4DataVector *Logdata, G4int componentId)
 
virtual G4bool LoadData (const G4String &fileName)
 
virtual G4bool LoadNonLogData (const G4String &fileName)
 
virtual G4bool SaveData (const G4String &fileName) const
 
virtual G4double RandomSelect (G4int componentId=0) const
 
- Public Member Functions inherited from G4VEMDataSet
 G4VEMDataSet ()
 
virtual ~G4VEMDataSet ()
 

Private Member Functions

size_t FindLowerBound (G4double energy) const
 
size_t FindLowerBound (G4double x, G4DataVector *values) const
 
G4double IntegrationFunction (G4double x)
 
virtual void BuildPdf ()
 
G4String FullFileName (const G4String &fileName) const
 
 G4EMDataSet ()
 
 G4EMDataSet (const G4EMDataSet &copy)
 
G4EMDataSetoperator= (const G4EMDataSet &right)
 

Private Attributes

G4int z
 
G4DataVectorenergies
 
G4DataVectordata
 
G4DataVectorlog_energies
 
G4DataVectorlog_data
 
G4VDataSetAlgorithmalgorithm
 
G4double unitEnergies
 
G4double unitData
 
G4DataVectorpdf
 
G4bool randomSet
 

Detailed Description

Definition at line 58 of file G4EMDataSet.hh.

Constructor & Destructor Documentation

G4EMDataSet::G4EMDataSet ( G4int  argZ,
G4VDataSetAlgorithm algo,
G4double  xUnit = CLHEP::MeV,
G4double  yUnit = CLHEP::barn,
G4bool  random = false 
)

Definition at line 62 of file G4EMDataSet.cc.

References algorithm, BuildPdf(), FatalException, G4Exception(), and randomSet.

+ Here is the call graph for this function:

G4EMDataSet::G4EMDataSet ( G4int  argZ,
G4DataVector xData,
G4DataVector data,
G4VDataSetAlgorithm algo,
G4double  xUnit = CLHEP::MeV,
G4double  yUnit = CLHEP::barn,
G4bool  random = false 
)

Definition at line 84 of file G4EMDataSet.cc.

References algorithm, BuildPdf(), data, energies, FatalException, G4Exception(), and randomSet.

+ Here is the call graph for this function:

G4EMDataSet::G4EMDataSet ( G4int  argZ,
G4DataVector xData,
G4DataVector data,
G4DataVector xLogData,
G4DataVector Logdata,
G4VDataSetAlgorithm algo,
G4double  xUnit = CLHEP::MeV,
G4double  yUnit = CLHEP::barn,
G4bool  random = false 
)

Definition at line 116 of file G4EMDataSet.cc.

References algorithm, BuildPdf(), data, energies, FatalException, G4Exception(), log_data, log_energies, and randomSet.

+ Here is the call graph for this function:

G4EMDataSet::~G4EMDataSet ( )
virtual

Definition at line 157 of file G4EMDataSet.cc.

References algorithm, data, energies, log_data, log_energies, and pdf.

G4EMDataSet::G4EMDataSet ( )
private
G4EMDataSet::G4EMDataSet ( const G4EMDataSet copy)
private

Member Function Documentation

virtual void G4EMDataSet::AddComponent ( G4VEMDataSet )
inlinevirtual

Implements G4VEMDataSet.

Definition at line 93 of file G4EMDataSet.hh.

void G4EMDataSet::BuildPdf ( )
privatevirtual

Definition at line 526 of file G4EMDataSet.cc.

References data, IntegrationFunction(), G4Integrator< T, F >::Legendre96(), and pdf.

Referenced by G4EMDataSet(), LoadData(), and LoadNonLogData().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

size_t G4EMDataSet::FindLowerBound ( G4double  energy) const
private

Definition at line 476 of file G4EMDataSet.cc.

References energies.

Referenced by FindValue(), IntegrationFunction(), and RandomSelect().

+ Here is the caller graph for this function:

size_t G4EMDataSet::FindLowerBound ( G4double  x,
G4DataVector values 
) const
private

Definition at line 493 of file G4EMDataSet.cc.

G4double G4EMDataSet::FindValue ( G4double  x,
G4int  componentId = 0 
) const
virtual

Implements G4VEMDataSet.

Definition at line 168 of file G4EMDataSet.cc.

References algorithm, G4VDataSetAlgorithm::Calculate(), data, energies, FatalException, FindLowerBound(), G4Exception(), log_data, and log_energies.

+ Here is the call graph for this function:

G4String G4EMDataSet::FullFileName ( const G4String fileName) const
private

Definition at line 510 of file G4EMDataSet.cc.

References FatalException, G4Exception(), and z.

Referenced by LoadData(), LoadNonLogData(), and SaveData().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

virtual const G4VEMDataSet* G4EMDataSet::GetComponent ( G4int  ) const
inlinevirtual

Implements G4VEMDataSet.

Definition at line 91 of file G4EMDataSet.hh.

virtual const G4DataVector& G4EMDataSet::GetData ( G4int  ) const
inlinevirtual

Implements G4VEMDataSet.

Definition at line 98 of file G4EMDataSet.hh.

References data.

virtual const G4DataVector& G4EMDataSet::GetEnergies ( G4int  ) const
inlinevirtual

Implements G4VEMDataSet.

Definition at line 97 of file G4EMDataSet.hh.

References energies.

virtual const G4DataVector& G4EMDataSet::GetLogData ( G4int  ) const
inlinevirtual

Implements G4VEMDataSet.

Definition at line 100 of file G4EMDataSet.hh.

References log_data.

virtual const G4DataVector& G4EMDataSet::GetLogEnergies ( G4int  ) const
inlinevirtual

Implements G4VEMDataSet.

Definition at line 99 of file G4EMDataSet.hh.

References log_energies.

G4double G4EMDataSet::IntegrationFunction ( G4double  x)
private

Definition at line 584 of file G4EMDataSet.cc.

References algorithm, G4VDataSetAlgorithm::Calculate(), G4LinInterpolation::Calculate(), data, energies, and FindLowerBound().

Referenced by BuildPdf().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4EMDataSet::LoadData ( const G4String fileName)
virtual

Implements G4VEMDataSet.

Definition at line 292 of file G4EMDataSet.cc.

References a, BuildPdf(), data, energies, FatalException, FullFileName(), G4Exception(), log_data, log_energies, randomSet, unitData, and unitEnergies.

+ Here is the call graph for this function:

G4bool G4EMDataSet::LoadNonLogData ( const G4String fileName)
virtual

Implements G4VEMDataSet.

Definition at line 350 of file G4EMDataSet.cc.

References a, BuildPdf(), FatalException, FullFileName(), G4Exception(), randomSet, SetEnergiesData(), unitData, and unitEnergies.

+ Here is the call graph for this function:

virtual size_t G4EMDataSet::NumberOfComponents ( void  ) const
inlinevirtual

Implements G4VEMDataSet.

Definition at line 95 of file G4EMDataSet.hh.

G4EMDataSet& G4EMDataSet::operator= ( const G4EMDataSet right)
private
void G4EMDataSet::PrintData ( void  ) const
virtual

Implements G4VEMDataSet.

Definition at line 193 of file G4EMDataSet.cc.

References data, energies, G4cout, G4endl, pdf, unitData, and unitEnergies.

G4double G4EMDataSet::RandomSelect ( G4int  componentId = 0) const
virtual

Implements G4VEMDataSet.

Definition at line 555 of file G4EMDataSet.cc.

References algorithm, G4VDataSetAlgorithm::Calculate(), G4LinInterpolation::Calculate(), energies, FatalException, FindLowerBound(), G4Exception(), G4UniformRand, and pdf.

+ Here is the call graph for this function:

G4bool G4EMDataSet::SaveData ( const G4String fileName) const
virtual

Implements G4VEMDataSet.

Definition at line 404 of file G4EMDataSet.cc.

References data, energies, FatalException, FullFileName(), G4Exception(), left, unitData, and unitEnergies.

+ Here is the call graph for this function:

void G4EMDataSet::SetEnergiesData ( G4DataVector xData,
G4DataVector data,
G4int  componentId 
)
virtual

Implements G4VEMDataSet.

Definition at line 213 of file G4EMDataSet.cc.

References data, energies, FatalException, and G4Exception().

Referenced by LoadNonLogData().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4EMDataSet::SetLogEnergiesData ( G4DataVector xData,
G4DataVector data,
G4DataVector xLogData,
G4DataVector Logdata,
G4int  componentId 
)
virtual

Implements G4VEMDataSet.

Definition at line 236 of file G4EMDataSet.cc.

References data, energies, FatalException, G4Exception(), log_data, and log_energies.

+ Here is the call graph for this function:

Member Data Documentation

G4VDataSetAlgorithm* G4EMDataSet::algorithm
private
G4DataVector* G4EMDataSet::log_data
private
G4DataVector* G4EMDataSet::log_energies
private
G4DataVector* G4EMDataSet::pdf
private

Definition at line 146 of file G4EMDataSet.hh.

Referenced by BuildPdf(), PrintData(), RandomSelect(), and ~G4EMDataSet().

G4bool G4EMDataSet::randomSet
private

Definition at line 147 of file G4EMDataSet.hh.

Referenced by G4EMDataSet(), LoadData(), and LoadNonLogData().

G4double G4EMDataSet::unitData
private

Definition at line 144 of file G4EMDataSet.hh.

Referenced by LoadData(), LoadNonLogData(), PrintData(), and SaveData().

G4double G4EMDataSet::unitEnergies
private

Definition at line 143 of file G4EMDataSet.hh.

Referenced by LoadData(), LoadNonLogData(), PrintData(), and SaveData().

G4int G4EMDataSet::z
private

Definition at line 134 of file G4EMDataSet.hh.

Referenced by FullFileName().


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