ATLAS Offline Software
Loading...
Searching...
No Matches
ActsTrk::TransformCacheDetEle< CachingDetectorEle > Class Template Reference

#include <TransformCache.h>

Inheritance diagram for ActsTrk::TransformCacheDetEle< CachingDetectorEle >:
Collaboration diagram for ActsTrk::TransformCacheDetEle< CachingDetectorEle >:

Public Member Functions

 TransformCacheDetEle (const IdentifierHash &hash, const CachingDetectorEle *parentEle)
 : Standard constructor taking the hash of the sensor element and and the TransformMaker expressed usually as a lambda function
const IDetectorElementparent () const override final
 Returns the parent IDetectorElement owning the cache.
Identifier identify () const override final
 Returns the Identifier of the transform cache.
Identifier identify () const
 Returns the Identifier of the transform cache.
Identifier identify () const
 Identifier of the transform cache equivalent to the Identifier of the first strip inside the gasGap.
Identifier identify () const
 Identifier of the transform cache equivalent to the Identifier of the first strip inside the gasGap.
Identifier identify () const
 Returns the Identifier of the transform cache.
Identifier identify () const
 Returns the Identifier of the transform cache.
IdentifierHash hash () const
 Returns the sensor hash of this transformation cache.
const Amg::Transform3DgetTransform (const DetectorAlignStore *store) const
 Returns the matching transformation from the alignment store.
const Amg::Transform3Dtransform (const Acts::GeometryContext &gctx) const
 returns the cached transform from the Acts Geometry context
void releaseNominalCache () const
 resets the nominal cache associated with the detector element
DetectorType detectorType () const
 returns the detector type of the cache

Private Types

using TicketCounter = DetectorAlignStore::TrackingAlignStore

Private Member Functions

Amg::Transform3D fetchTransform (const DetectorAlignStore *store) const override final
Amg::Transform3D fetchTransform (const DetectorAlignStore *store) const
Amg::Transform3D fetchTransform (const DetectorAlignStore *store) const
Amg::Transform3D fetchTransform (const DetectorAlignStore *store) const
Amg::Transform3D fetchTransform (const DetectorAlignStore *store) const
Amg::Transform3D fetchTransform (const DetectorAlignStore *store) const
Amg::Transform3D fetchTransform (const DetectorAlignStore *store) const
Amg::Transform3D fetchTransform (const DetectorAlignStore *store) const

Private Attributes

const CachingDetectorEle * m_parent {nullptr}
const IdentifierHash m_hash {0}
const DetectorType m_type {DetectorType::UnDefined}
const unsigned int m_clientNo {TicketCounter::drawTicket(m_type)}
std::shared_mutex m_mutex ATLAS_THREAD_SAFE {}
CxxUtils::CachedUniquePtrT< Amg::Transform3D > m_nomCache ATLAS_THREAD_SAFE {}

Detailed Description

template<typename CachingDetectorEle>
class ActsTrk::TransformCacheDetEle< CachingDetectorEle >

Definition at line 68 of file TransformCache.h.

Member Typedef Documentation

◆ TicketCounter

Constructor & Destructor Documentation

◆ TransformCacheDetEle()

template<typename CachingDetectorEle>
ActsTrk::TransformCacheDetEle< CachingDetectorEle >::TransformCacheDetEle ( const IdentifierHash & hash,
const CachingDetectorEle * parentEle )

: Standard constructor taking the hash of the sensor element and and the TransformMaker expressed usually as a lambda function

Member Function Documentation

◆ detectorType()

DetectorType ActsTrk::TransformCache::detectorType ( ) const
inherited

returns the detector type of the cache

Definition at line 23 of file TransformCache.cxx.

23{ return m_type; }
const DetectorType m_type

◆ fetchTransform() [1/8]

◆ fetchTransform() [2/8]

Amg::Transform3D ActsTrk::TransformCacheDetEle< MuonGMR4::MmReadoutElement >::fetchTransform ( const DetectorAlignStore * store) const
privatevirtual

◆ fetchTransform() [3/8]

◆ fetchTransform() [4/8]

◆ fetchTransform() [5/8]

◆ fetchTransform() [6/8]

◆ fetchTransform() [7/8]

Amg::Transform3D ActsTrk::TransformCacheDetEle< ActsDetectorElement >::fetchTransform ( const DetectorAlignStore * store) const
inlineprivatevirtual

Implements ActsTrk::TransformCache.

Definition at line 127 of file ActsDetectorElement.h.

