ATLAS Offline Software
Loading...
Searching...
No Matches
ActsDetectorElement.cxx File Reference
#include "ActsGeometry/ActsDetectorElement.h"
#include "GeoModelKernel/throwExcept.h"
#include "ActsInterop/IdentityHelper.h"
#include "HGTD_ReadoutGeometry/HGTD_DetectorElement.h"
#include "InDetReadoutGeometry/SiDetectorElement.h"
#include "SCT_ReadoutGeometry/StripBoxDesign.h"
#include "SCT_ReadoutGeometry/StripStereoAnnulusDesign.h"
#include "TRT_ReadoutGeometry/TRT_BarrelElement.h"
#include "TRT_ReadoutGeometry/TRT_EndcapElement.h"
#include "TrkSurfaces/AnnulusBounds.h"
#include "TrkSurfaces/RectangleBounds.h"
#include "TrkSurfaces/Surface.h"
#include "TrkSurfaces/SurfaceBounds.h"
#include "TrkSurfaces/TrapezoidBounds.h"
#include "ActsGeometryInterfaces/GeometryContext.h"
#include "Acts/Definitions/Units.hpp"
#include "Acts/Geometry/GeometryContext.hpp"
#include "Acts/Surfaces/AnnulusBounds.hpp"
#include "Acts/Surfaces/DiscSurface.hpp"
#include "Acts/Surfaces/LineBounds.hpp"
#include "Acts/Surfaces/PlaneSurface.hpp"
#include "Acts/Surfaces/RectangleBounds.hpp"
#include "Acts/Surfaces/StrawSurface.hpp"
#include "Acts/Surfaces/TrapezoidBounds.hpp"
#include "Acts/Visualization/ObjVisualization3D.hpp"
#include "Acts/Visualization/PlyVisualization3D.hpp"
#include <mutex>
#include <variant>

Go to the source code of this file.

Functions

const ActsDetectorElementgetActsDetectorElement (const Acts::Surface &surf)
 Attempts to retrieve the ActsDetectorElement associated to the passed ActsSurface.

Variables

constexpr double length_unit = 1_mm

Function Documentation

◆ getActsDetectorElement()

const ActsDetectorElement * getActsDetectorElement ( const Acts::Surface & surf)

Attempts to retrieve the ActsDetectorElement associated to the passed ActsSurface.

Parameters
surfThe surface for which the detector element shall be retrieved

Definition at line 53 of file ActsDetectorElement.cxx.

53 {
54 if (!surf.isAlignable()) {
55 return nullptr;
56 }
57 const auto* placement = dynamic_cast<const ISurfacePlacement*>(surf.surfacePlacement());
58 if(!placement) {
59 return nullptr;
60 }
61 return dynamic_cast<const ActsDetectorElement*>(placement->detectorElement());
62}
Extension of the interface of the Acts::SurfacePlacementBase for ATLAS.

Variable Documentation

◆ length_unit

double length_unit = 1_mm
constexpr

Definition at line 51 of file ActsDetectorElement.cxx.