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

#include <acts/blob/sPHENIX/Examples/Detectors/ContextualDetector/include/ActsExamples/ContextualDetector/PayloadDetectorElement.hpp>

+ Inheritance diagram for ActsExamples::Contextual::PayloadDetectorElement:
+ Collaboration diagram for ActsExamples::Contextual::PayloadDetectorElement:

Classes

class  ContextType
 

Public Member Functions

template<typename... Args>
 PayloadDetectorElement (Args &&...args)
 
const Acts::Transform3Dtransform (const Acts::GeometryContext &gctx) const finaloverride
 
- Public Member Functions inherited from 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)
 
 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.
 

Additional Inherited Members

- Public Types inherited from ActsExamples::Generic::GenericDetectorElement
using ContextType = Acts::GeometryContext
 Broadcast the ContextType.
 

Detailed Description

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

The PayloadDetectorElement demonstrates how a GeometryContext can be used if it carries the entire set of Transforms through the program flow.

The nominal transform is only used to once create the alignment store and then in a contextual call the actual detector element position is taken from the alignment Store.

In this simple implementation, it does rely on the Identifier to be orderded from 0 to N-1, as the identifier is simply taken as a vector index for the alignment store

Definition at line 41 of file PayloadDetectorElement.hpp.

View newest version in sPHENIX GitHub at line 41 of file PayloadDetectorElement.hpp

Constructor & Destructor Documentation

template<typename... Args>
ActsExamples::Contextual::PayloadDetectorElement::PayloadDetectorElement ( Args &&...  args)
inline

Constructor for an alignable surface

Note
see Generic::GenericDetectorElement for documentation

Definition at line 55 of file PayloadDetectorElement.hpp.

View newest version in sPHENIX GitHub at line 55 of file PayloadDetectorElement.hpp

Member Function Documentation

const Acts::Transform3D & ActsExamples::Contextual::PayloadDetectorElement::transform ( const Acts::GeometryContext gctx) const
inlinefinaloverridevirtual

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)

Implements Acts::DetectorElementBase.

Definition at line 67 of file PayloadDetectorElement.hpp.

View newest version in sPHENIX GitHub at line 67 of file PayloadDetectorElement.hpp

References Acts::Test::gctx, ActsExamples::Generic::GenericDetectorElement::identifier(), and Acts::Test::transform.

+ Here is the call graph for this function:


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