ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
engineIDulong.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file engineIDulong.h
1 // -*- C++ -*-
2 //
3 // -----------------------------------------------------------------------
4 // HEP Random
5 // --- engineIDulong ---
6 // function header file
7 // -----------------------------------------------------------------------
8 
9 // Class generating new engines from streamed saves.
10 
11 // =======================================================================
12 // M Fischler - Created: Mar. 8, 2005
13 // =======================================================================
14 
15 #ifndef engineIDulong_h
16 #define engineIDulong_h 1
17 
18 namespace CLHEP {
19 
20 unsigned long crc32ul(const std::string & s);
21 
22 template <class E>
23 unsigned long engineIDulong() {
24  static const unsigned long id = crc32ul(E::engineName());
25  return id;
26 }
27 
28 } // namespace CLHEP
29 
30 #endif
31