Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ActsExamples::Contextual::ExternallyAlignedDetectorElement Class Reference

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

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

Classes

struct  AlignmentStore
 
class  ContextType
 

Public Member Functions

const Acts::Transform3transform (const Acts::GeometryContext &gctx) const override
 
- Public Member Functions inherited from ActsExamples::Generic::GenericDetectorElement
 GenericDetectorElement (const Identifier identifier, std::shared_ptr< const Acts::Transform3 > transform, std::shared_ptr< const Acts::PlanarBounds > pBounds, double thickness, std::shared_ptr< const Acts::ISurfaceMaterial > material=nullptr, std::shared_ptr< const Acts::DigitizationModule > digitizationModule=nullptr)
 
 GenericDetectorElement (const Identifier identifier, std::shared_ptr< const Acts::Transform3 > transform, std::shared_ptr< const Acts::DiscBounds > dBounds, double thickness, std::shared_ptr< const Acts::ISurfaceMaterial > material=nullptr, std::shared_ptr< const Acts::DigitizationModule > digitizationModule=nullptr)
 
Identifier identifier () const final
 Identifier.
 
const Acts::Transform3transform (const Acts::GeometryContext &gctx) const override
 
const Acts::Surfacesurface () const override
 Return surface associated with this detector element.
 
Acts::Surfacesurface () override
 Non-cost access to surface associated with this detector element.
 
void assignIdentifier (const Identifier &identifier)
 Set the identifier after construction (sometimes needed)
 
double thickness () const override
 The maximal thickness of the detector element wrt normal axis.
 
const std::shared_ptr< const
Acts::DigitizationModule
digitizationModule () const override
 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 ExternallyAlignedDetectorElement 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 ExternallyAlignedDetectorElement.hpp.

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

Member Function Documentation

const Acts::Transform3 & ActsExamples::Contextual::ExternallyAlignedDetectorElement::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)

Implements Acts::DetectorElementBase.

Definition at line 68 of file ExternallyAlignedDetectorElement.hpp.

View newest version in sPHENIX GitHub at line 68 of file ExternallyAlignedDetectorElement.hpp

References assert, 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: