EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ActsExamples::Generic::GenericDetectorElement Class Reference

#include <acts/blob/sPHENIX/Examples/Detectors/GenericDetector/include/ActsExamples/GenericDetector/GenericDetectorElement.hpp>

+ Inheritance diagram for ActsExamples::Generic::GenericDetectorElement:
+ Collaboration diagram for ActsExamples::Generic::GenericDetectorElement:

Public Types

using ContextType = Acts::GeometryContext
 Broadcast the ContextType.
 

Public Member Functions

 GenericDetectorElement (const Identifier identifier, std::shared_ptr< const Acts::Transform3D > transform, std::shared_ptr< const Acts::PlanarBounds > pBounds, double thickness, std::shared_ptr< const Acts::ISurfaceMaterial > material=nullptr, std::shared_ptr< const Acts::DigitizationModule > digitzationModule=nullptr)
 
 GenericDetectorElement (const Identifier identifier, std::shared_ptr< const Acts::Transform3D > transform, std::shared_ptr< const Acts::DiscBounds > dBounds, double thickness, std::shared_ptr< const Acts::ISurfaceMaterial > material=nullptr, std::shared_ptr< const Acts::DigitizationModule > digitzationModule=nullptr)
 
Identifier identifier () const overridefinal
 Identifier.
 
const Acts::Transform3Dtransform (const Acts::GeometryContext &gctx) const override
 
const Acts::Surfacesurface () const finaloverride
 Return surface associated with this identifier,.
 
void assignIdentifier (const Identifier &identifier)
 Set the identifier after construction (sometimes needed)
 
double thickness () const finaloverride
 The maximal thickness of the detector element wrt normal axis.
 
const std::shared_ptr< const
Acts::DigitizationModule
digitizationModule () const finaloverride
 Retrieve the DigitizationModule.
 

Private Attributes

Identifier m_elementIdentifier
 
std::shared_ptr< const
Acts::Transform3D
m_elementTransform
 the transform for positioning in 3D space
 
std::shared_ptr< const
Acts::Surface
m_elementSurface
 the surface represented by it
 
double m_elementThickness
 the element thickness
 
std::shared_ptr< const
Acts::PlanarBounds
m_elementPlanarBounds = nullptr
 store either
 
std::shared_ptr< const
Acts::DiscBounds
m_elementDiscBounds = nullptr
 
std::shared_ptr< const
Acts::DigitizationModule
m_digitizationModule
 The Digitization module.
 

Detailed Description

This is a lightweight type of detector element, it simply implements the base class.

Definition at line 34 of file GenericDetectorElement.hpp.

View newest version in sPHENIX GitHub at line 34 of file GenericDetectorElement.hpp

Member Typedef Documentation

Broadcast the ContextType.

Definition at line 37 of file GenericDetectorElement.hpp.

View newest version in sPHENIX GitHub at line 37 of file GenericDetectorElement.hpp

Constructor & Destructor Documentation

ActsExamples::Generic::GenericDetectorElement::GenericDetectorElement ( const Identifier  identifier,
std::shared_ptr< const Acts::Transform3D transform,
std::shared_ptr< const Acts::PlanarBounds pBounds,
double  thickness,
std::shared_ptr< const Acts::ISurfaceMaterial material = nullptr,
std::shared_ptr< const Acts::DigitizationModule digitzationModule = nullptr 
)

Constructor for single sided detector element

  • bound to a Plane Surface
Parameters
identifieris the module identifier
transformis the transform that element the layer in 3D frame
pBoundsis the planar bounds for the planar detector element
thicknessis the module thickness
materialis the (optional) Surface material associated to it

Definition at line 16 of file GenericDetectorElement.cpp.

View newest version in sPHENIX GitHub at line 16 of file GenericDetectorElement.cpp

References Acts::Surface::assignSurfaceMaterial(), boost::const_pointer_cast(), and m_elementSurface.

+ Here is the call graph for this function:

ActsExamples::Generic::GenericDetectorElement::GenericDetectorElement ( const Identifier  identifier,
std::shared_ptr< const Acts::Transform3D transform,
std::shared_ptr< const Acts::DiscBounds dBounds,
double  thickness,
std::shared_ptr< const Acts::ISurfaceMaterial material = nullptr,
std::shared_ptr< const Acts::DigitizationModule digitzationModule = nullptr 
)

Constructor for single sided detector element

  • bound to a Disc Surface
Parameters
identifieris the module identifier
transformis the transform that element the layer in 3D frame
dBoundsis the planar bounds for the disc like detector element
thicknessis the module thickness
materialis the (optional) Surface material associated to it

Definition at line 36 of file GenericDetectorElement.cpp.

View newest version in sPHENIX GitHub at line 36 of file GenericDetectorElement.cpp

References Acts::Surface::assignSurfaceMaterial(), boost::const_pointer_cast(), and m_elementSurface.

+ Here is the call graph for this function:

Member Function Documentation

