ATLAS Offline Software
AtlasFieldCacheCondObj.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MAGFIELDCONDITIONS_ATLASMTFIELDCONDOBJ
6 #define MAGFIELDCONDITIONS_ATLASMTFIELDCONDOBJ
7 
8 // MagField includes
10 #include "GaudiKernel/ServiceHandle.h"
12 
13 // forward declarations
14 namespace MagField {
15  class AtlasFieldMap;
16 }
17 
18 
20 
21  public:
23  // Rule of 5 for copy/move/dtor
29 
34  }
35 
37  double solenoidFieldScaleFactor() const { return m_solFieldScale; }
38 
40  double toriodFieldScaleFactor() const { return m_torFieldScale; }
41 
43  const MagField::AtlasFieldMap* fieldMap() const { return m_fieldMap; }
44 
46  void initialize(double solFieldScale, double torFieldScale,
48 
49  m_solFieldScale = solFieldScale;
50  m_torFieldScale = torFieldScale;
52  }
53 
54  private:
55  double m_solFieldScale{1};
56  double m_torFieldScale{1};
57  //not owning ptr to Field Map
59 };
60 
61 #include "AthenaKernel/CLASS_DEF.h"
62 CLASS_DEF( AtlasFieldCacheCondObj, 258146572, 1)
64 
65 
66 #endif // MAGFIELDCONDITIONS_ATLASMTFIELDCONDOBJ
67 
AtlasFieldCacheCondObj::operator=
AtlasFieldCacheCondObj & operator=(AtlasFieldCacheCondObj &&)=default
CondCont.h
Hold mappings of ranges to condition objects.
AtlasFieldCacheCondObj
Definition: AtlasFieldCacheCondObj.h:19
AtlasFieldCacheCondObj::initialize
void initialize(double solFieldScale, double torFieldScale, const MagField::AtlasFieldMap *fieldMap)
set values for field scale and service to be able to build the cache
Definition: AtlasFieldCacheCondObj.h:46
CONDCONT_DEF
CONDCONT_DEF(AtlasFieldCacheCondObj, 3622068)
AtlasFieldCacheCondObj::fieldMap
const MagField::AtlasFieldMap * fieldMap() const
access to non-owning AtlasFieldMap
Definition: AtlasFieldCacheCondObj.h:43
AtlasFieldCacheCondObj::solenoidFieldScaleFactor
double solenoidFieldScaleFactor() const
access to solenoid field scale factor
Definition: AtlasFieldCacheCondObj.h:37
AtlasFieldCacheCondObj::getInitializedCache
void getInitializedCache(MagField::AtlasFieldCache &cache) const
get B field cache for evaluation as a function of 2-d or 3-d position.
Definition: AtlasFieldCacheCondObj.h:32
AtlasFieldCacheCondObj::m_solFieldScale
double m_solFieldScale
Definition: AtlasFieldCacheCondObj.h:55
AtlasFieldCache.h
AtlasFieldCacheCondObj::operator=
AtlasFieldCacheCondObj & operator=(const AtlasFieldCacheCondObj &)=default
MagField
Local cache for magnetic field (based on MagFieldServices/AtlasFieldSvcTLS.h)
Definition: ForwardRegionFieldSvc.h:27
MagField::AtlasFieldMap
Map for magnetic field.
Definition: AtlasFieldMap.h:39
AtlasFieldCacheCondObj::toriodFieldScaleFactor
double toriodFieldScaleFactor() const
access to toroid field scale factor
Definition: AtlasFieldCacheCondObj.h:40
AtlasFieldCacheCondObj::m_fieldMap
const MagField::AtlasFieldMap * m_fieldMap
Definition: AtlasFieldCacheCondObj.h:58
AtlasFieldCacheCondObj::AtlasFieldCacheCondObj
AtlasFieldCacheCondObj(AtlasFieldCacheCondObj &&)=default
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64
MagField::AtlasFieldCache
Local cache for magnetic field (based on MagFieldServices/AtlasFieldSvcTLS.h)
Definition: AtlasFieldCache.h:43
AtlasFieldCacheCondObj::AtlasFieldCacheCondObj
AtlasFieldCacheCondObj(const AtlasFieldCacheCondObj &)=default
AtlasFieldCacheCondObj::m_torFieldScale
double m_torFieldScale
Definition: AtlasFieldCacheCondObj.h:56
CLASS_DEF.h
macros to associate a CLID to a type
AtlasFieldCacheCondObj::~AtlasFieldCacheCondObj
~AtlasFieldCacheCondObj()=default
AtlasFieldCacheCondObj::AtlasFieldCacheCondObj
AtlasFieldCacheCondObj()=default