62 "interpolation == 0");
72 size_t sizeK = modelK.size();
73 size_t sizeL = modelL.size();
74 size_t sizeM = modelM.size();
78 if (sizeK > 0 && sizeL > 0)
84 if (sizeK > 0 && sizeL > 0 && sizeM >0)
107 std::vector<G4IDataSet *>::const_iterator i(
components.begin());
108 std::vector<G4IDataSet *>::const_iterator end(
components.end());
112 value += (*i)->FindValue(
energy);
123 G4cout <<
"The data set has " <<
n <<
" components" <<
G4endl;
149 std::ostringstream message;
150 message <<
"G4PixeShellDataSet::SetEnergiesData - component " << componentId <<
" not found";
155 message.str().c_str());
167 for (
G4int subShellIndex=0; subShellIndex<nShells; subShellIndex++)
204 char* path = std::getenv(
"G4PIIDATA");
209 "G4PIIDATA environment variable not set");
216 std::ostringstream fullFileName;
235 return G4String(fullFileName.str().c_str());
243 if (subShell ==
"l1" || subShell ==
"l2" || subShell ==
"l3" ) index = 1;
244 if (subShell ==
"m1" ||
248 subShell ==
"m5" ) index = 2;
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
G4GLOB_DLL std::ostream G4cout
virtual void SetEnergiesData(G4DataVector *x, G4DataVector *data, G4int component=0)=0
virtual G4bool LoadData(const G4String &fileName)=0
virtual void PrintData(void) const =0
std::vector< G4String > crossModel
virtual G4bool SaveData(const G4String &fileName) const
G4int TranslateShell(const G4String &subShell) const
virtual size_t NumberOfComponents(void) const
std::vector< G4String > subShellName
std::vector< G4String > shellName
virtual const G4IDataSet * GetComponent(G4int componentId) const
virtual void SetEnergiesData(G4DataVector *energies, G4DataVector *data, G4int componentId)
virtual G4bool LoadData(const G4String &fileName)
virtual void AddComponent(G4IDataSet *dataSet)
virtual G4double FindValue(G4double energy, G4int componentId=0) const
virtual ~G4PixeShellDataSet()
virtual void PrintData(void) const
void CleanUpComponents(void)
G4IInterpolator * algorithm
std::vector< G4IDataSet * > components
G4String FullFileName(const G4String &particleType, const G4String &subShell) const
G4double energy(const ThreeVector &p, const G4double m)