ATLAS Offline Software
AtlasFieldMapCondObj.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_ATLASMTFIELDMAPCONDOBJ
6 #define MAGFIELDCONDITIONS_ATLASMTFIELDMAPCONDOBJ
7 
8 // MagField includes
11 
13  public:
14  AtlasFieldMapCondObj() = default;
15  // Rule of 5 for copy/move/dtor
18  ~AtlasFieldMapCondObj() = default;
19  // delete copy as we hold a unique ptr. Moveable not copyable
22 
23  // access to field map
24  const MagField::AtlasFieldMap* fieldMap() const { return m_fieldMap.get(); }
25 
26  // setter
27  void setFieldMap(std::unique_ptr<MagField::AtlasFieldMap> fieldMap);
28 
29  private:
30  // field map
31  std::unique_ptr<MagField::AtlasFieldMap> m_fieldMap{nullptr};
32 };
33 
34 #include "AthenaKernel/CLASS_DEF.h"
35 CLASS_DEF( AtlasFieldMapCondObj, 122915602, 1)
37 
38 
39 #endif // MAGFIELDCONDITIONS_ATLASMTFIELDMAPCONDOBJ
40 
AtlasFieldMapCondObj::operator=
AtlasFieldMapCondObj & operator=(AtlasFieldMapCondObj &&)=default
CondCont.h
Hold mappings of ranges to condition objects.
AtlasFieldMapCondObj
Definition: AtlasFieldMapCondObj.h:12
AtlasFieldMapCondObj::setFieldMap
void setFieldMap(std::unique_ptr< MagField::AtlasFieldMap > fieldMap)
Definition: AtlasFieldMapCondObj.cxx:8
AtlasFieldMapCondObj::~AtlasFieldMapCondObj
~AtlasFieldMapCondObj()=default
CONDCONT_DEF
CONDCONT_DEF(AtlasFieldMapCondObj, 249359246)
AtlasFieldMapCondObj::fieldMap
const MagField::AtlasFieldMap * fieldMap() const
Definition: AtlasFieldMapCondObj.h:24
AtlasFieldMapCondObj::m_fieldMap
std::unique_ptr< MagField::AtlasFieldMap > m_fieldMap
Definition: AtlasFieldMapCondObj.h:31
AtlasFieldMapCondObj::AtlasFieldMapCondObj
AtlasFieldMapCondObj()=default
MagField::AtlasFieldMap
Map for magnetic field.
Definition: AtlasFieldMap.h:39
AtlasFieldMap.h
AtlasFieldMapCondObj::AtlasFieldMapCondObj
AtlasFieldMapCondObj(AtlasFieldMapCondObj &&)=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
AtlasFieldMapCondObj::operator=
AtlasFieldMapCondObj & operator=(const AtlasFieldMapCondObj &)=delete
AtlasFieldMapCondObj::AtlasFieldMapCondObj
AtlasFieldMapCondObj(const AtlasFieldMapCondObj &)=delete
CLASS_DEF.h
macros to associate a CLID to a type