CLHEP 2.4.6.4
C++ Class Library for High Energy Physics
Loading...
Searching...
No Matches
engineIDulong.h
Go to the documentation of this file.
1// $Id
2// -*- C++ -*-
3//
4// -----------------------------------------------------------------------
5// HEP Random
6// --- engineIDulong ---
7// function header file
8// -----------------------------------------------------------------------
9
10// Class generating new engines from streamed saves.
11
12// =======================================================================
13// M Fischler - Created: Mar. 8, 2005
14// =======================================================================
15
16#ifndef engineIDulong_h
17#define engineIDulong_h 1
18
19#include <string>
20
21namespace CLHEP {
22
23unsigned long crc32ul(const std::string & s);
24
25template <class E>
26unsigned long engineIDulong() {
27 static const unsigned long id = crc32ul(E::engineName());
28 return id;
29}
30
31} // namespace CLHEP
32
33#ifdef ENABLE_BACKWARDS_COMPATIBILITY
34// backwards compatibility will be enabled ONLY in CLHEP 1.9
35using namespace CLHEP;
36#endif
37
38
39#endif
40
unsigned long crc32ul(const std::string &s)
unsigned long engineIDulong()
Definition: engineIDulong.h:26