26 #ifndef G4NeutronHPHash_h
27 #define G4NeutronHPHash_h
43 if(theUpper)
delete theUpper;
48 theIndex = aHash.theIndex;
49 theData = aHash.theData;
50 if(aHash.theUpper != 0)
64 theIndex = aHash.theIndex;
65 theData = aHash.theData;
66 if(aHash.theUpper != 0)
96 theData.push_back(aPoint);
97 theIndex.push_back(index);
98 if(0 == theData.size()%10 && 0!=theData.size())
101 theUpper->
SetData(theData.size()-1,
x,
y);
108 if(theData.size() == 0)
return 0;
109 if(theData[0].GetX()>
e)
return 0;
117 for(i=lower; i<theData.size(); i++)
119 if(theData[i].GetX()>
e)
121 result = theIndex[i-1];
125 if(result == -1) result = theIndex[theIndex.size()-1];
133 std::vector<int> theIndex;
134 std::vector<G4NeutronHPDataPoint> theData;