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;
void SetData(G4double e, G4double x)
G4NeutronHPHash(const G4NeutronHPHash &aHash)
G4NeutronHPHash & operator=(const G4NeutronHPHash &aHash)
G4int GetMinIndex(G4double e) const
void SetData(G4int index, G4double x, G4double y)