70 std::vector<G4VEMDataSet*>*
80 std::vector<G4VEMDataSet*>* matCrossSections =
new std::vector<G4VEMDataSet*>;
86 size_t nOfBins = energyVector.size();
89 for (
size_t mLocal=0; mLocal<numOfCouples; mLocal++)
101 for (
G4int i=0; i<nElements; i++) {
103 G4int Z = (
G4int) (*elementVector)[i]->GetZ();
113 for (
size_t bin=0; bin<nOfBins; bin++)
116 energies->push_back(e);
118 log_energies->push_back(std::log10(e));
120 data->push_back(cross);
121 if (cross==0.) cross=1e-300;
122 log_data->push_back(std::log10(cross));
134 matCrossSections->push_back(setForMat);
136 delete interpolationAlgo;
137 return matCrossSections;
std::vector< G4Element * > G4ElementVector
const G4ElementVector * GetElementVector() const
virtual G4VDataSetAlgorithm * Clone() const =0
G4double FindValue(G4int Z, G4double e) const
size_t GetTableSize() const
virtual std::vector< G4VEMDataSet * > * BuildCrossSectionsForMaterials(const G4DataVector &energyVector, const G4DataVector *energyCuts=0)
virtual void AddComponent(G4VEMDataSet *dataSet)=0
const G4double * GetAtomicNumDensityVector() const
static G4ProductionCutsTable * GetProductionCutsTable()
const G4MaterialCutsCouple * GetMaterialCutsCouple(G4int i) const
size_t GetNumberOfElements() const
virtual G4VDataSetAlgorithm * CreateInterpolation()
const G4Material * GetMaterial() const