|
ACTS
Experiment-independent tracking
|
DetectorElement class implementation for DD4hep geometry. More...
#include <ActsPlugins/DD4hep/DD4hepDetectorElement.hpp>
Public Types | |
| using | ContextType = Acts::GeometryContext |
| Broadcast the context type. | |
| using | DD4hepVolumeID = dd4hep::DDSegmentation::VolumeID |
| Type alias for DD4hep volume identifier used in segmentation. | |
| using | Store |
| Define a string based store. | |
| Public Types inherited from ActsPlugins::TGeoDetectorElement | |
| using | ContextType = Acts::GeometryContext |
| Broadcast the context type. | |
| using | Identifier = identifier_type |
| using | identifier_diff = long long |
| using | identifier_type = unsigned long long |
Public Member Functions | |
| DD4hepDetectorElement (const dd4hep::DetElement detElement, const std::string &axes="XYZ", double scalor=1., bool isDisc=false, std::shared_ptr< const Acts::ISurfaceMaterial > material=nullptr) | |
| Constructor. | |
| ~DD4hepDetectorElement () override=default | |
| const dd4hep::DetElement & | sourceElement () const |
| Give access to the DD4hep detector element. | |
| Public Member Functions inherited from ActsPlugins::TGeoDetectorElement | |
| TGeoDetectorElement (const Identifier &identifier, const TGeoNode &tGeoNode, const Acts::Transform3 &tgTransform, const std::shared_ptr< const Acts::DiscBounds > &tgBounds, double tgThickness=0.) | |
| Constructor with pre-computed disk surface. | |
| TGeoDetectorElement (const Identifier &identifier, const TGeoNode &tGeoNode, const Acts::Transform3 &tgTransform, const std::shared_ptr< const Acts::PlanarBounds > &tgBounds, double tgThickness=0.) | |
| Constructor with pre-computed surface. | |
| 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. | |
| ~TGeoDetectorElement () override | |
| Identifier | identifier () const |
| Get the detector element identifier. | |
| bool | isSensitive () const final |
| Is the detector element a sensitive element. | |
| const Acts::Transform3 & | localToGlobalTransform (const Acts::GeometryContext &gctx) const override |
| Return local to global transform associated with this identifier. | |
| const Acts::Transform3 & | nominalTransform () const |
| Return the nominal - non-contextual transform. | |
| const Acts::Surface & | surface () const override |
| Return surface associated with this detector element. | |
| Acts::Surface & | surface () override |
| Return surface associated with this detector element. | |
| const TGeoNode & | tgeoNode () const |
| Return the TGeoNode for back navigation. | |
| double | thickness () const |
| Returns the thickness of the module. | |
| Public Member Functions inherited from Acts::SurfacePlacementBase | |
| virtual | ~SurfacePlacementBase ()=default |
| Virtual default constructor. | |
DetectorElement class implementation for DD4hep geometry.
DetectorElement plugin for DD4hep detector elements. DD4hep is based on TGeo shapes, therefore the DD4hepDetectorElement inherits from TGeoDetectorElement in order to perform the conversion.
The full geometrical information is provided by the TGeoDetectorElement. The DD4hepDetectorElement extends the TGeoDetectorElement by containing a segmentation for the readout.
Broadcast the context type.
| using ActsPlugins::DD4hepDetectorElement::DD4hepVolumeID = dd4hep::DDSegmentation::VolumeID |
Type alias for DD4hep volume identifier used in segmentation.
Define a string based store.
|
explicit |
Constructor.
| detElement | The DD4hep DetElement which should be associated to an ACTS surface |
| 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 :
|
Example options are:
| scalor | is the scale factor for unit conversion if needed |
| isDisc | in case the sensitive detector module should be translated as disc (e.g. for endcaps) this flag should be set to true |
TGeoTubeSeg should be translated to a disc surface. Per default it will be translated into a cylindrical surface. | material | Optional material of detector element |
|
overridedefault |
| const dd4hep::DetElement & ActsPlugins::DD4hepDetectorElement::sourceElement | ( | ) | const |
Give access to the DD4hep detector element.