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;
150 std::ostringstream message;
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;
G4IInterpolator * algorithm
virtual void SetEnergiesData(G4DataVector *x, G4DataVector *data, G4int component=0)=0
std::vector< G4String > crossModel
virtual void SetEnergiesData(G4DataVector *energies, G4DataVector *data, G4int componentId)
virtual G4double FindValue(G4double energy, G4int componentId=0) const
void CleanUpComponents(void)
std::vector< G4String > subShellName
std::vector< G4IDataSet * > components
G4String FullFileName(const G4String &particleType, const G4String &subShell) const
std::vector< G4String > shellName
G4GLOB_DLL std::ostream G4cout
virtual ~G4PixeShellDataSet()
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
G4int TranslateShell(const G4String &subShell) const
G4double energy(const ThreeVector &p, const G4double m)
virtual G4bool LoadData(const G4String &fileName)
virtual void PrintData(void) const
virtual void PrintData(void) const =0
virtual G4bool SaveData(const G4String &fileName) const
virtual void AddComponent(G4IDataSet *dataSet)
virtual size_t NumberOfComponents(void) const