| The Gaudi Framework v32r1 (f65d50dc)

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"
6 #include "GaudiKernel/StatusCode.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>
15 class PositionVector3D;
16 // from Math/Vector3Dfwd.h
17 template <class CoordSystem, class Tag>
18 class DisplacementVector3D;
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:
39 DeclareInterfaceID( IMagneticFieldSvc, 2, 0 );
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
ROOT
Definition: IMagneticFieldSvc.h:9
ROOT::Math::PositionVector3D
Definition: IMagneticFieldSvc.h:15
IMagneticFieldSvc
The interface to the MagneticFieldSvc.
Definition: IMagneticFieldSvc.h:35
IService
General service interface definition.
Definition: IService.h:18
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:50
ROOT::Math::DisplacementVector3D
Definition: IMagneticFieldSvc.h:18
IService.h
IService::DeclareInterfaceID
DeclareInterfaceID(IService, 4, 0)
InterfaceID.
StatusCode.h
ROOT::Math::XYZVector
DisplacementVector3D< Cartesian3D< double >, DefaultCoordinateSystemTag > XYZVector
Definition: IMagneticFieldSvc.h:25
ROOT::Math::XYZPoint
PositionVector3D< Cartesian3D< double >, DefaultCoordinateSystemTag > XYZPoint
Definition: IMagneticFieldSvc.h:21
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:71
ROOT::Math::Cartesian3D
Definition: IMagneticFieldSvc.h:21