ATLAS Offline Software
|
: Helper class to connect the aligned transformations of each active sensor(layer) with the Acts::Surfaces. More...
#include <SurfaceCache.h>
Public Member Functions | |
SurfaceCache (const TransformCache *transformCache) | |
: Standard constructor taking the tranasform cache of the element and the detector type. More... | |
const Acts::Transform3 & | transform (const Acts::GeometryContext &gctx) const override final |
Returns the transformation stored in the TransformCache. More... | |
const Acts::Surface & | surface () const override final |
Returns the dereferenced pointer cache. More... | |
Acts::Surface & | surface () override final |
double | thickness () const override final |
Dummy override to satisfy the interface of the Acts::DetElementBase. More... | |
void | setSurface (const std::shared_ptr< Acts::Surface > surface) |
Cache the pointer to the surface that's constructed from this cache. More... | |
std::shared_ptr< Acts::Surface > | getSurface () const |
Returns the pointer to the cached surface. More... | |
IdentifierHash | hash () const |
Hash of the SurfaceCache which is the same as the one of the TransformCache. More... | |
Identifier | identify () const override final |
Returns the identifier of the Surface. More... | |
DetectorType | detectorType () const override final |
Returns the detector type. More... | |
const TransformCache * | transformCache () const |
Returns the associated transform cache. More... | |
Private Attributes | |
const TransformCache * | m_transformCache {nullptr} |
std::shared_ptr< Acts::Surface > | m_surface {nullptr} |
: Helper class to connect the aligned transformations of each active sensor(layer) with the Acts::Surfaces.
It's actively used in the surface factories of the MuonReadoutElement. The SurfaceCache takes a pointer to the TransformCache managing the local to global transformation of the corresponding layer and the DetectorType. The latter is needed to pass the proper AlignmentStore from the Geometry context to the transform cache. Once constructed, the TransformCache is parsed to the surface construction mechanism of the Acts::Surface. The resulting shared_ptr is then parsed to the SurfaceCache.
Definition at line 23 of file Tracking/Acts/ActsGeoUtils/ActsGeoUtils/SurfaceCache.h.
ActsTrk::SurfaceCache::SurfaceCache | ( | const TransformCache * | transformCache | ) |
: Standard constructor taking the tranasform cache of the element and the detector type.
Definition at line 12 of file SurfaceCache.cxx.
|
finaloverridevirtual |
Returns the detector type.
Implements ActsTrk::IDetectorElementBase.
Definition at line 32 of file SurfaceCache.cxx.
std::shared_ptr< Acts::Surface > ActsTrk::SurfaceCache::getSurface | ( | ) | const |
IdentifierHash ActsTrk::SurfaceCache::hash | ( | ) | const |
Hash of the SurfaceCache which is the same as the one of the TransformCache.
Definition at line 30 of file SurfaceCache.cxx.
|
finaloverridevirtual |
Returns the identifier of the Surface.
Implements ActsTrk::IDetectorElementBase.
Definition at line 31 of file SurfaceCache.cxx.
void ActsTrk::SurfaceCache::setSurface | ( | const std::shared_ptr< Acts::Surface > | surface | ) |
Cache the pointer to the surface that's constructed from this cache.
Definition at line 29 of file SurfaceCache.cxx.
|
finaloverride |
|
finaloverride |
Definition at line 23 of file SurfaceCache.cxx.
|
finaloverride |
Dummy override to satisfy the interface of the Acts::DetElementBase.
Definition at line 28 of file SurfaceCache.cxx.
|
finaloverride |
Returns the transformation stored in the TransformCache.
Definition at line 16 of file SurfaceCache.cxx.
const TransformCache * ActsTrk::SurfaceCache::transformCache | ( | ) | const |
|
private |
Definition at line 56 of file Tracking/Acts/ActsGeoUtils/ActsGeoUtils/SurfaceCache.h.
|
private |
Definition at line 55 of file Tracking/Acts/ActsGeoUtils/ActsGeoUtils/SurfaceCache.h.