Geant4  10.00.p02
G4RDCompositeEMDataSet Class Reference

#include <G4RDCompositeEMDataSet.hh>

+ Inheritance diagram for G4RDCompositeEMDataSet:
+ Collaboration diagram for G4RDCompositeEMDataSet:

Public Member Functions

 G4RDCompositeEMDataSet (G4RDVDataSetAlgorithm *argAlgorithm, G4double eUnit=CLHEP::MeV, G4double dataUnit=CLHEP::barn, G4int zMin=1, G4int zMax=99)
 
virtual ~G4RDCompositeEMDataSet ()
 
virtual G4double FindValue (G4double x, G4int componentId=0) const
 
virtual void PrintData (void) const
 
virtual const G4RDVEMDataSetGetComponent (G4int componentId) const
 
virtual void AddComponent (G4RDVEMDataSet *dataSet)
 
virtual size_t NumberOfComponents () const
 
virtual const G4DataVectorGetEnergies (G4int componentId) const
 
virtual const G4DataVectorGetData (G4int componentId) const
 
virtual void SetEnergiesData (G4DataVector *x, G4DataVector *data, G4int componentId)
 
virtual G4bool LoadData (const G4String &fileName)
 
virtual G4bool SaveData (const G4String &fileName) const
 
virtual G4double RandomSelect (G4int componentId) const
 
- Public Member Functions inherited from G4RDVEMDataSet
 G4RDVEMDataSet ()
 
virtual ~G4RDVEMDataSet ()
 

Private Member Functions

void CleanUpComponents (void)
 
 G4RDCompositeEMDataSet ()
 
 G4RDCompositeEMDataSet (const G4RDCompositeEMDataSet &copy)
 
G4RDCompositeEMDataSetoperator= (const G4RDCompositeEMDataSet &right)
 

Private Attributes

std::vector< G4RDVEMDataSet * > components
 
G4RDVDataSetAlgorithmalgorithm
 
G4double unitEnergies
 
G4double unitData
 
G4int minZ
 
G4int maxZ
 

Detailed Description

Definition at line 57 of file G4RDCompositeEMDataSet.hh.

Constructor & Destructor Documentation

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

Definition at line 44 of file G4RDCompositeEMDataSet.cc.

References algorithm, FatalException, and G4Exception().

+ Here is the call graph for this function:

G4RDCompositeEMDataSet::~G4RDCompositeEMDataSet ( )
virtual

Definition at line 63 of file G4RDCompositeEMDataSet.cc.

References algorithm, and CleanUpComponents().

+ Here is the call graph for this function:

G4RDCompositeEMDataSet::G4RDCompositeEMDataSet ( )
private
G4RDCompositeEMDataSet::G4RDCompositeEMDataSet ( const G4RDCompositeEMDataSet copy)
private

Member Function Documentation

virtual void G4RDCompositeEMDataSet::AddComponent ( G4RDVEMDataSet dataSet)
inlinevirtual

Implements G4RDVEMDataSet.

Definition at line 73 of file G4RDCompositeEMDataSet.hh.

References components.

Referenced by LoadData().

+ Here is the caller graph for this function:

void G4RDCompositeEMDataSet::CleanUpComponents ( void  )
private

Definition at line 159 of file G4RDCompositeEMDataSet.cc.

References components.

Referenced by LoadData(), and ~G4RDCompositeEMDataSet().

+ Here is the caller graph for this function:

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

Implements G4RDVEMDataSet.

Definition at line 70 of file G4RDCompositeEMDataSet.cc.

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

+ Here is the call graph for this function:

virtual const G4RDVEMDataSet* G4RDCompositeEMDataSet::GetComponent ( G4int  componentId) const
inlinevirtual

Implements G4RDVEMDataSet.

Definition at line 72 of file G4RDCompositeEMDataSet.hh.

References components.

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

+ Here is the caller graph for this function:

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

Implements G4RDVEMDataSet.

Definition at line 77 of file G4RDCompositeEMDataSet.hh.

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

+ Here is the call graph for this function:

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

Implements G4RDVEMDataSet.

Definition at line 76 of file G4RDCompositeEMDataSet.hh.

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

+ Here is the call graph for this function:

G4bool G4RDCompositeEMDataSet::LoadData ( const G4String fileName)
virtual

Implements G4RDVEMDataSet.

Definition at line 119 of file G4RDCompositeEMDataSet.cc.

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

+ Here is the call graph for this function:

virtual size_t G4RDCompositeEMDataSet::NumberOfComponents ( void  ) const
inlinevirtual

Implements G4RDVEMDataSet.

Definition at line 74 of file G4RDCompositeEMDataSet.hh.

References components.

Referenced by PrintData().

+ Here is the caller graph for this function:

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

Implements G4RDVEMDataSet.

Definition at line 85 of file G4RDCompositeEMDataSet.cc.

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

+ Here is the call graph for this function:

G4double G4RDCompositeEMDataSet::RandomSelect ( G4int  componentId) const
virtual

Implements G4RDVEMDataSet.

Definition at line 170 of file G4RDCompositeEMDataSet.cc.

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

+ Here is the call graph for this function:

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

Implements G4RDVEMDataSet.

Definition at line 138 of file G4RDCompositeEMDataSet.cc.

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

+ Here is the call graph for this function:

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

Implements G4RDVEMDataSet.

Definition at line 102 of file G4RDCompositeEMDataSet.cc.

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

+ Here is the call graph for this function:

Member Data Documentation

G4RDVDataSetAlgorithm* G4RDCompositeEMDataSet::algorithm
private
std::vector<G4RDVEMDataSet*> G4RDCompositeEMDataSet::components
private
G4int G4RDCompositeEMDataSet::maxZ
private

Definition at line 103 of file G4RDCompositeEMDataSet.hh.

Referenced by LoadData(), and SaveData().

G4int G4RDCompositeEMDataSet::minZ
private

Definition at line 102 of file G4RDCompositeEMDataSet.hh.

Referenced by LoadData(), and SaveData().

G4double G4RDCompositeEMDataSet::unitData
private

Definition at line 100 of file G4RDCompositeEMDataSet.hh.

Referenced by LoadData().

G4double G4RDCompositeEMDataSet::unitEnergies
private

Definition at line 99 of file G4RDCompositeEMDataSet.hh.

Referenced by LoadData().


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