Geant4  10.00.p01
G4CompositeEMDataSet Class Reference

#include <G4CompositeEMDataSet.hh>

+ Inheritance diagram for G4CompositeEMDataSet:
+ Collaboration diagram for G4CompositeEMDataSet:

Public Member Functions

 G4CompositeEMDataSet (G4VDataSetAlgorithm *argAlgorithm, G4double eUnit=CLHEP::MeV, G4double dataUnit=CLHEP::barn, G4int zMin=1, G4int zMax=99)
 
virtual ~G4CompositeEMDataSet ()
 
virtual G4double FindValue (G4double x, G4int componentId=0) const
 
virtual void PrintData (void) const
 
virtual const G4VEMDataSetGetComponent (G4int componentId) const
 
virtual void AddComponent (G4VEMDataSet *dataSet)
 
virtual size_t NumberOfComponents () const
 
virtual const G4DataVectorGetEnergies (G4int componentId) const
 
virtual const G4DataVectorGetData (G4int componentId) const
 
virtual const G4DataVectorGetLogEnergies (G4int componentId) const
 
virtual const G4DataVectorGetLogData (G4int componentId) const
 
virtual void SetEnergiesData (G4DataVector *x, 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) const
 
- Public Member Functions inherited from G4VEMDataSet
 G4VEMDataSet ()
 
virtual ~G4VEMDataSet ()
 

Private Member Functions

void CleanUpComponents (void)
 
 G4CompositeEMDataSet ()
 
 G4CompositeEMDataSet (const G4CompositeEMDataSet &copy)
 
G4CompositeEMDataSetoperator= (const G4CompositeEMDataSet &right)
 

Private Attributes

std::vector< G4VEMDataSet * > components
 
G4VDataSetAlgorithmalgorithm
 
G4double unitEnergies
 
G4double unitData
 
G4int minZ
 
G4int maxZ
 

Detailed Description

Definition at line 59 of file G4CompositeEMDataSet.hh.

Constructor & Destructor Documentation

G4CompositeEMDataSet::G4CompositeEMDataSet ( G4VDataSetAlgorithm argAlgorithm,
G4double  eUnit = CLHEP::MeV,
G4double  dataUnit = CLHEP::barn,
G4int  zMin = 1,
G4int  zMax = 99 
)

Definition at line 57 of file G4CompositeEMDataSet.cc.

References algorithm, FatalException, and G4Exception().

+ Here is the call graph for this function:

G4CompositeEMDataSet::~G4CompositeEMDataSet ( )
virtual

Definition at line 77 of file G4CompositeEMDataSet.cc.

References algorithm, and CleanUpComponents().

+ Here is the call graph for this function:

G4CompositeEMDataSet::G4CompositeEMDataSet ( )
private
G4CompositeEMDataSet::G4CompositeEMDataSet ( const G4CompositeEMDataSet copy)
private

Member Function Documentation

virtual void G4CompositeEMDataSet::AddComponent ( G4VEMDataSet dataSet)
inlinevirtual

Implements G4VEMDataSet.

Definition at line 75 of file G4CompositeEMDataSet.hh.

References components.

Referenced by LoadData(), and LoadNonLogData().

+ Here is the caller graph for this function:

void G4CompositeEMDataSet::CleanUpComponents ( void  )
private

Definition at line 213 of file G4CompositeEMDataSet.cc.

References components.

Referenced by LoadData(), LoadNonLogData(), and ~G4CompositeEMDataSet().

+ Here is the caller graph for this function:

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

Implements G4VEMDataSet.

Definition at line 84 of file G4CompositeEMDataSet.cc.

References FatalException, G4VEMDataSet::FindValue(), G4Exception(), and GetComponent().

+ Here is the call graph for this function:

virtual const G4VEMDataSet* G4CompositeEMDataSet::GetComponent ( G4int  componentId) const
inlinevirtual

Implements G4VEMDataSet.

Definition at line 74 of file G4CompositeEMDataSet.hh.

References components.

Referenced by FindValue(), GetData(), GetEnergies(), GetLogData(), GetLogEnergies(), PrintData(), RandomSelect(), and SaveData().

+ Here is the caller graph for this function:

virtual const G4DataVector& G4CompositeEMDataSet::GetData ( G4int  componentId) const
inlinevirtual

Implements G4VEMDataSet.

Definition at line 79 of file G4CompositeEMDataSet.hh.

References GetComponent(), and G4VEMDataSet::GetData().

