63 algorithm(argAlgorithm),
64 unitEnergies(argUnitEnergies),
65 unitData(argUnitData),
70 G4Exception(
"G4CompositeEMDataSet::G4CompositeEMDataSet",
88 if (component)
return component->
FindValue(argEnergy);
91 message <<
"G4CompositeEMDataSet::FindValue - component " << argComponentId <<
" not found";
103 G4cout <<
"The data set has " << n <<
" components" <<
G4endl;
127 message <<
"G4CompositeEMDataSet::SetEnergiesData - component " << argComponentId <<
" not found";
129 G4Exception(
"G4CompositeEMDataSet::SetEnergiesData",
137 G4int argComponentId)
148 message <<
"G4CompositeEMDataSet::SetEnergiesData - component " << argComponentId <<
" not found";
150 G4Exception(
"G4CompositeEMDataSet::SetLogEnergiesData",
162 if (!component->
LoadData(argFileName))
200 message <<
"G4CompositeEMDataSet::SaveData - component " << (
z-
minZ) <<
" not found";
206 if (!component->
SaveData(argFileName))
virtual void AddComponent(G4VEMDataSet *dataSet)
std::vector< G4VEMDataSet * > components
virtual G4VDataSetAlgorithm * Clone() const =0
virtual G4bool LoadNonLogData(const G4String &fileName)=0
void CleanUpComponents(void)
void message(RunManager *runmanager)
virtual G4double RandomSelect(G4int componentId) const
virtual size_t NumberOfComponents() const
virtual G4bool LoadNonLogData(const G4String &fileName)
virtual G4double RandomSelect(G4int componentId=0) const =0
virtual G4bool LoadData(const G4String &fileName)
virtual const G4VEMDataSet * GetComponent(G4int componentId) const
virtual ~G4CompositeEMDataSet()
virtual G4bool SaveData(const G4String &fileName) const
const XML_Char int const XML_Char * value
virtual void SetLogEnergiesData(G4DataVector *x, G4DataVector *data, G4DataVector *Log_x, G4DataVector *Log_data, G4int component=0)=0
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
virtual G4bool LoadData(const G4String &fileName)=0
G4VDataSetAlgorithm * algorithm
virtual G4bool SaveData(const G4String &fileName) const =0
virtual void SetLogEnergiesData(G4DataVector *xData, G4DataVector *data, G4DataVector *xLogData, G4DataVector *Logdata, G4int componentId)
virtual void PrintData(void) const
virtual void SetEnergiesData(G4DataVector *x, G4DataVector *data, G4int componentId)
virtual void PrintData(void) const =0
virtual G4double FindValue(G4double x, G4int componentId=0) const
G4GLOB_DLL std::ostream G4cout
virtual void SetEnergiesData(G4DataVector *x, G4DataVector *data, G4int component=0)=0
virtual G4double FindValue(G4double x, G4int componentId=0) const =0