ATLAS Offline Software
Loading...
Searching...
No Matches
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
14namespace MagField {
15 class AtlasFieldMap;
16}
17
18
20
21 public:
23 // Rule of 5 for copy/move/dtor
29
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
64
65
66#endif // MAGFIELDCONDITIONS_ATLASMTFIELDCONDOBJ
67
Hold mappings of ranges to condition objects.
#define CONDCONT_DEF(...)
Definition CondCont.h:1413
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
AtlasFieldCacheCondObj(AtlasFieldCacheCondObj &&)=default
const MagField::AtlasFieldMap * fieldMap() const
access to non-owning AtlasFieldMap
AtlasFieldCacheCondObj & operator=(const AtlasFieldCacheCondObj &)=default
~AtlasFieldCacheCondObj()=default
AtlasFieldCacheCondObj & operator=(AtlasFieldCacheCondObj &&)=default
void getInitializedCache(MagField::AtlasFieldCache &cache) const
get B field cache for evaluation as a function of 2-d or 3-d position.
void initialize(double solFieldScale, double torFieldScale, const MagField::AtlasFieldMap *fieldMap)
set values for field scale and service to be able to build the cache
double solenoidFieldScaleFactor() const
access to solenoid field scale factor
AtlasFieldCacheCondObj()=default
AtlasFieldCacheCondObj(const AtlasFieldCacheCondObj &)=default
const MagField::AtlasFieldMap * m_fieldMap
double toriodFieldScaleFactor() const
access to toroid field scale factor
Local cache for magnetic field (based on MagFieldServices/AtlasFieldSvcTLS.h)
Map for magnetic field.
Local cache for magnetic field (based on MagFieldServices/AtlasFieldSvcTLS.h)