50 algorithm(argAlgorithm),
51 unitEnergies(argUnitEnergies),
52 unitData(argUnitData),
57 G4Exception(
"G4RDCompositeEMDataSet::G4RDCompositeEMDataSet()",
74 if (component)
return component->
FindValue(argEnergy);
77 message <<
"Component " << argComponentId <<
" not found";
89 G4cout <<
"The data set has " << n <<
" components" <<
G4endl;
113 message <<
"Component " << argComponentId <<
" not found";
115 G4Exception(
"G4RDCompositeEMDataSet::SetEnergiesData()",
126 if (!component->
LoadData(argFileName))
147 message <<
"Component " << (
z-
minZ) <<
" not found";
152 if (!component->
SaveData(argFileName))
void CleanUpComponents(void)
virtual void SetEnergiesData(G4DataVector *x, G4DataVector *data, G4int component=0)=0
virtual void AddComponent(G4RDVEMDataSet *dataSet)
virtual G4double FindValue(G4double x, G4int componentId=0) const
virtual G4bool SaveData(const G4String &fileName) const =0
G4RDVDataSetAlgorithm * algorithm
void message(RunManager *runmanager)
virtual void PrintData(void) const
virtual void PrintData(void) const =0
virtual G4bool LoadData(const G4String &fileName)
virtual G4RDVDataSetAlgorithm * Clone() const =0
virtual void SetEnergiesData(G4DataVector *x, G4DataVector *data, G4int componentId)
std::vector< G4RDVEMDataSet * > components
virtual G4bool SaveData(const G4String &fileName) const
const XML_Char int const XML_Char * value
virtual size_t NumberOfComponents() const
virtual G4double FindValue(G4double x, G4int componentId=0) const =0
virtual G4bool LoadData(const G4String &fileName)=0
virtual G4double RandomSelect(G4int componentId=0) const =0
virtual const G4RDVEMDataSet * GetComponent(G4int componentId) const
virtual ~G4RDCompositeEMDataSet()
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
G4GLOB_DLL std::ostream G4cout
virtual G4double RandomSelect(G4int componentId) const