28 #ifndef G4NeutronHPFastLegendre_h
29 #define G4NeutronHPFastLegendre_h 1
71 integral =
new const G4double * [31];
105 for(i=0;i<31;i++) theNbin[i]=1+200*(i+1);
116 if(l>30)
return regularIntegrate(l,costh);
120 y1 = integral[l][
bin];
121 y2 = integral[l][bin+1];
123 return Interpolate(bin, l, y1, y2, costh);
128 if(l>30)
return regularEvaluate(l,costh);
131 if(bin != theNbin[l]-1)
135 y2 =
value[l][bin+1];
136 result = Interpolate(bin, l, y1, y2, costh);
147 G4double regularEvaluate(
int l ,
double x );
148 G4double regularIntegrate(
int l ,
double x );
154 bin =
G4int( (theNbin[l]-1)*(costh+1)/2. );
155 if(bin == theNbin[l]-1) bin--;
162 G4int half = (theNbin[l]-1)/2;
165 x1mx2 = 1./
G4double( (theNbin[l]-1)/2 );
167 slope = (y2-
y1)/x1mx2;
~G4NeutronHPFastLegendre()
G4double G4NeutronHPJENDLHEData::G4double result
G4double Evaluate(G4int l, G4double costh)
G4NeutronHPFastLegendre()
const XML_Char int const XML_Char * value
G4double Integrate(G4int l, G4double costh)