62 edgeMin(0.), edgeMax(0.), numberOfNodes(0),
64 invdBin(0.), baseBin(0.),
89 if (&right==
this) {
return *
this; }
103 return (
this == &right);
110 return (
this != &right);
174 fOut.write((
char*)(&size),
sizeof size);
177 for(
size_t i = 0; i < size; ++i)
182 fOut.write((
char*)(value), 2*size*(
sizeof (
G4double)));
201 if (fIn.fail()) {
return false; }
205 if (fIn.fail() || siz<=0) {
return false; }
211 for(
G4int i = 0; i < siz ; i++)
215 fIn >> vBin >> vData;
216 if (fIn.fail()) {
return false; }
236 fIn.read((
char*)(&size),
sizeof size);
239 fIn.read((
char*)(value), 2*size*(
sizeof(
G4double)) );
248 for(
size_t i = 0; i < size; ++i)
318 - firstPointDerivative);
338 *(endPointDerivative -
390 for(
G4int i=2; i<n-1; ++i)
405 - (2.0*sig - 1.0)*u[n-2]/
p;
445 for(
size_t i=1; i<
n; ++i)
481 out << std::setprecision(12) << pv.
edgeMin <<
" "
486 for(
size_t i = 0; i < pv.
dataVector.size(); i++)
490 out << std::setprecision(6);
503 }
else if(theEnergy >=
edgeMax) {
507 lastIdx =
FindBin(theEnergy, lastIdx);
519 size_t bin = std::lower_bound(dataVector.begin(), dataVector.end(),
y)
520 - dataVector.begin() - 1;
523 G4double del = dataVector[bin+1] - dataVector[
bin];
525 res += (y - dataVector[
bin])*(
binVector[bin+1] - res)/del;
536 <<
" an attempt to put data at index= " << index;
538 ed,
"Memory overwritten");