|
ACTS
Experiment-independent tracking
|
A implementation of a detector element, that is constructed from a JSON description of a surface. More...
#include <ActsPlugins/Json/JsonDetectorElement.hpp>
Public Member Functions | |
| JsonDetectorElement (const nlohmann::json &jSurface, double thickness) | |
| Constructor from JSON surface description. | |
| bool | isSensitive () const override |
| Returns whether the placement corresponds to a surface on which the measurements from the experiment are represented, i.e. | |
| const Transform3 & | localToGlobalTransform (const GeometryContext &gctx) const override |
| Return the transform for this detector element. | |
| const Surface & | surface () const override |
| Return const reference to the surface. | |
| Surface & | surface () override |
| Return mutable reference to the surface. | |
| double | thickness () const |
| Return the thickness of the detector element. | |
| Public Member Functions inherited from Acts::SurfacePlacementBase | |
| virtual | ~SurfacePlacementBase ()=default |
| Virtual default constructor. | |
A implementation of a detector element, that is constructed from a JSON description of a surface.
The idea behind this is that it helps importing whole tracking geometries from JSON files. In some parts of the codebase, the existence of a detector element associated to a surface has a specific meaning (e.g., flags surfaces as sensitive).
| Acts::JsonDetectorElement::JsonDetectorElement | ( | const nlohmann::json & | jSurface, |
| double | thickness ) |
Constructor from JSON surface description.
| jSurface | JSON object describing the surface |
| thickness | Thickness of the detector element |
|
overridevirtual |
Returns whether the placement corresponds to a surface on which the measurements from the experiment are represented, i.e.
it is
Implements Acts::SurfacePlacementBase.
|
overridevirtual |
Return the transform for this detector element.
| gctx | Geometry context (unused for this implementation) |
Implements Acts::SurfacePlacementBase.
|
overridevirtual |
Return const reference to the surface.
Implements Acts::SurfacePlacementBase.
|
overridevirtual |
Return mutable reference to the surface.
Implements Acts::SurfacePlacementBase.
| double Acts::JsonDetectorElement::thickness | ( | ) | const |
Return the thickness of the detector element.