58 G4Exception(
"G4CompositeDataSet::G4CompositeDataSet",
61 "Interpolation == 0");
77 if (component)
return component->
FindValue(energy);
79 std::ostringstream message;
80 message <<
"G4CompositeDataSet::FindValue - component " << componentId <<
" not found";
85 message.str().c_str());
94 G4cout <<
"The data set has " << n <<
" components" <<
G4endl;
117 std::ostringstream message;
118 message <<
"G4CompositeDataSet::SetEnergiesData - component " << componentId <<
" not found";
123 message.str().c_str());
134 if (!component->
LoadData(argFileName))
154 std::ostringstream message;
155 message <<
"G4CompositeDataSet::SaveData - component " << (
z-
minZ) <<
" not found";
159 message.str().c_str());
162 if (!component->
SaveData(argFileName))
virtual void SetEnergiesData(G4DataVector *x, G4DataVector *data, G4int component=0)=0
virtual G4bool SaveData(const G4String &fileName) const =0
virtual G4double RandomSelect(G4int componentId=0) const =0
virtual void AddComponent(G4IDataSet *dataSet)
virtual G4double FindValue(G4double x, G4int componentId=0) const =0
virtual void SetEnergiesData(G4DataVector *x, G4DataVector *data, G4int componentId)
G4IInterpolator * algorithm
G4GLOB_DLL std::ostream G4cout
virtual G4bool LoadData(const G4String &fileName)
virtual const G4IDataSet * GetComponent(G4int componentId) const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
virtual G4bool LoadData(const G4String &fileName)=0
virtual G4double RandomSelect(G4int componentId) const
G4double energy(const ThreeVector &p, const G4double m)
virtual G4double FindValue(G4double x, G4int componentId=0) const
void CleanUpComponents(void)
virtual ~G4CompositeDataSet()
std::vector< G4IDataSet * > components
virtual size_t NumberOfComponents() const
virtual void PrintData(void) const
virtual G4bool SaveData(const G4String &fileName) const
virtual void PrintData(void) const =0
virtual G4IInterpolator * Clone() const =0