ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
Acts
ActsGeoUtils
src
TransformCache.cxx
Go to the documentation of this file.
1
2
/*
3
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
4
*/
5
#include <
ActsGeoUtils/TransformCache.h
>
6
#include <
ActsGeoUtils/SurfacePlacement.h
>
7
8
#include <GeoModelKernel/GeoVDetectorElement.h>
9
10
#ifndef SIMULATIONBASE
11
# include "Acts/Surfaces/Surface.hpp"
12
#endif
13
14
namespace
ActsTrk
{
15
AlignableGeoPositioning::~AlignableGeoPositioning
() {
16
TicketCounter::giveBackTicket
(
m_type
,
m_clientNo
);
17
}
18
AlignableGeoPositioning::AlignableGeoPositioning
(
const
IdentifierHash
&
hash
,
19
const
DetectorType
type
):
20
m_hash
{
hash
},
m_type
{
type
} {}
21
22
void
AlignableGeoPositioning::releaseNominalCache
()
const
{
23
m_nomCache.release();
24
}
25
26
bool
AlignableGeoPositioning::storeTransform
(
DetectorAlignStore
& store)
const
{
27
if
(store.detType !=
detectorType
() ||
28
store.trackingAlignment->getTransform(
m_clientNo
) !=
nullptr
){
29
return
false
;
30
}
31
store.trackingAlignment->setTransform(
m_clientNo
,
fetchTransform
(&store));
32
return
true
;
33
}
34
DetectorType
AlignableGeoPositioning::detectorType
()
const
{
return
m_type
; }
35
36
void
IReadoutSurfacePositioning::releaseNominalCache
()
const
{
37
AlignableGeoPositioning::releaseNominalCache
();
38
const
GeoVDetectorElement* vParent =
dynamic_cast<
const
GeoVDetectorElement*
>
(
parent
());
39
if
(vParent) {
40
vParent->getMaterialGeom()->clearPositionInfo();
41
}
42
}
43
44
IReadoutSurfacePositioning::~IReadoutSurfacePositioning
() =
default
;
45
#ifndef SIMULATIONBASE
46
const
SurfacePlacement
*
IReadoutSurfacePositioning::placement
()
const
{
return
m_placement
.get(); }
47
#endif
48
49
}
SurfacePlacement.h
TransformCache.h
ActsTrk::AlignableGeoPositioning::~AlignableGeoPositioning
virtual ~AlignableGeoPositioning()
Default destructors.
Definition
TransformCache.cxx:15
ActsTrk::AlignableGeoPositioning::m_clientNo
const unsigned int m_clientNo
Slot at which the aligned transforms can be put in the external DetectorAlignStore.
Definition
TransformCache.h:95
ActsTrk::AlignableGeoPositioning::hash
IdentifierHash hash() const
Returns the sensor hash of this transformation cache.
ActsTrk::AlignableGeoPositioning::releaseNominalCache
virtual void releaseNominalCache() const
resets the nominal cache associated with the detector element
Definition
TransformCache.cxx:22
ActsTrk::AlignableGeoPositioning::detectorType
DetectorType detectorType() const
returns the detector type of the cache
Definition
TransformCache.cxx:34
ActsTrk::AlignableGeoPositioning::storeTransform
bool storeTransform(DetectorAlignStore &store) const
Store the final transform in the mutable alignment store.
Definition
TransformCache.cxx:26
ActsTrk::AlignableGeoPositioning::m_hash
const IdentifierHash m_hash
Definition
TransformCache.h:90
ActsTrk::AlignableGeoPositioning::fetchTransform
virtual Amg::Transform3D fetchTransform(const DetectorAlignStore *store) const =0
ActsTrk::AlignableGeoPositioning::AlignableGeoPositioning
AlignableGeoPositioning(const IdentifierHash &cacheHash, const DetectorType type)
Standard constrcutor.
Definition
TransformCache.cxx:18
ActsTrk::AlignableGeoPositioning::m_type
const DetectorType m_type
Definition
TransformCache.h:91
ActsTrk::DetectorAlignStore
Definition
DetectorAlignStore.h:38
ActsTrk::IReadoutSurfacePositioning::~IReadoutSurfacePositioning
virtual ~IReadoutSurfacePositioning()
Destructor.
ActsTrk::IReadoutSurfacePositioning::placement
const SurfacePlacement * placement() const
Returns the pointer to the associated surface placement.
Definition
TransformCache.cxx:46
ActsTrk::IReadoutSurfacePositioning::m_placement
std::shared_ptr< SurfacePlacement > m_placement
Holder of the surface placement pointer.
Definition
TransformCache.h:132
ActsTrk::IReadoutSurfacePositioning::SurfacePlacement
friend class SurfacePlacement
Definition
TransformCache.h:125
ActsTrk::IReadoutSurfacePositioning::releaseNominalCache
virtual void releaseNominalCache() const final
Release the nominal transform stored in the cache.
Definition
TransformCache.cxx:36
ActsTrk::IReadoutSurfacePositioning::parent
virtual const IDetectorElement * parent() const =0
Returns the parent IDetectorElement owning the cache.
ActsTrk::detail::TrfStoreTicketCounter::giveBackTicket
static void giveBackTicket(const DetectorType detType, unsigned int ticketNo)
Return back a ticket for the specified detector type such that its slot can be used by another instan...
Definition
TransformStore.cxx:190
IdentifierHash
This is a "hash" representation of an Identifier.
Definition
IdentifierHash.h:25
ActsTrk
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Definition
MdtCalibInput.h:31
ActsTrk::DetectorType
DetectorType
Simple enum to Identify the Type of the ACTS sub detector.
Definition
GeometryDefs.h:25
type
Generated on
for ATLAS Offline Software by
1.17.0