62 G4int nBins = data.size() - 1;
76 if ((d1 > 0.) && (d2 > 0.) && (e1 > 0.) && (e2 > 0.))
83 value = std::log10(d1)+(std::log10(d2/d1)/std::log10(e2/e1)*std::log10(x/e1));
84 value = std::pow(10.,value);
121 G4int nBins = data.size() - 1;
128 else if (bin < nBins)
131 G4double log_e2 = log_points[bin+1];
144 value = log_d1 + (log_d2 - log_d1)*(log_x - log_e1)/(log_e2 - log_e1);
147 value = std::pow(10.,value);
virtual G4VDataSetAlgorithm * Clone() const
const XML_Char const XML_Char * data
const XML_Char int const XML_Char * value
G4double Calculate(G4double point, G4int bin, const G4DataVector &energies, const G4DataVector &data) const