ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
DetectorDescription
GeoModel
GeoModelUtilities
src
GeoAlignmentStore.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
GeoModelUtilities/GeoAlignmentStore.h
"
6
7
void
GeoAlignmentStore::setDelta
(
const
GeoAlignableTransform* axf,
const
GeoTrf::Transform3D& xf) {
8
setDelta
(axf, std::make_shared<GeoTrf::Transform3D>(xf));
9
}
10
11
void
GeoAlignmentStore::setDelta
(
const
GeoAlignableTransform* axf, std::shared_ptr<const GeoTrf::Transform3D> trans) {
12
m_deltas
->setTransform(axf, std::move(trans));
13
}
14
void
GeoAlignmentStore::setAbsPosition
(
const
GeoNodePositioning* fpv,
const
GeoTrf::Transform3D& xf) {
15
m_absPositions
->setTransform(fpv, xf);
16
}
17
void
GeoAlignmentStore::setDefAbsPosition
(
const
GeoNodePositioning* fpv,
const
GeoTrf::Transform3D& xf) {
18
m_defAbsPositions
->setTransform(fpv, xf);
19
}
20
void
GeoAlignmentStore::lockDelta
() {
21
m_deltas
->lock();
22
}
23
void
GeoAlignmentStore::lockPosCache
() {
24
m_absPositions
->lock();
25
m_defAbsPositions
->lock();
26
}
27
28
29
bool
GeoAlignmentStore::posCacheLocked
()
const
{
return
m_deltas
->isLocked(); }
30
bool
GeoAlignmentStore::deltaCacheLocked
()
const
{
return
m_absPositions
->isLocked(); }
31
32
33
bool
GeoAlignmentStore::append
(
const
GeoAlignmentStore
& other) {
34
bool
allGood{
m_deltas
->append(*other.m_deltas)};
35
allGood =
m_absPositions
->append(*other.m_absPositions) && allGood;
36
allGood =
m_defAbsPositions
->append(*other.m_defAbsPositions) && allGood;
37
return
allGood;
38
}
39
40
GeoAlignmentStore::DeltaMapPtr
GeoAlignmentStore::getDeltas
()
const
{
41
return
m_deltas
;
42
}
43
GeoAlignmentStore::PositioningMapPtr
GeoAlignmentStore::getAbsPositions
()
const
{
44
return
m_absPositions
;
45
}
46
GeoAlignmentStore::PositioningMapPtr
GeoAlignmentStore::getDefAbsPositions
()
const
{
47
return
m_defAbsPositions
;
48
}
49
void
GeoAlignmentStore::clearPosCache
() {
50
m_absPositions
= std::make_unique<PositioningMap>();
51
m_defAbsPositions
= std::make_unique<PositioningMap>();
52
}
GeoAlignmentStore.h
GeoAlignmentStore::deltaCacheLocked
bool deltaCacheLocked() const
Returns whether the delta transform cache is locked.
Definition
GeoAlignmentStore.cxx:30
GeoAlignmentStore::m_absPositions
PositioningMapPtr m_absPositions
Definition
GeoAlignmentStore.h:87
GeoAlignmentStore::posCacheLocked
bool posCacheLocked() const
Returns whether the position cache is locked.
Definition
GeoAlignmentStore.cxx:29
GeoAlignmentStore::PositioningMapPtr
GeoModel::TransientConstSharedPtr< PositioningMap > PositioningMapPtr
Definition
GeoAlignmentStore.h:84
GeoAlignmentStore::append
bool append(const GeoAlignmentStore &other)
: Copies, the deltas, the absolute and the nominal positions of the other map to this object.
Definition
GeoAlignmentStore.cxx:33
GeoAlignmentStore::getDefAbsPositions
PositioningMapPtr getDefAbsPositions() const
Definition
GeoAlignmentStore.cxx:46
GeoAlignmentStore::getAbsPositions
PositioningMapPtr getAbsPositions() const
Definition
GeoAlignmentStore.cxx:43
GeoAlignmentStore::setDelta
virtual void setDelta(const GeoAlignableTransform *alignableNode, const GeoTrf::Transform3D &transform) override
: Assign the alignment delta transform with a alignable GeoModel node
Definition
GeoAlignmentStore.cxx:7
GeoAlignmentStore::clearPosCache
void clearPosCache()
: Clears the position cache
Definition
GeoAlignmentStore.cxx:49
GeoAlignmentStore::DeltaMapPtr
GeoModel::TransientConstSharedPtr< DeltaMap > DeltaMapPtr
Definition
GeoAlignmentStore.h:81
GeoAlignmentStore::setDefAbsPosition
virtual void setDefAbsPosition(const GeoNodePositioning *fullPhysVol, const GeoTrf::Transform3D &unAlignedTrf) override final
: Caches the aboslute transform of the perfectly aligned physical volume.
Definition
GeoAlignmentStore.cxx:17
GeoAlignmentStore::m_defAbsPositions
PositioningMapPtr m_defAbsPositions
Definition
GeoAlignmentStore.h:88
GeoAlignmentStore::lockDelta
void lockDelta()
: Locks the delta transform cache
Definition
GeoAlignmentStore.cxx:20
GeoAlignmentStore::GeoAlignmentStore
GeoAlignmentStore()=default
Default constructor.
GeoAlignmentStore::m_deltas
DeltaMapPtr m_deltas
Definition
GeoAlignmentStore.h:86
GeoAlignmentStore::setAbsPosition
virtual void setAbsPosition(const GeoNodePositioning *fullPhysVol, const GeoTrf::Transform3D &physVolTrf) override final
: Caches the absolute transform including the alignment distortions that's associated with the full p...
Definition
GeoAlignmentStore.cxx:14
GeoAlignmentStore::lockPosCache
void lockPosCache()
: Locks the position cache
Definition
GeoAlignmentStore.cxx:23
GeoAlignmentStore::getDeltas
DeltaMapPtr getDeltas() const
Definition
GeoAlignmentStore.cxx:40
Generated on
for ATLAS Offline Software by
1.17.0