50 for (i=1; i<nEntries/10; i++)
52 if(theData[10*i].
GetX()>e)
break;
59 if(theData[i++].
GetX()>e)
break;
70 for (
G4int jj=0; jj<10; jj++)
72 if(theData[i].
GetX()<e)
break;
80 x1 = theData[low] .
GetX();
81 x2 = theData[high].
GetX();
82 y1 = theData[low] .
GetY(j);
83 y2 = theData[high].
GetY(j);
84 y = x*(y2-
y1)/(x2-x1);
85 return y += y2-x2*(y2-
y1)/(x2-x1);
91 for(
G4int i=0; i<nEntries; i++)
102 void G4NeutronHPField::Check(
G4int i)
104 if(i>nEntries)
throw G4HadronicException(__FILE__, __LINE__,
"Skipped some index numbers in G4NeutronHPField");
110 for (
G4int j=0; j<nEntries; j++)
112 buff[j] = theData[j];
118 if(i==nEntries) nEntries=i+1;
G4double GetY(G4int i) const
G4double GetY(G4int i, G4int j)
G4GLOB_DLL std::ostream G4cout
void SetData(G4double e, G4int i, G4double x)