63 "interpolation == 0");
73 size_t sizeK = modelK.size();
74 size_t sizeL = modelL.size();
75 size_t sizeM = modelM.size();
79 if (sizeK > 0 && sizeL > 0)
85 if (sizeK > 0 && sizeL > 0 && sizeM >0)
108 std::vector<G4IDataSet *>::const_iterator i(
components.begin());
109 std::vector<G4IDataSet *>::const_iterator end(
components.end());
113 value += (*i)->FindValue(energy);
124 G4cout <<
"The data set has " << n <<
" components" <<
G4endl;
151 message <<
"G4PixeShellDataSet::SetEnergiesData - component " << componentId <<
" not found";
156 message.str().c_str());
168 for (
G4int subShellIndex=0; subShellIndex<nShells; subShellIndex++)
205 char* path = getenv(
"G4PIIDATA");
210 "G4PIIDATA environment variable not set");
217 std::ostringstream fullFileName;
233 G4String test(fullFileName.str().c_str());
236 return G4String(fullFileName.str().c_str());
244 if (subShell ==
"l1" || subShell ==
"l2" || subShell ==
"l3" ) index = 1;
245 if (subShell ==
"m1" ||
249 subShell ==
"m5" ) index = 2;
std::vector< G4String > crossModel
virtual void AddComponent(G4IDataSet *dataSet)
virtual size_t NumberOfComponents(void) const
virtual void PrintData(void) const
void message(RunManager *runmanager)
std::vector< G4String > subShellName
const XML_Char const XML_Char * data
const XML_Char int const XML_Char * value
std::vector< G4IDataSet * > components
virtual void SetEnergiesData(G4DataVector *x, G4DataVector *data, G4int component=0)=0
virtual G4bool SaveData(const G4String &fileName) const
virtual const G4IDataSet * GetComponent(G4int componentId) const
virtual G4bool LoadData(const G4String &fileName)=0
G4int TranslateShell(const G4String &subShell) const
G4String FullFileName(const G4String &particleType, const G4String &subShell) const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::vector< G4String > shellName
virtual G4double FindValue(G4double energy, G4int componentId=0) const
virtual void PrintData(void) const =0
G4GLOB_DLL std::ostream G4cout
virtual void SetEnergiesData(G4DataVector *energies, G4DataVector *data, G4int componentId)
virtual G4bool LoadData(const G4String &fileName)
virtual ~G4PixeShellDataSet()
void CleanUpComponents(void)
G4IInterpolator * algorithm