ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <acts/blob/master/Core/include/Acts/Geometry/VolumeBounds.hpp>
Public Types | |
enum | BoundsType : int { eCone = 0, eCuboid = 1, eCutoutCylinder = 2, eCylinder = 3, eGenericCuboid = 4, eTrapezoid = 5, eOther = 6 } |
Public Member Functions | |
VolumeBounds ()=default | |
virtual | ~VolumeBounds ()=default |
virtual BoundsType | type () const =0 |
virtual std::vector< double > | values () const =0 |
virtual bool | inside (const Vector3D &gpos, double tol=0.) const =0 |
virtual SurfacePtrVector | decomposeToSurfaces (const Transform3D *transform) const =0 |
virtual Volume::BoundingBox | boundingBox (const Transform3D *trf=nullptr, const Vector3D &envelope={0, 0, 0}, const Volume *entity=nullptr) const =0 |
virtual Vector3D | binningOffset (BinningValue bValue) const |
Binning offset - overloaded for some R-binning types. | |
virtual double | binningBorder (BinningValue bValue) const |
virtual std::ostream & | toStream (std::ostream &sl) const =0 |
Pure Absract Base Class for Volume bounds.
Acts::VolumeBounds are a set of up to six confining Surfaces that are stored in a std::vector. Each type of Acts::VolumeBounds has to implement a decomposeToSurfaces() and a inside() method.
The orientation of the Surfaces are in a way that the normal vector points to the outside world.
The Volume, retrieving a set of Surfaces from the VolumeBounds, can turn the Surfaces into BoundarySurfaces.
Definition at line 43 of file VolumeBounds.hpp.
View newest version in sPHENIX GitHub at line 43 of file VolumeBounds.hpp
This is nested to the VolumeBounds, as also SurfaceBounds will have Bounds Type.
Definition at line 48 of file VolumeBounds.hpp.
View newest version in sPHENIX GitHub at line 48 of file VolumeBounds.hpp
|
default |
|
virtualdefault |
|
inlinevirtual |
Binning borders in double
bValue | is the binning schema used |
Reimplemented in Acts::CylinderVolumeBounds.
Definition at line 126 of file VolumeBounds.hpp.
View newest version in sPHENIX GitHub at line 126 of file VolumeBounds.hpp
Referenced by Acts::CylinderVolumeBounds::binningBorder().
|
inlinevirtual |
Binning offset - overloaded for some R-binning types.
Binning offset - overloaded for some R-binning types
bValue | is the binning schema used |
Reimplemented in Acts::CylinderVolumeBounds.
Definition at line 121 of file VolumeBounds.hpp.
View newest version in sPHENIX GitHub at line 121 of file VolumeBounds.hpp
Referenced by Acts::CylinderVolumeBounds::binningOffset().
|
pure virtual |
Construct bounding box for this shape
trf | Optional transform |
envelope | Optional envelope to add / subtract from min/max |
entity | Entity to associate this bounding box with |
Implemented in Acts::CylinderVolumeBounds, Acts::TrapezoidVolumeBounds, Acts::CuboidVolumeBounds, Acts::CutoutCylinderVolumeBounds, and Acts::GenericCuboidVolumeBounds.
|
pure virtual |
Method to decompose the Bounds into Surfaces the Volume can turn them into BoundarySurfaces
transform | is the 3D transform to be applied to the boundary surfaces to position them in 3D space |
Implemented in Acts::CylinderVolumeBounds, Acts::TrapezoidVolumeBounds, Acts::CuboidVolumeBounds, Acts::CutoutCylinderVolumeBounds, and Acts::GenericCuboidVolumeBounds.
Referenced by Acts::AbstractVolume::createBoundarySurfaces(), and Acts::TrackingVolume::createBoundarySurfaces().
|
pure virtual |
Checking if position given in volume frame is inside
gpos | is the global position to be checked |
tol | is the tolerance applied for the inside check |
Implemented in Acts::CylinderVolumeBounds, Acts::TrapezoidVolumeBounds, Acts::CuboidVolumeBounds, Acts::CutoutCylinderVolumeBounds, and Acts::GenericCuboidVolumeBounds.
|
pure virtual |
Output Method for std::ostream, to be overloaded by child classes
sl | is the output stream to be dumped into |
Implemented in Acts::CylinderVolumeBounds, Acts::TrapezoidVolumeBounds, Acts::CuboidVolumeBounds, Acts::CutoutCylinderVolumeBounds, and Acts::GenericCuboidVolumeBounds.
Referenced by Acts::operator<<().
|
pure virtual |
Return the bounds type - for persistency optimization
Implemented in Acts::CylinderVolumeBounds, Acts::TrapezoidVolumeBounds, Acts::CuboidVolumeBounds, Acts::CutoutCylinderVolumeBounds, and Acts::GenericCuboidVolumeBounds.
Referenced by Acts::operator==().
|
pure virtual |
Access method for bound values, this is a dynamically sized vector containing the parameters needed to describe these bounds
Implemented in Acts::CylinderVolumeBounds, Acts::TrapezoidVolumeBounds, Acts::CuboidVolumeBounds, Acts::CutoutCylinderVolumeBounds, and Acts::GenericCuboidVolumeBounds.
Referenced by Acts::operator==().