void ActsExamples::Generic::GenericDetectorElement::assignIdentifier ( const Identifier identifier)
inline

Set the identifier after construction (sometimes needed)

Definition at line 114 of file GenericDetectorElement.hpp.

View newest version in sPHENIX GitHub at line 114 of file GenericDetectorElement.hpp

References identifier().

+ Here is the call graph for this function:

const std::shared_ptr< const Acts::DigitizationModule > ActsExamples::Generic::GenericDetectorElement::digitizationModule ( ) const
inlinefinaloverridevirtual

Retrieve the DigitizationModule.

Implements Acts::IdentifiedDetectorElement.

Definition at line 140 of file GenericDetectorElement.hpp.

View newest version in sPHENIX GitHub at line 140 of file GenericDetectorElement.hpp

References m_digitizationModule.

Identifier ActsExamples::Generic::GenericDetectorElement::identifier ( ) const
inlinefinaloverridevirtual

Identifier.

Implements Acts::IdentifiedDetectorElement.

Definition at line 119 of file GenericDetectorElement.hpp.

View newest version in sPHENIX GitHub at line 119 of file GenericDetectorElement.hpp

References m_elementIdentifier.

Referenced by assignIdentifier(), and ActsExamples::Contextual::PayloadDetectorElement::transform().

+ Here is the caller graph for this function:

const Acts::Surface & ActsExamples::Generic::GenericDetectorElement::surface ( ) const
inlinefinaloverridevirtual

Return surface associated with this identifier,.

Implements Acts::DetectorElementBase.

Definition at line 131 of file GenericDetectorElement.hpp.

View newest version in sPHENIX GitHub at line 131 of file GenericDetectorElement.hpp

References m_elementSurface.

double ActsExamples::Generic::GenericDetectorElement::thickness ( ) const
inlinefinaloverridevirtual

The maximal thickness of the detector element wrt normal axis.

Implements Acts::DetectorElementBase.

Definition at line 135 of file GenericDetectorElement.hpp.

View newest version in sPHENIX GitHub at line 135 of file GenericDetectorElement.hpp

References m_elementThickness.

const Acts::Transform3D & ActsExamples::Generic::GenericDetectorElement::transform ( const Acts::GeometryContext gctx) const
inlineoverridevirtual

Return local to global transform associated with this identifier

Parameters
gctxThe current geometry context object, e.g. alignment
Note
this is called from the surface().transform(gctx) in the PROXY mode

Implements Acts::DetectorElementBase.

Definition at line 125 of file GenericDetectorElement.hpp.

View newest version in sPHENIX GitHub at line 125 of file GenericDetectorElement.hpp

References m_elementTransform.

Member Data Documentation

std::shared_ptr<const Acts::DigitizationModule> ActsExamples::Generic::GenericDetectorElement::m_digitizationModule
private
Initial value:
=
nullptr

The Digitization module.

Definition at line 110 of file GenericDetectorElement.hpp.

View newest version in sPHENIX GitHub at line 110 of file GenericDetectorElement.hpp

Referenced by digitizationModule().

std::shared_ptr<const Acts::DiscBounds> ActsExamples::Generic::GenericDetectorElement::m_elementDiscBounds = nullptr
private

Definition at line 108 of file GenericDetectorElement.hpp.

View newest version in sPHENIX GitHub at line 108 of file GenericDetectorElement.hpp

Identifier ActsExamples::Generic::GenericDetectorElement::m_elementIdentifier
private

the element representation identifier

Definition at line 99 of file GenericDetectorElement.hpp.

View newest version in sPHENIX GitHub at line 99 of file GenericDetectorElement.hpp

Referenced by identifier().

std::shared_ptr<const Acts::PlanarBounds> ActsExamples::Generic::GenericDetectorElement::m_elementPlanarBounds = nullptr
private

store either

Definition at line 107 of file GenericDetectorElement.hpp.

View newest version in sPHENIX GitHub at line 107 of file GenericDetectorElement.hpp

std::shared_ptr<const Acts::Surface> ActsExamples::Generic::GenericDetectorElement::m_elementSurface
private

the surface represented by it

Definition at line 103 of file GenericDetectorElement.hpp.

View newest version in sPHENIX GitHub at line 103 of file GenericDetectorElement.hpp

Referenced by GenericDetectorElement(), and surface().

double ActsExamples::Generic::GenericDetectorElement::m_elementThickness
private

the element thickness

Definition at line 105 of file GenericDetectorElement.hpp.

View newest version in sPHENIX GitHub at line 105 of file GenericDetectorElement.hpp

Referenced by thickness().

std::shared_ptr<const Acts::Transform3D> ActsExamples::Generic::GenericDetectorElement::m_elementTransform
private

the transform for positioning in 3D space

Definition at line 101 of file GenericDetectorElement.hpp.

View newest version in sPHENIX GitHub at line 101 of file GenericDetectorElement.hpp

Referenced by transform().


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