127 {
128 return m_parent->transform(store);
129 }
const CachingDetectorEle * m_parent

◆ fetchTransform() [8/8]

template<typename CachingDetectorEle>
Amg::Transform3D ActsTrk::TransformCacheDetEle< CachingDetectorEle >::fetchTransform ( const DetectorAlignStore * store) const
finaloverrideprivatevirtual

◆ getTransform()

const Amg::Transform3D & ActsTrk::TransformCache::getTransform ( const DetectorAlignStore * store) const
inherited

Returns the matching transformation from the alignment store.

If a nullptr is given, then it's equivalent to the case that the transformation is pointing to a perfectly aligned surface. In this case, the internal nominal transformation cache is invoked.

◆ hash()

IdentifierHash ActsTrk::TransformCache::hash ( ) const
inherited

Returns the sensor hash of this transformation cache.

◆ identify() [1/6]

Returns the Identifier of the transform cache.

Implements ActsTrk::TransformCache.

◆ identify() [2/6]

Identifier of the transform cache equivalent to the Identifier of the first strip inside the gasGap.

Implements ActsTrk::TransformCache.

◆ identify() [3/6]

Identifier of the transform cache equivalent to the Identifier of the first strip inside the gasGap.

Implements ActsTrk::TransformCache.

◆ identify() [4/6]

Returns the Identifier of the transform cache.

Implements ActsTrk::TransformCache.

◆ identify() [5/6]

Returns the Identifier of the transform cache.

Implements ActsTrk::TransformCache.

◆ identify() [6/6]

template<typename CachingDetectorEle>
Identifier ActsTrk::TransformCacheDetEle< CachingDetectorEle >::identify ( ) const
finaloverridevirtual

Returns the Identifier of the transform cache.

Implements ActsTrk::TransformCache.

◆ parent()

template<typename CachingDetectorEle>
const IDetectorElement * ActsTrk::TransformCacheDetEle< CachingDetectorEle >::parent ( ) const
finaloverridevirtual

Returns the parent IDetectorElement owning the cache.

Implements ActsTrk::TransformCache.

◆ releaseNominalCache()

void ActsTrk::TransformCache::releaseNominalCache ( ) const
inherited

resets the nominal cache associated with the detector element

Definition at line 17 of file TransformCache.cxx.

17 {
18 std::unique_lock guard{m_mutex};
19 m_nomCache.release();
20 const GeoVDetectorElement* vParent = dynamic_cast<const GeoVDetectorElement*>(parent());
21 if (vParent) vParent->getMaterialGeom()->clearPositionInfo();
22 }
virtual const IDetectorElement * parent() const =0
Returns the parent IDetectorElement owning the cache.

◆ transform()

const Amg::Transform3D & ActsTrk::TransformCache::transform ( const Acts::GeometryContext & gctx) const
inherited

returns the cached transform from the Acts Geometry context

Member Data Documentation

◆ ATLAS_THREAD_SAFE [1/2]

std::shared_mutex m_mutex ActsTrk::TransformCache::ATLAS_THREAD_SAFE {}
mutableprivateinherited

Definition at line 61 of file TransformCache.h.

61{};

◆ ATLAS_THREAD_SAFE [2/2]

CxxUtils::CachedUniquePtrT<Amg::Transform3D> m_nomCache ActsTrk::TransformCache::ATLAS_THREAD_SAFE {}
mutableprivateinherited

Definition at line 62 of file TransformCache.h.

62{};

◆ m_clientNo

const unsigned int ActsTrk::TransformCache::m_clientNo {TicketCounter::drawTicket(m_type)}
privateinherited

Definition at line 60 of file TransformCache.h.

static unsigned int drawTicket(const DetectorType detType)
Returns a unique ID to the client under which the client can store its transformation inside the cont...

◆ m_hash

const IdentifierHash ActsTrk::TransformCache::m_hash {0}
privateinherited

Definition at line 57 of file TransformCache.h.

57{0};

◆ m_parent

template<typename CachingDetectorEle>
const CachingDetectorEle* ActsTrk::TransformCacheDetEle< CachingDetectorEle >::m_parent {nullptr}
private

Definition at line 80 of file TransformCache.h.

80{nullptr};

◆ m_type

const DetectorType ActsTrk::TransformCache::m_type {DetectorType::UnDefined}
privateinherited

Definition at line 58 of file TransformCache.h.

@ UnDefined
Small Thing Gap chambers (NSW)

The documentation for this class was generated from the following files: