ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
AtlasFieldCacheCondObj Class Reference

#include <AtlasFieldCacheCondObj.h>

Collaboration diagram for AtlasFieldCacheCondObj:

Public Member Functions

 AtlasFieldCacheCondObj ()
 
 ~AtlasFieldCacheCondObj ()
 
void getInitializedCache (MagField::AtlasFieldCache &cache) const
 get B field cache for evaluation as a function of 2-d (solenoid) or 3-d (toroid) position. More...
 
double solenoidFieldScaleFactor () const
 access to solenoid field scale factor More...
 
double toriodFieldScaleFactor () const
 access to toroid field scale factor More...
 
const MagField::AtlasFieldMapfieldMap () const
 access to non-owning AtlasFieldMap More...
 
void initialize (double solFieldScale, double torFieldScale, const MagField::AtlasFieldMap *fieldMap)
 set values for field scale and service to be able to build the cache More...
 

Private Attributes

double m_solFieldScale {1}
 
double m_torFieldScale {1}
 
const MagField::AtlasFieldMapm_fieldMap {nullptr}
 

Detailed Description

Definition at line 19 of file AtlasFieldCacheCondObj.h.

Constructor & Destructor Documentation

◆ AtlasFieldCacheCondObj()

AtlasFieldCacheCondObj::AtlasFieldCacheCondObj ( )

Definition at line 6 of file AtlasFieldCacheCondObj.cxx.

7 {}

◆ ~AtlasFieldCacheCondObj()

AtlasFieldCacheCondObj::~AtlasFieldCacheCondObj ( )

Definition at line 9 of file AtlasFieldCacheCondObj.cxx.

9 {}

Member Function Documentation

◆ fieldMap()

const MagField::AtlasFieldMap* AtlasFieldCacheCondObj::fieldMap ( ) const
inline

access to non-owning AtlasFieldMap

Definition at line 37 of file AtlasFieldCacheCondObj.h.

37 { return m_fieldMap; }

◆ getInitializedCache()

void AtlasFieldCacheCondObj::getInitializedCache ( MagField::AtlasFieldCache cache) const
inline

get B field cache for evaluation as a function of 2-d (solenoid) or 3-d (toroid) position.

Resets cache to an initialized state

Definition at line 52 of file AtlasFieldCacheCondObj.h.

53 {
54 
55  // setup with field scale and magnetic field service for first access to field */
57 }

◆ initialize()

void AtlasFieldCacheCondObj::initialize ( double  solFieldScale,
double  torFieldScale,
const MagField::AtlasFieldMap fieldMap 
)

set values for field scale and service to be able to build the cache

Definition at line 13 of file AtlasFieldCacheCondObj.cxx.

16 {
17  // temporary flag
18  m_solFieldScale = solFieldScale;
19  m_torFieldScale = torFieldScale;
21 }

◆ solenoidFieldScaleFactor()

double AtlasFieldCacheCondObj::solenoidFieldScaleFactor ( ) const
inline

access to solenoid field scale factor

Definition at line 31 of file AtlasFieldCacheCondObj.h.

31 { return m_solFieldScale; }

◆ toriodFieldScaleFactor()

double AtlasFieldCacheCondObj::toriodFieldScaleFactor ( ) const
inline

access to toroid field scale factor

Definition at line 34 of file AtlasFieldCacheCondObj.h.

34 { return m_torFieldScale; }

Member Data Documentation

◆ m_fieldMap

const MagField::AtlasFieldMap* AtlasFieldCacheCondObj::m_fieldMap {nullptr}
private

Definition at line 46 of file AtlasFieldCacheCondObj.h.

◆ m_solFieldScale

double AtlasFieldCacheCondObj::m_solFieldScale {1}
private

Definition at line 44 of file AtlasFieldCacheCondObj.h.

◆ m_torFieldScale

double AtlasFieldCacheCondObj::m_torFieldScale {1}
private

Definition at line 45 of file AtlasFieldCacheCondObj.h.


The documentation for this class was generated from the following files:
AtlasFieldCacheCondObj::fieldMap
const MagField::AtlasFieldMap * fieldMap() const
access to non-owning AtlasFieldMap
Definition: AtlasFieldCacheCondObj.h:37
AtlasFieldCacheCondObj::m_solFieldScale
double m_solFieldScale
Definition: AtlasFieldCacheCondObj.h:44
AtlasFieldCacheCondObj::m_fieldMap
const MagField::AtlasFieldMap * m_fieldMap
Definition: AtlasFieldCacheCondObj.h:46
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