#include <G4CompositeEMDataSet.hh>
|
| 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 G4VEMDataSet * | GetComponent (G4int componentId) const |
|
virtual void | AddComponent (G4VEMDataSet *dataSet) |
|
virtual size_t | NumberOfComponents () const |
|
virtual const G4DataVector & | GetEnergies (G4int componentId) const |
|
virtual const G4DataVector & | GetData (G4int componentId) const |
|
virtual const G4DataVector & | GetLogEnergies (G4int componentId) const |
|
virtual const G4DataVector & | GetLogData (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 |
|
| G4VEMDataSet () |
|
virtual | ~G4VEMDataSet () |
|
Definition at line 59 of file G4CompositeEMDataSet.hh.
Definition at line 57 of file G4CompositeEMDataSet.cc.
63 algorithm(argAlgorithm),
64 unitEnergies(argUnitEnergies),
65 unitData(argUnitData),
70 G4Exception(
"G4CompositeEMDataSet::G4CompositeEMDataSet",
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
G4CompositeEMDataSet::~G4CompositeEMDataSet |
( |
| ) |
|
|
virtual |
Implements G4VEMDataSet.
Definition at line 84 of file G4CompositeEMDataSet.cc.
88 if (component)
return component->FindValue(argEnergy);
90 std::ostringstream message;
91 message <<
"G4CompositeEMDataSet::FindValue - component " << argComponentId <<
" not found";
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
virtual const G4VEMDataSet * GetComponent(G4int componentId) const
virtual const G4VEMDataSet* G4CompositeEMDataSet::GetComponent |
( |
G4int |
componentId | ) |
const |
|
inlinevirtual |
Implements G4VEMDataSet.
Definition at line 79 of file G4CompositeEMDataSet.hh.
virtual const G4DataVector & GetData(G4int componentId) const =0
virtual const G4VEMDataSet * GetComponent(G4int componentId) const
virtual const G4DataVector& G4CompositeEMDataSet::GetEnergies |
( |
G4int |
componentId | ) |
const |
|
inlinevirtual |
Implements G4VEMDataSet.
Definition at line 78 of file G4CompositeEMDataSet.hh.
virtual const G4DataVector & GetEnergies(G4int componentId) const =0
virtual const G4VEMDataSet * GetComponent(G4int componentId) const
virtual const G4DataVector& G4CompositeEMDataSet::GetLogData |
( |
G4int |
componentId | ) |
const |
|
inlinevirtual |
Implements G4VEMDataSet.
Definition at line 81 of file G4CompositeEMDataSet.hh.
virtual const G4DataVector & GetLogData(G4int componentId) const =0
virtual const G4VEMDataSet * GetComponent(G4int componentId) const
virtual const G4DataVector& G4CompositeEMDataSet::GetLogEnergies |
( |
G4int |
componentId | ) |
const |
|
inlinevirtual |
Implements G4VEMDataSet.
Definition at line 80 of file G4CompositeEMDataSet.hh.
virtual const G4DataVector & GetLogEnergies(G4int componentId) const =0
virtual const G4VEMDataSet * GetComponent(G4int componentId) const
Implements G4VEMDataSet.
Definition at line 155 of file G4CompositeEMDataSet.cc.
159 for (
G4int z(minZ); z<maxZ; z++)
162 if (!component->
LoadData(argFileName))
virtual void AddComponent(G4VEMDataSet *dataSet)
virtual G4VDataSetAlgorithm * Clone() const =0
virtual G4bool LoadData(const G4String &fileName)=0
G4bool G4CompositeEMDataSet::LoadNonLogData |
( |
const G4String & |
fileName | ) |
|
|
virtual |
Implements G4VEMDataSet.
Definition at line 173 of file G4CompositeEMDataSet.cc.
177 for (
G4int z(minZ); z<maxZ; z++)
virtual void AddComponent(G4VEMDataSet *dataSet)
virtual G4VDataSetAlgorithm * Clone() const =0
virtual G4bool LoadNonLogData(const G4String &fileName)=0
virtual size_t G4CompositeEMDataSet::NumberOfComponents |
( |
void |
| ) |
const |
|
inlinevirtual |
void G4CompositeEMDataSet::PrintData |
( |
void |
| ) |
const |
|
virtual |
Implements G4VEMDataSet.
Definition at line 99 of file G4CompositeEMDataSet.cc.
103 G4cout <<
"The data set has " <<
n <<
" components" <<
G4endl;
G4GLOB_DLL std::ostream G4cout
virtual void PrintData(void) const =0
virtual size_t NumberOfComponents() const
virtual const G4VEMDataSet * GetComponent(G4int componentId) const
G4double G4CompositeEMDataSet::RandomSelect |
( |
G4int |
componentId | ) |
const |
|
virtual |
Implements G4VEMDataSet.
Definition at line 224 of file G4CompositeEMDataSet.cc.
227 if (componentId >= 0 && componentId < (
G4int)components.size())
const XML_Char int const XML_Char * value
virtual G4double RandomSelect(G4int componentId=0) const =0
virtual const G4VEMDataSet * GetComponent(G4int componentId) const
G4bool G4CompositeEMDataSet::SaveData |
( |
const G4String & |
fileName | ) |
const |
|
virtual |
Implements G4VEMDataSet.
Definition at line 191 of file G4CompositeEMDataSet.cc.
193 for (
G4int z=minZ; z<maxZ; z++)
199 std::ostringstream message;
200 message <<
"G4CompositeEMDataSet::SaveData - component " << (z-minZ) <<
" not found";
206 if (!component->SaveData(argFileName))
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
virtual const G4VEMDataSet * GetComponent(G4int componentId) const
Implements G4VEMDataSet.
Definition at line 116 of file G4CompositeEMDataSet.cc.
122 component->SetEnergiesData(argEnergies, argData, 0);
126 std::ostringstream message;
127 message <<
"G4CompositeEMDataSet::SetEnergiesData - component " << argComponentId <<
" not found";
129 G4Exception(
"G4CompositeEMDataSet::SetEnergiesData",
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Implements G4VEMDataSet.
Definition at line 133 of file G4CompositeEMDataSet.cc.
143 component->SetLogEnergiesData(argEnergies, argData, argLogEnergies, argLogData, 0);
147 std::ostringstream message;
148 message <<
"G4CompositeEMDataSet::SetEnergiesData - component " << argComponentId <<
" not found";
150 G4Exception(
"G4CompositeEMDataSet::SetLogEnergiesData",
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
The documentation for this class was generated from the following files: