ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
Acts
ActsGeoUtils
src
SurfacePlacement.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/SurfacePlacement.h
>
6
#ifndef SIMULATIONBASE
7
#include <Acts/Surfaces/Surface.hpp>
8
#include <GeoModelKernel/throwExcept.h>
9
10
namespace
ActsTrk
{
11
SurfacePlacement::SurfacePlacement
(
IReadoutSurfacePositioning
* transformCache):
12
m_transformCache
{transformCache}{}
13
14
const
IDetectorElement
*
SurfacePlacement::detectorElement
()
const
{
return
m_transformCache
->parent(); }
15
const
Acts::Transform3&
SurfacePlacement::localToGlobalTransform
(
const
Acts::GeometryContext& tgContext)
const
{
16
return
m_transformCache
->getTransform(tgContext);
17
}
18
const
Acts::Surface&
SurfacePlacement::surface
()
const
{
19
return
*
m_transformCache
->m_surface;
20
}
21
Acts::Surface&
SurfacePlacement::surface
() {
22
return
*
m_transformCache
->m_surface;
23
}
24
std::shared_ptr<Acts::Surface>
SurfacePlacement::getSurface
()
const
{
return
m_transformCache
->m_surface; }
25
IdentifierHash
SurfacePlacement::hash
()
const
{
return
m_transformCache
->hash(); }
26
Identifier
SurfacePlacement::identify
()
const
{
return
m_transformCache
->identify(); }
27
DetectorType
SurfacePlacement::detectorType
()
const
{
return
m_transformCache
->detectorType(); }
28
}
29
#endif
SurfacePlacement.h
ActsTrk::IDetectorElement
ATLAS interface of a detector element.
Definition
IDetectorElement.h:20
ActsTrk::IReadoutSurfacePositioning
Interface extension for caches used to hold the transforms of surfaces from the readout geometry.
Definition
TransformCache.h:111
ActsTrk::SurfacePlacement::detectorType
DetectorType detectorType() const override final
Returns the detector element type.
Definition
SurfacePlacement.cxx:27
ActsTrk::SurfacePlacement::getSurface
std::shared_ptr< Acts::Surface > getSurface() const
Returns a mutable shared pointer to the surface held by the placement.
Definition
SurfacePlacement.cxx:24
ActsTrk::SurfacePlacement::m_transformCache
const IReadoutSurfacePositioning * m_transformCache
Pointer to the parent.
Definition
SurfacePlacement.h:89
ActsTrk::SurfacePlacement::identify
Identifier identify() const override final
Return the ATLAS identifier of the surface.
Definition
SurfacePlacement.cxx:26
ActsTrk::SurfacePlacement::SurfacePlacement
SurfacePlacement(const SurfacePlacement &other)=delete
Delete the copy consturctor.
ActsTrk::SurfacePlacement::surface
const Acts::Surface & surface() const override final
Definition
SurfacePlacement.cxx:18
ActsTrk::SurfacePlacement::detectorElement
const IDetectorElement * detectorElement() const override final
Returns the detector element upstream.
Definition
SurfacePlacement.cxx:14
ActsTrk::SurfacePlacement::localToGlobalTransform
const Acts::Transform3 & localToGlobalTransform(const Acts::GeometryContext &tgContext) const override final
Definition
SurfacePlacement.cxx:15
ActsTrk::SurfacePlacement::hash
IdentifierHash hash() const
Identifierhash of the associated IReadoutSurfacePositioning.
Definition
SurfacePlacement.cxx:25
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
Identifier
Definition
IdentifierFieldParser.cxx:14
Generated on
for ATLAS Offline Software by
1.17.0