ATLAS Offline Software
MagneticFieldProperties.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // MagneticFieldProperties.h, (c) ATLAS Detector software
8 
9 #ifndef TRKGEOMETRY_MAGNETICFIELDPROPERTIES_H
10 #define TRKGEOMETRY_MAGNETICFIELDPROPERTIES_H
11 
12 // Gaudi
13 #include "GaudiKernel/GaudiException.h"
14 #include "GaudiKernel/MsgStream.h"
15 // Trk
17 // Amg
19 // STD
20 #include <iostream>
21 
22 namespace Trk {
23 
31 {
32 
33 public:
38  // default copy/move/dtor
44 
46  operator MagneticFieldMode() const;
47 
50 
53  const Amg::Vector3D& magneticField() const;
54 
55 protected:
58 };
59 
62 MsgStream&
63 operator<<(MsgStream& sl, const MagneticFieldProperties& mprop);
64 
65 std::ostream&
66 operator<<(std::ostream& sl, const MagneticFieldProperties& mprop);
67 
68 } // end of namespace
70 #endif // TRKGEOMETRY_MAGNETICFIELDPROPERTIES_H
71 
Trk::MagneticFieldProperties::m_magneticFieldMode
MagneticFieldMode m_magneticFieldMode
Definition: MagneticFieldProperties.h:56
Trk::MagneticFieldProperties::magneticField
const Amg::Vector3D & magneticField() const
Get the magnetic field - in case of constant field only - throws exception if mode is not constant.
Trk::MagneticFieldProperties
Definition: MagneticFieldProperties.h:31
Trk::MagneticFieldProperties::MagneticFieldProperties
MagneticFieldProperties(MagneticFieldProperties &&)=default
Trk::MagneticFieldProperties::MagneticFieldProperties
MagneticFieldProperties(MagneticFieldMode mode=Trk::FullField)
Constructor for magnetic field mode - full field is default.
ReadOfcFromCool.field
field
Definition: ReadOfcFromCool.py:48
Trk::MagneticFieldProperties::~MagneticFieldProperties
~MagneticFieldProperties()=default
Trk::MagneticFieldProperties::MagneticFieldProperties
MagneticFieldProperties(const Amg::Vector3D &field)
Constructor for magnetic field mode.
GeoPrimitives.h
Preparation.mode
mode
Definition: Preparation.py:94
Trk::FullField
@ FullField
Field is set to be realistic, but within a given Volume.
Definition: MagneticFieldMode.h:21
Trk::MagneticFieldProperties::operator=
MagneticFieldProperties & operator=(const MagneticFieldProperties &)=default
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
Trk::MagneticFieldProperties::MagneticFieldProperties
MagneticFieldProperties(const MagneticFieldProperties &)=default
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
Trk::MagneticFieldProperties::magneticFieldMode
MagneticFieldMode magneticFieldMode() const
Returns the MagneticFieldMode as specified.
MagneticFieldProperties.icc
Trk::operator<<
MsgStream & operator<<(MsgStream &sl, const AlignModule &alignModule)
overload of << operator for MsgStream for debug output
Definition: AlignModule.cxx:204
MagneticFieldMode.h
Trk::MagneticFieldMode
MagneticFieldMode
Definition: MagneticFieldMode.h:17
Trk::MagneticFieldProperties::operator=
MagneticFieldProperties & operator=(MagneticFieldProperties &&)=default
Trk::MagneticFieldProperties::m_magneticField
Amg::Vector3D m_magneticField
Definition: MagneticFieldProperties.h:57