44 for(i=0; i<
data[0].GetVectorLength(); i++)
51 for (i=0; i<
nData; i++)
61 for(
G4int ii=0; ii<
data[i].GetVectorLength(); ii++)
64 x2 =
data[i].GetX(ii);
65 if(x1<x2&&i1<
data[i-1].GetVectorLength())
67 y1 =
data[i-1].GetY(i1);
68 y2 =
data[i].GetY(x1);
87 y1 =
data[i-1].GetY(x2);
88 y2 =
data[i].GetY(ii);
99 if(x1-x2<0.001*x2) i1++;
108 for (i=0; i<
nData; i++)
123 else if ( i == nData )
137 G4int i1=0, i2=0, ii=0;
151 if(std::abs(
GetX(low,i1)-
GetX(high,i2))<0.001) i2++;
168 if(std::abs(
GetX(low,i1)-
GetX(high,i2))<0.001) i1++;
void SetInterpolationManager(const G4InterpolationManager &aManager)
Float_t y1[n_points_granero]
G4int GetNEntries(G4int i)
G4double Interpolate(G4InterpolationScheme aScheme, G4double x, G4double x1, G4double x2, G4double y1, G4double y2) const
Float_t x1[n_points_granero]
G4double Sample(G4double x)
G4InterpolationScheme GetScheme(G4int index) const
Float_t y2[n_points_geant4]
const XML_Char const XML_Char * data
void SetScheme(G4int aPoint, const G4InterpolationScheme &aScheme)
void SetData(G4int i, G4double x, G4double y)
G4ParticleHPInterpolator theInt
void SetX(G4int i, G4double e)
void SetY(G4int i, G4double x)
G4InterpolationManager theManager
Float_t x2[n_points_geant4]
G4double GetY(G4int i, G4int j)
T min(const T t1, const T t2)
brief Return the smallest of the two arguments