Import Geant4 10.0.0 source tree
This commit is contained in:
+3
-4
@@ -30,8 +30,6 @@
|
||||
// Sylvie Leray, CEA
|
||||
// Joseph Cugnon, University of Liege
|
||||
//
|
||||
// INCL++ revision: v5.1.8
|
||||
//
|
||||
#define INCLXX_IN_GEANT4_MODE 1
|
||||
|
||||
#include "globals.hh"
|
||||
@@ -118,8 +116,9 @@ namespace G4INCL {
|
||||
|
||||
G4double InverseInterpolationTable::operator()(const G4double x) const {
|
||||
// Find the relevant interpolation bin
|
||||
InterpolationNode xNode(x,0.,0.);
|
||||
std::vector<InterpolationNode>::const_iterator iter =
|
||||
std::lower_bound(nodes.begin(), nodes.end(), x);
|
||||
std::lower_bound(nodes.begin(), nodes.end(), xNode);
|
||||
|
||||
if(iter==nodes.begin())
|
||||
return nodes.front().getY();
|
||||
@@ -134,7 +133,7 @@ namespace G4INCL {
|
||||
|
||||
std::string InverseInterpolationTable::print() const {
|
||||
std::string message;
|
||||
for(std::vector<InterpolationNode>::const_iterator n=nodes.begin(); n!=nodes.end(); ++n)
|
||||
for(std::vector<InterpolationNode>::const_iterator n=nodes.begin(), e=nodes.end(); n!=e; ++n)
|
||||
message += n->print();
|
||||
return message;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user