ATLAS Offline Software
AtlasFieldCacheCondObj.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MAGFIELDCONDITIONS_ATLASMTFIELDCONDOBJ
6 #define MAGFIELDCONDITIONS_ATLASMTFIELDCONDOBJ
7 
8 // MagField includes
9 #include "AthenaKernel/CondCont.h"
10 #include "GaudiKernel/ServiceHandle.h"
12 
13 // forward declarations
14 namespace MagField {
15  class AtlasFieldMap;
16 }
17 
18 
20 
21 public:
23 
25 
28  inline void getInitializedCache (MagField::AtlasFieldCache& cache) const;
29 
31  double solenoidFieldScaleFactor() const { return m_solFieldScale; }
32 
34  double toriodFieldScaleFactor() const { return m_torFieldScale; }
35 
37  const MagField::AtlasFieldMap* fieldMap() const { return m_fieldMap; }
38 
40  void initialize(double solFieldScale, double torFieldScale,
42 
43 private:
44  double m_solFieldScale{1};
45  double m_torFieldScale{1};
47 };
48 
49 // inline function(s)
50 
51 void
53 {
54 
55  // setup with field scale and magnetic field service for first access to field */
57 }
58 
59 
60 #include "AthenaKernel/CLASS_DEF.h"
61 CLASS_DEF( AtlasFieldCacheCondObj, 258146572, 1)
63 
64 
65 #endif // MAGFIELDCONDITIONS_ATLASMTFIELDCONDOBJ
66 
AtlasFieldCacheCondObj::~AtlasFieldCacheCondObj
~AtlasFieldCacheCondObj()
Definition: AtlasFieldCacheCondObj.cxx:9
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.cxx:13
CONDCONT_DEF
CONDCONT_DEF(AtlasFieldCacheCondObj, 3622068)
AtlasFieldCacheCondObj::fieldMap
const MagField::AtlasFieldMap * fieldMap() const
access to non-owning AtlasFieldMap
Definition: AtlasFieldCacheCondObj.h:37
AtlasFieldCacheCondObj::solenoidFieldScaleFactor
double solenoidFieldScaleFactor() const
access to solenoid field scale factor
Definition: AtlasFieldCacheCondObj.h:31
AtlasFieldCacheCondObj::getInitializedCache
void getInitializedCache(MagField::AtlasFieldCache &cache) const
get B field cache for evaluation as a function of 2-d (solenoid) or 3-d (toroid) position.
Definition: AtlasFieldCacheCondObj.h:52
AtlasFieldCacheCondObj::m_solFieldScale
double m_solFieldScale
Definition: AtlasFieldCacheCondObj.h:44
AtlasFieldCache.h
AtlasFieldCacheCondObj::AtlasFieldCacheCondObj
AtlasFieldCacheCondObj()
Definition: AtlasFieldCacheCondObj.cxx:6
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:34
AtlasFieldCacheCondObj::m_fieldMap
const MagField::AtlasFieldMap * m_fieldMap
Definition: AtlasFieldCacheCondObj.h:46
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::m_torFieldScale
double m_torFieldScale
Definition: AtlasFieldCacheCondObj.h:45
CLASS_DEF.h
macros to associate a CLID to a type