Bayeux  3.4.1
Core Foundation library for SuperNEMO
clhep.h
Go to the documentation of this file.
1 
3 #ifndef GEOMTOOLS_CLHEP_H
4 #define GEOMTOOLS_CLHEP_H 1
5 
6 // Third party:
7 
8 // - CLHEP:
9 #include <CLHEP/Units/SystemOfUnits.h>
10 #include <CLHEP/Units/PhysicalConstants.h>
11 #include <CLHEP/Vector/TwoVector.h>
12 #include <CLHEP/Vector/ThreeVector.h>
13 
14 // In C++11 with CLHEP 2.1.3.1, can no longer use register
15 #ifdef __clang__
16 #pragma clang diagnostic push
17 #pragma clang diagnostic ignored "-Wdeprecated-register"
18 #endif
19 #include <CLHEP/Vector/Rotation.h>
20 #ifdef __clang__
21 #pragma clang diagnostic pop
22 #endif
23 
24 /*
25 // don't generate unnecessary warnings
26 #if defined __GNUC__
27  #if __GNUC__ > 3 && __GNUC_MINOR__ > 6
28  #pragma GCC diagnostic push
29  #pragma GCC diagnostic ignored "-Werror=deprecated-declarations"
30  #endif
31 #endif
32 #ifdef __clang__
33  #pragma clang diagnostic push
34  #pragma clang diagnostic ignored "-Werror=deprecated-declarations"
35 #endif
36 
37 // 2017-04-10, FM:
38 // Warning->Error: .../Cadfaelbrew/lib/CLHEP-2.1.3.1/../../include/CLHEP/Utility/type_traits.h:1348:35: error: ‘template<class> class std::auto_ptr’ is deprecated [-Werror=deprecated-declarations]
39 // struct enable_if_auto_ptr< std::auto_ptr<P>, R >
40 
41 #include <CLHEP/Random/RandFlat.h>
42 
43 #if defined __GNUC__
44  #if __GNUC__ > 3 && __GNUC_MINOR__ > 6
45  #pragma clang diagnostic pop
46  #endif
47 #endif
48 #ifdef __clang__
49 #pragma clang diagnostic pop
50 #endif
51 */
52 
53 
54 // This project:
56 
57 namespace geomtools {
58 
60  typedef CLHEP::Hep2Vector vector_2d;
61 
63  typedef CLHEP::Hep3Vector vector_3d;
64 
66  typedef CLHEP::HepRotation rotation_3d;
67 
70 
71 }
72 
73 // Activate reflection layer for some classes :
78 
79 // namespace geomtools {
80 // /// \brief Basic uniform deviates generator from CLHEP used for special geometry algorithms
81 // class random_tools
82 // {
83 // public:
84 // static mygsl::rng &
85 // static double random_flat()
86 // {
87 // return CLHEP::RandFlat::shoot(0.0, 1.0);
88 // }
89 // };
90 // } // end of namespace geomtools
91 
92 #endif // GEOMTOOLS_CLHEP_H
93 
94 /*
95 ** Local Variables: --
96 ** mode: c++ --
97 ** c-file-style: "gnu" --
98 ** tab-width: 2 --
99 ** End: --
100 */
#define DR_CLASS_INIT(Introspectable)
Inform Camp that class Introspectable exists and trigger the automatic registration of dedicated refl...
Definition: reflection_interface.h:149
CLHEP::Hep2Vector vector_2d
Alias for the CLHEP 2D-vector class.
Definition: clhep.h:60
CLHEP::HepRotation rotation_3d
Alias for the CLHEP 3D-rotation class.
Definition: clhep.h:66
CLHEP::Hep3Vector vector_3d
Alias for the CLHEP 3D-vector class.
Definition: clhep.h:63
rotation_3d rotation
Alias for the 3D-rotation class.
Definition: clhep.h:69
Top-level namespace of the Bayeux/geomtools module library.
Definition: electromagnetic_field_manager.h:39