// $Id // -*- C++ -*- // // ----------------------------------------------------------------------- // HEP Random // --- engineIDulong --- // function header file // ----------------------------------------------------------------------- // Class generating new engines from streamed saves. // ======================================================================= // M Fischler - Created: Mar. 8, 2005 // ======================================================================= #ifndef engineIDulong_h #define engineIDulong_h 1 namespace CLHEP { unsigned long crc32ul(const std::string & s); template unsigned long engineIDulong() { static unsigned long id = crc32ul(E::engineName()); return id; } } // namespace CLHEP #ifdef ENABLE_BACKWARDS_COMPATIBILITY // backwards compatibility will be enabled ONLY in CLHEP 1.9 using namespace CLHEP; #endif #endif