Analysis Software
Documentation for sPHENIX simulation software
|
#include <acts/blob/sPHENIX/Plugins/TGeo/include/Acts/Plugins/TGeo/TGeoDetectorElement.hpp>
Public Types | |
using | ContextType = GeometryContext |
Broadcast the context type. | |
Public Member Functions | |
TGeoDetectorElement (const Identifier &identifier, const TGeoNode &tGeoNode, const TGeoMatrix &tGeoMatrix=TGeoIdentity(), const std::string &axes="XYZ", double scalor=10., std::shared_ptr< const Acts::ISurfaceMaterial > material=nullptr) | |
TGeoDetectorElement (const Identifier &identifier, const TGeoNode &tGeoNode, const Transform3 &tgTransform, const std::shared_ptr< const PlanarBounds > &tgBounds, double tgThickness=0.) | |
TGeoDetectorElement (const Identifier &identifier, const TGeoNode &tGeoNode, const Transform3 &tgTransform, const std::shared_ptr< const DiscBounds > &tgBounds, double tgThickness=0.) | |
~TGeoDetectorElement () override | |
Identifier | identifier () const final |
Retrieve the Identifier. | |
const Transform3 & | transform (const GeometryContext &gctx) const override |
const Surface & | surface () const override |
Return surface associated with this detector element. | |
Surface & | surface () override |
const std::shared_ptr< const DigitizationModule > | digitizationModule () const final |
Retrieve the DigitizationModule. | |
double | thickness () const override |
Returns the thickness of the module. | |
const TGeoNode & | tgeoNode () const |
Return the TGeoNode for back navigation. | |
Private Attributes | |
const TGeoNode * | m_detElement {nullptr} |
Pointer to TGeoNode (not owned) | |
Transform3 | m_transform = Transform3::Identity() |
Transformation of the detector element. | |
Identifier | m_identifier |
Identifier of the detector element. | |
std::shared_ptr< const SurfaceBounds > | m_bounds {nullptr} |
Boundaries of the detector element. | |
double | m_thickness {0.} |
Thickness of this detector element. | |
std::shared_ptr< Surface > | m_surface {nullptr} |
Corresponding Surface. | |
DetectorElement plugin for ROOT TGeo shapes. Added possibility to hand over transformation matrix.
Definition at line 40 of file TGeoDetectorElement.hpp.
View newest version in sPHENIX GitHub at line 40 of file TGeoDetectorElement.hpp
Broadcast the context type.
Definition at line 43 of file TGeoDetectorElement.hpp.
View newest version in sPHENIX GitHub at line 43 of file TGeoDetectorElement.hpp
Acts::TGeoDetectorElement::TGeoDetectorElement | ( | const Identifier & | identifier, |
const TGeoNode & | tGeoNode, | ||
const TGeoMatrix & | tGeoMatrix = TGeoIdentity() , |
||
const std::string & | axes = "XYZ" , |
||
double | scalor = 10. , |
||
std::shared_ptr< const Acts::ISurfaceMaterial > | material = nullptr |
||
) |
Constructor
identifier | is the detector identifier |
tGeoNode | is the TGeoNode which should be represented |
tGeoMatrix | The Matrix to global (i.e. ACTS transform) |
axes | is the axis orientation with respect to the tracking frame it is a string of the three characters x, y and z (standing for the three axes) there is a distinction between capital and lower case characters :
|
scalor | is the scale factor for unit conversion if needed |
TGeoTubeSeg
should be translated to a disc surface. Per default it will be translated into a cylindrical surface. material | Possible material of detector element |
Definition at line 33 of file TGeoDetectorElement.cpp.
View newest version in sPHENIX GitHub at line 33 of file TGeoDetectorElement.cpp
References Acts::TGeoSurfaceConverter::cylinderComponents(), Acts::TGeoSurfaceConverter::discComponents(), m_bounds, m_detElement, m_surface, m_thickness, m_transform, testing::internal::move(), Acts::TGeoSurfaceConverter::planeComponents(), and translation().
Acts::TGeoDetectorElement::TGeoDetectorElement | ( | const Identifier & | identifier, |
const TGeoNode & | tGeoNode, | ||
const Transform3 & | tgTransform, | ||
const std::shared_ptr< const PlanarBounds > & | tgBounds, | ||
double | tgThickness = 0. |
||
) |
Constructor with pre-computed surface
identifier | is the detector identifier |
tGeoNode | is the TGeoNode which should be represented |
tgTransform | the transform of this detector element |
tgBounds | the bounds of this surface |
tgThickness | the thickness of this detector element |
Definition at line 90 of file TGeoDetectorElement.cpp.
View newest version in sPHENIX GitHub at line 90 of file TGeoDetectorElement.cpp
References m_surface.
Acts::TGeoDetectorElement::TGeoDetectorElement | ( | const Identifier & | identifier, |
const TGeoNode & | tGeoNode, | ||
const Transform3 & | tgTransform, | ||
const std::shared_ptr< const DiscBounds > & | tgBounds, | ||
double | tgThickness = 0. |
||
) |
Constructor with pre-computed disk surface.
identifier | is the detector identifier |
tGeoNode | is the TGeoNode which should be represented |
tgTransform | the transform of this detector element |
tgBounds | the bounds of this surface |
tgThickness | the thickness of this detector element |
Definition at line 103 of file TGeoDetectorElement.cpp.
View newest version in sPHENIX GitHub at line 103 of file TGeoDetectorElement.cpp
References m_surface.
|
overridedefault |
|
inlinefinalvirtual |
Retrieve the DigitizationModule.
Implements Acts::IdentifiedDetectorElement.
Definition at line 128 of file TGeoDetectorElement.hpp.
View newest version in sPHENIX GitHub at line 128 of file TGeoDetectorElement.hpp
|
inlinefinalvirtual |
Retrieve the Identifier.
Implements Acts::IdentifiedDetectorElement.
Definition at line 154 of file TGeoDetectorElement.hpp.
View newest version in sPHENIX GitHub at line 154 of file TGeoDetectorElement.hpp
References m_identifier.
|
inlineoverridevirtual |
Return surface associated with this detector element.
Implements Acts::DetectorElementBase.
Definition at line 163 of file TGeoDetectorElement.hpp.
View newest version in sPHENIX GitHub at line 163 of file TGeoDetectorElement.hpp
References m_surface.
Referenced by sPHENIXActsDetectorElement::transform().
|
inlineoverridevirtual |
Return surface associated with this detector element
Implements Acts::DetectorElementBase.
Definition at line 167 of file TGeoDetectorElement.hpp.
View newest version in sPHENIX GitHub at line 167 of file TGeoDetectorElement.hpp
References m_surface.
|
inline |
Return the TGeoNode for back navigation.
Definition at line 137 of file TGeoDetectorElement.hpp.
View newest version in sPHENIX GitHub at line 137 of file TGeoDetectorElement.hpp
References m_detElement.
|
inlineoverridevirtual |
Returns the thickness of the module.
Implements Acts::DetectorElementBase.
Definition at line 171 of file TGeoDetectorElement.hpp.
View newest version in sPHENIX GitHub at line 171 of file TGeoDetectorElement.hpp
References m_thickness.
|
inlineoverridevirtual |
Return local to global transform associated with this identifier
gctx | The current geometry context object, e.g. alignment |
Implements Acts::DetectorElementBase.
Reimplemented in sPHENIXActsDetectorElement.
Definition at line 158 of file TGeoDetectorElement.hpp.
View newest version in sPHENIX GitHub at line 158 of file TGeoDetectorElement.hpp
References m_transform.
|
private |
Boundaries of the detector element.
Definition at line 147 of file TGeoDetectorElement.hpp.
View newest version in sPHENIX GitHub at line 147 of file TGeoDetectorElement.hpp
Referenced by TGeoDetectorElement().
|
private |
Pointer to TGeoNode (not owned)
Definition at line 141 of file TGeoDetectorElement.hpp.
View newest version in sPHENIX GitHub at line 141 of file TGeoDetectorElement.hpp
Referenced by TGeoDetectorElement(), and tgeoNode().
|
private |
Identifier of the detector element.
Definition at line 145 of file TGeoDetectorElement.hpp.
View newest version in sPHENIX GitHub at line 145 of file TGeoDetectorElement.hpp
Referenced by identifier().
|
private |
Corresponding Surface.
Definition at line 151 of file TGeoDetectorElement.hpp.
View newest version in sPHENIX GitHub at line 151 of file TGeoDetectorElement.hpp
Referenced by surface(), and TGeoDetectorElement().
|
private |
Thickness of this detector element.
Definition at line 149 of file TGeoDetectorElement.hpp.
View newest version in sPHENIX GitHub at line 149 of file TGeoDetectorElement.hpp
Referenced by TGeoDetectorElement(), and thickness().
|
private |
Transformation of the detector element.
Definition at line 143 of file TGeoDetectorElement.hpp.
View newest version in sPHENIX GitHub at line 143 of file TGeoDetectorElement.hpp
Referenced by TGeoDetectorElement(), and transform().