|
ACTS
Experiment-independent tracking
|
Sentinel surface material used by Portal::merge in its "keep going" mode. More...
#include <Acts/Material/MergedMaterialMarker.hpp>
Public Member Functions | |
| MergedMaterialMarker ()=default | |
| Default constructor. | |
| ~MergedMaterialMarker () override=default | |
| Destructor. | |
| double | factor (Direction pDir, MaterialUpdateMode mode) const |
| Update pre factor. | |
| std::vector< AxisDirection > | localAxisDirections () const override |
| Returns the axis directions for the local coordinate system. | |
| virtual MaterialSlab | materialSlab (const Vector2 &lp, Direction pDir, MaterialUpdateMode mode) const |
| Return method for fully scaled material description of the Surface. | |
| const MaterialSlab & | materialSlab (const Vector2 &lp=Vector2{ 0., 0.}) const override |
| Return method for full material description of the Surface. | |
| const MaterialSlab & | materialSlab (const Vector3 &gp) const override |
| Return method for full material description of the Surface. | |
| virtual MaterialSlab | materialSlab (const Vector3 &gp, Direction pDir, MaterialUpdateMode mode) const |
| Return method for full material description of the Surface. | |
| MergedMaterialMarker & | scale (double factor) override |
| Scale operator – no-op, the marker carries no material. | |
| std::ostream & | toStream (std::ostream &sl) const override |
| Output Method for std::ostream. | |
| Public Member Functions inherited from Acts::ISurfaceMaterial | |
| ISurfaceMaterial ()=default | |
| Constructor. | |
| ISurfaceMaterial (double splitFactor) | |
| Constructor. | |
| ISurfaceMaterial (double splitFactor, MappingType mappingType) | |
| Constructor. | |
| virtual | ~ISurfaceMaterial ()=default |
| Destructor. | |
| double | factor (Direction pDir, MaterialUpdateMode mode) const |
| Update pre factor. | |
| MappingType | mappingType () const |
| Return the type of surface material mapping. | |
| std::string | toString () const |
| output into a string | |
Additional Inherited Members | |
| Protected Attributes inherited from Acts::ISurfaceMaterial | |
| MappingType | m_mappingType {MappingType::Default} |
| Use the default mapping type by default. | |
| double | m_splitFactor {1.} |
| the split factor in favour of oppositePre | |
Sentinel surface material used by Portal::merge in its "keep going" mode.
When two portal surfaces that both carry material (or one of them does) are merged, the original material cannot be transferred onto the (larger) merged surface. Instead of aborting the construction, the merge can be configured to discard the input material and tag the merged surface with this marker.
The marker carries no physical material – it always returns MaterialSlab::Nothing() – but its presence makes the lossy merge discoverable downstream (e.g. when inspecting or writing out the geometry).
| double Acts::ISurfaceMaterial::factor | ( | Direction | pDir, |
| MaterialUpdateMode | mode ) const |
Update pre factor.
| pDir | is the positive direction through the surface |
| mode | is the material update directive |
|
overridevirtual |
Returns the axis directions for the local coordinate system.
Implements Acts::ISurfaceMaterial.
|
virtual |
Return method for fully scaled material description of the Surface.
| lp | is the local position used for the (eventual) lookup |
| pDir | is the positive direction through the surface |
| mode | is the material update directive |
Reimplemented from Acts::ISurfaceMaterial.
|
overridevirtual |
Return method for full material description of the Surface.
| lp | is the local position used for the (eventual) lookup |
Implements Acts::ISurfaceMaterial.
|
overridevirtual |
Return method for full material description of the Surface.
| gp | is the global position used for the (eventual) lookup |
Implements Acts::ISurfaceMaterial.
|
virtual |
Return method for full material description of the Surface.
| gp | is the global position used for the (eventual) lookup |
| pDir | is the positive direction through the surface |
| mode | is the material update directive |
Reimplemented from Acts::ISurfaceMaterial.
|
overridevirtual |
Scale operator – no-op, the marker carries no material.
| factor | is the scale factor (ignored) |
Implements Acts::ISurfaceMaterial.
|
overridevirtual |
Output Method for std::ostream.
| sl | The output stream |
Implements Acts::ISurfaceMaterial.