34 #define INCLXX_IN_GEANT4_MODE 1
38 #ifndef G4INCLGlobals_hh
39 #define G4INCLGlobals_hh 1
49 namespace PhysicalConstants {
80 return radians * (180.0 /
pi);
101 return std::log(x + std::sqrt(x*x+1.));
108 return t > 0 ? 1: t < 0 ? -1 : 0;
113 return t1 > t2 ? t1 :
t2;
118 return t1 < t2 ? t1 :
t2;
158 namespace ParticleConfig {
162 #ifndef INCLXX_IN_GEANT4_MODE
164 void wrap(std::string &str,
const size_t lineLength=78,
const std::string &separators=
" \t");
165 void replaceAll(std::string &str,
const std::string &from,
const std::string &to,
const size_t maxPosition=std::string::npos);
166 std::vector<std::string> tokenize(std::string
const &str,
const std::string &delimiters);
167 G4bool isInteger(std::string
const &str);
168 std::string expandPath(std::string
const &path);