Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework  v31r0 (aeb156f0)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
IMagneticFieldSvc.h
Go to the documentation of this file.
1 #ifndef GAUDIKERNEL_IMAGNETICFIELDSVC_H
2 #define GAUDIKERNEL_IMAGNETICFIELDSVC_H
3 
4 // Include files
5 #include "GaudiKernel/IService.h"
7 
8 // Forward declarations
9 namespace ROOT {
10  namespace Math {
11  class DefaultCoordinateSystemTag;
12 
13  // from Math/Point3Dfwd.h
14  template <class CoordSystem, class Tag>
16  // from Math/Vector3Dfwd.h
17  template <class CoordSystem, class Tag>
19  // from Math/Point3Dfwd.h
20  template <typename T>
21  class Cartesian3D;
22  // from Math/Point3Dfwd.h
23  typedef PositionVector3D<Cartesian3D<double>, DefaultCoordinateSystemTag> XYZPoint;
24  // from Math/Vector3Dfwd.h
25  typedef DisplacementVector3D<Cartesian3D<double>, DefaultCoordinateSystemTag> XYZVector;
26  } // namespace Math
27 } // namespace ROOT
28 
35 class GAUDI_API IMagneticFieldSvc : virtual public IService {
36 
37 public:
40 
41  // Get the magnetic field vector at a given point in space.
42  // Input: XYZPoint - Point at which magnetic field vector is to be given.
43  // Output: XYZVector - Magnetic field vector.
44  // Return: StatusCode SUCCESS if calculation was performed.
45  virtual StatusCode fieldVector( const ROOT::Math::XYZPoint& xyz, ROOT::Math::XYZVector& fvec ) const = 0;
46 };
47 
48 #endif // GAUDIKERNEL_IMAGNETICFIELDSVC_H
The interface to the MagneticFieldSvc.
General service interface definition.
Definition: IService.h:18
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:50
#define DeclareInterfaceID(iface, major, minor)
Macro to declare the interface ID when using the new mechanism of extending and implementing interfac...
Definition: IInterface.h:13
DisplacementVector3D< Cartesian3D< double >, DefaultCoordinateSystemTag > XYZVector
PositionVector3D< Cartesian3D< double >, DefaultCoordinateSystemTag > XYZPoint
#define GAUDI_API
Definition: Kernel.h:71