ATLAS Offline Software
Loading...
Searching...
No Matches
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*/
7
8#include <GeoModelKernel/GeoVDetectorElement.h>
9
10#ifndef SIMULATIONBASE
11# include "Acts/Surfaces/Surface.hpp"
12#endif
13
14namespace ActsTrk {
21
23 m_nomCache.release();
24 }
25
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 }
35
38 const GeoVDetectorElement* vParent = dynamic_cast<const GeoVDetectorElement*>(parent());
39 if (vParent) {
40 vParent->getMaterialGeom()->clearPositionInfo();
41 }
42 }
43
45#ifndef SIMULATIONBASE
47#endif
48
virtual ~AlignableGeoPositioning()
Default destructors.
const unsigned int m_clientNo
Slot at which the aligned transforms can be put in the external DetectorAlignStore.
IdentifierHash hash() const
Returns the sensor hash of this transformation cache.
virtual void releaseNominalCache() const
resets the nominal cache associated with the detector element
DetectorType detectorType() const
returns the detector type of the cache
bool storeTransform(DetectorAlignStore &store) const
Store the final transform in the mutable alignment store.
virtual Amg::Transform3D fetchTransform(const DetectorAlignStore *store) const =0
AlignableGeoPositioning(const IdentifierHash &cacheHash, const DetectorType type)
Standard constrcutor.
virtual ~IReadoutSurfacePositioning()
Destructor.
const SurfacePlacement * placement() const
Returns the pointer to the associated surface placement.
std::shared_ptr< SurfacePlacement > m_placement
Holder of the surface placement pointer.
virtual void releaseNominalCache() const final
Release the nominal transform stored in the cache.
virtual const IDetectorElement * parent() const =0
Returns the parent IDetectorElement owning the cache.
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...
This is a "hash" representation of an Identifier.
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
DetectorType
Simple enum to Identify the Type of the ACTS sub detector.