EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#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 () override | |
Identifier | identifier () const final |
Retrieve the Identifier. | |
const Transform3D & | transform (const GeometryContext &gctx) const final |
const Surface & | surface () const final |
Return surface associated with this identifier, which should come from the. | |
const std::shared_ptr< const DigitizationModule > | digitizationModule () const final |
Retrieve the DigitizationModule. | |
double | thickness () const final |
Returns the thickness of the module. | |
Private Attributes | |
const TGeoNode * | m_detElement {nullptr} |
Pointer to TGeoNode (not owned) | |
Transform3D | m_transform = Transform3D::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 33 of file TGeoDetectorElement.hpp.
View newest version in sPHENIX GitHub at line 33 of file TGeoDetectorElement.hpp
Broadcast the context type.
Definition at line 36 of file TGeoDetectorElement.hpp.
View newest version in sPHENIX GitHub at line 36 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 |
digitizationModule | Shared pointer to the geometric digitization description |
Definition at line 37 of file TGeoDetectorElement.cpp.
View newest version in sPHENIX GitHub at line 37 of file TGeoDetectorElement.cpp
References Acts::TGeoSurfaceConverter::cylinderComponents(), Acts::TGeoSurfaceConverter::discComponents(), m_bounds, m_detElement, m_surface, m_thickness, m_transform, and Acts::TGeoSurfaceConverter::planeComponents().
|
overridedefault |
|
inlinefinalvirtual |
Retrieve the DigitizationModule.
Implements Acts::IdentifiedDetectorElement.
Definition at line 85 of file TGeoDetectorElement.hpp.
View newest version in sPHENIX GitHub at line 85 of file TGeoDetectorElement.hpp
|
inlinefinalvirtual |
Retrieve the Identifier.
Implements Acts::IdentifiedDetectorElement.
Definition at line 108 of file TGeoDetectorElement.hpp.
View newest version in sPHENIX GitHub at line 108 of file TGeoDetectorElement.hpp
References m_identifier.
|
inlinefinalvirtual |
Return surface associated with this identifier, which should come from the.
Implements Acts::DetectorElementBase.
Definition at line 117 of file TGeoDetectorElement.hpp.
View newest version in sPHENIX GitHub at line 117 of file TGeoDetectorElement.hpp
References m_surface.
Referenced by Acts::DD4hepLayerBuilder::createSensitiveSurface().
|
inlinefinalvirtual |
Returns the thickness of the module.
Implements Acts::DetectorElementBase.
Definition at line 121 of file TGeoDetectorElement.hpp.
View newest version in sPHENIX GitHub at line 121 of file TGeoDetectorElement.hpp
References m_thickness.
|
inlinefinalvirtual |
Return local to global transform associated with this identifier
gctx | The current geometry context object, e.g. alignment |
Implements Acts::DetectorElementBase.
Definition at line 112 of file TGeoDetectorElement.hpp.
View newest version in sPHENIX GitHub at line 112 of file TGeoDetectorElement.hpp
References m_transform.
|
private |
Boundaries of the detector element.
Definition at line 101 of file TGeoDetectorElement.hpp.
View newest version in sPHENIX GitHub at line 101 of file TGeoDetectorElement.hpp
Referenced by TGeoDetectorElement().
|
private |
Pointer to TGeoNode (not owned)
Definition at line 95 of file TGeoDetectorElement.hpp.
View newest version in sPHENIX GitHub at line 95 of file TGeoDetectorElement.hpp
Referenced by TGeoDetectorElement().
|
private |
Identifier of the detector element.
Definition at line 99 of file TGeoDetectorElement.hpp.
View newest version in sPHENIX GitHub at line 99 of file TGeoDetectorElement.hpp
Referenced by identifier().
|
private |
Corresponding Surface.
Definition at line 105 of file TGeoDetectorElement.hpp.
View newest version in sPHENIX GitHub at line 105 of file TGeoDetectorElement.hpp
Referenced by surface(), and TGeoDetectorElement().
|
private |
Thickness of this detector element.
Definition at line 103 of file TGeoDetectorElement.hpp.
View newest version in sPHENIX GitHub at line 103 of file TGeoDetectorElement.hpp
Referenced by TGeoDetectorElement(), and thickness().
|
private |
Transformation of the detector element.
Definition at line 97 of file TGeoDetectorElement.hpp.
View newest version in sPHENIX GitHub at line 97 of file TGeoDetectorElement.hpp
Referenced by TGeoDetectorElement(), and transform().