38 void insert(
double anEnergy,
double aXsection)
40 pair<double, double> aPoint(anEnergy, aXsection);
41 theData.push_back(aPoint);
47 if(anEnergy < theData[0].
first)
55 if(anEnergy > theData[theData.size()-1].second)
59 x1 = theData[n-1].first;
60 y1 = theData[n-1].second;
61 x2 = theData[n-2].first;
62 y2 = theData[n-2].second;
68 for(i=0; i<theData.size(); i++)
70 if(theData[i].first>anEnergy)
break;
72 x1 = theData[i-1].first;
73 y1 = theData[i-1].second;
74 x2 = theData[i].first;
75 y2 = theData[i].second;
89 vector<pair<double, double> > theData;
G4double G4NeutronHPJENDLHEData::G4double result
G4double Interpolate(G4InterpolationScheme aScheme, G4double x, G4double x1, G4double x2, G4double y1, G4double y2) const
double getCrossSection(double anEnergy)
void insert(double anEnergy, double aXsection)