+ Here is the call graph for this function:

virtual const G4DataVector& G4CompositeEMDataSet::GetEnergies ( G4int  componentId) const
inlinevirtual

Implements G4VEMDataSet.

Definition at line 78 of file G4CompositeEMDataSet.hh.

References GetComponent(), and G4VEMDataSet::GetEnergies().

+ Here is the call graph for this function:

virtual const G4DataVector& G4CompositeEMDataSet::GetLogData ( G4int  componentId) const
inlinevirtual

Implements G4VEMDataSet.

Definition at line 81 of file G4CompositeEMDataSet.hh.

References GetComponent(), and G4VEMDataSet::GetLogData().

+ Here is the call graph for this function:

virtual const G4DataVector& G4CompositeEMDataSet::GetLogEnergies ( G4int  componentId) const
inlinevirtual

Implements G4VEMDataSet.

Definition at line 80 of file G4CompositeEMDataSet.hh.

References GetComponent(), and G4VEMDataSet::GetLogEnergies().

+ Here is the call graph for this function:

G4bool G4CompositeEMDataSet::LoadData ( const G4String fileName)
virtual

Implements G4VEMDataSet.

Definition at line 155 of file G4CompositeEMDataSet.cc.

References AddComponent(), algorithm, CleanUpComponents(), G4VDataSetAlgorithm::Clone(), G4VEMDataSet::LoadData(), maxZ, minZ, unitData, unitEnergies, and z.

+ Here is the call graph for this function:

G4bool G4CompositeEMDataSet::LoadNonLogData ( const G4String fileName)
virtual

Implements G4VEMDataSet.

Definition at line 173 of file G4CompositeEMDataSet.cc.

References AddComponent(), algorithm, CleanUpComponents(), G4VDataSetAlgorithm::Clone(), G4VEMDataSet::LoadNonLogData(), maxZ, minZ, unitData, unitEnergies, and z.

+ Here is the call graph for this function:

virtual size_t G4CompositeEMDataSet::NumberOfComponents ( void  ) const
inlinevirtual

Implements G4VEMDataSet.

Definition at line 76 of file G4CompositeEMDataSet.hh.

References components.

Referenced by PrintData().

+ Here is the caller graph for this function:

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

Implements G4VEMDataSet.

Definition at line 99 of file G4CompositeEMDataSet.cc.

References G4cout, G4endl, GetComponent(), n, NumberOfComponents(), and G4VEMDataSet::PrintData().

+ Here is the call graph for this function:

G4double G4CompositeEMDataSet::RandomSelect ( G4int  componentId) const
virtual

Implements G4VEMDataSet.

Definition at line 224 of file G4CompositeEMDataSet.cc.

References components, GetComponent(), and G4VEMDataSet::RandomSelect().

+ Here is the call graph for this function:

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

Implements G4VEMDataSet.

Definition at line 191 of file G4CompositeEMDataSet.cc.

References FatalException, G4Exception(), GetComponent(), maxZ, minZ, G4VEMDataSet::SaveData(), and z.

+ Here is the call graph for this function:

void G4CompositeEMDataSet::SetEnergiesData ( G4DataVector x,
G4DataVector data,
G4int  componentId 
)
virtual

Implements G4VEMDataSet.

Definition at line 116 of file G4CompositeEMDataSet.cc.

References components, FatalException, G4Exception(), and G4VEMDataSet::SetEnergiesData().

+ Here is the call graph for this function:

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

Implements G4VEMDataSet.

Definition at line 133 of file G4CompositeEMDataSet.cc.

References components, FatalException, G4Exception(), and G4VEMDataSet::SetLogEnergiesData().

+ Here is the call graph for this function:

Member Data Documentation

G4VDataSetAlgorithm* G4CompositeEMDataSet::algorithm
private
std::vector<G4VEMDataSet*> G4CompositeEMDataSet::components
private
G4int G4CompositeEMDataSet::maxZ
private

Definition at line 115 of file G4CompositeEMDataSet.hh.

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

G4int G4CompositeEMDataSet::minZ
private

Definition at line 114 of file G4CompositeEMDataSet.hh.

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

G4double G4CompositeEMDataSet::unitData
private

Definition at line 112 of file G4CompositeEMDataSet.hh.

Referenced by LoadData(), and LoadNonLogData().

G4double G4CompositeEMDataSet::unitEnergies
private

Definition at line 111 of file G4CompositeEMDataSet.hh.

Referenced by LoadData(), and LoadNonLogData().


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