ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <acts/blob/master/Core/include/Acts/Geometry/TrapezoidVolumeBounds.hpp>
Public Types | |
enum | BoundValues { eHalfLengthXnegY = 0, eHalfLengthXposY = 1, eHalfLengthY = 2, eHalfLengthZ = 3, eAlpha = 4, eBeta = 5, eSize = 6 } |
for acces / streaming More... | |
Public Types inherited from Acts::VolumeBounds | |
enum | BoundsType : int { eCone = 0, eCuboid = 1, eCutoutCylinder = 2, eCylinder = 3, eGenericCuboid = 4, eTrapezoid = 5, eOther = 6 } |
Public Member Functions | |
TrapezoidVolumeBounds ()=delete | |
TrapezoidVolumeBounds (double minhalex, double maxhalex, double haley, double halez) noexcept(false) | |
TrapezoidVolumeBounds (double minhalex, double haley, double halez, double alpha, double beta) noexcept(false) | |
TrapezoidVolumeBounds (const std::array< double, eSize > &values) noexcept(false) | |
TrapezoidVolumeBounds (const TrapezoidVolumeBounds &trabo)=default | |
TrapezoidVolumeBounds & | operator= (const TrapezoidVolumeBounds &trabo)=default |
~TrapezoidVolumeBounds () override=default | |
VolumeBounds::BoundsType | type () const final |
std::vector< double > | values () const final |
bool | inside (const Vector3D &pos, double tol=0.) const override |
std::vector< std::shared_ptr < const Surface > > | decomposeToSurfaces (const Transform3D *transformPtr) const override |
Volume::BoundingBox | boundingBox (const Transform3D *trf=nullptr, const Vector3D &envelope={0, 0, 0}, const Volume *entity=nullptr) const final |
std::ostream & | toStream (std::ostream &sl) const override |
Output Method for std::ostream. | |
double | get (BoundValues bValue) const |
Public Member Functions inherited from Acts::VolumeBounds | |
VolumeBounds ()=default | |
virtual | ~VolumeBounds ()=default |
virtual Vector3D | binningOffset (BinningValue bValue) const |
Binning offset - overloaded for some R-binning types. | |
virtual double | binningBorder (BinningValue bValue) const |
Private Member Functions | |
void | checkConsistency () noexcept(false) |
void | buildSurfaceBounds () |
Helper method to create the surface bounds. | |
template<class T > | |
T & | dumpT (T &dt) const |
Templated dump methos. | |
Private Attributes | |
std::array< double, eSize > | m_values |
The internal version of the bounds can be float/double. | |
std::shared_ptr< const TrapezoidBounds > | m_faceXYTrapezoidBounds = nullptr |
The face PlaneSurface parallel to local xy plane. | |
std::shared_ptr< const RectangleBounds > | m_faceAlphaRectangleBounds = nullptr |
Thhe face PlaneSurface attached to alpha (negative local x) | |
std::shared_ptr< const RectangleBounds > | m_faceBetaRectangleBounds = nullptr |
The face PlaneSurface attached to beta (positive local x) | |
std::shared_ptr< const RectangleBounds > | m_faceZXRectangleBoundsBottom |
The face PlaneSurface parallel to local zx plane, negative local y. | |
std::shared_ptr< const RectangleBounds > | m_faceZXRectangleBoundsTop = nullptr |
The face PlaneSurface parallel to local zx plane, positive local y. | |
Bounds for a trapezoidal shaped Volume, the decomposeToSurfaces method creates a vector of 6 surfaces:
BoundarySurfaceFace [index]:
Definition at line 53 of file TrapezoidVolumeBounds.hpp.
View newest version in sPHENIX GitHub at line 53 of file TrapezoidVolumeBounds.hpp
for acces / streaming
Definition at line 56 of file TrapezoidVolumeBounds.hpp.
View newest version in sPHENIX GitHub at line 56 of file TrapezoidVolumeBounds.hpp
|
delete |
|
noexcept |
Constructor - the trapezoid boundaries (symmetric trapezoid)
minhalex | is the half length in x at minimal y |
maxhalex | is the half length in x at maximal y |
haley | is the half length in y |
halez | is the half length in z |
Definition at line 25 of file TrapezoidVolumeBounds.cpp.
View newest version in sPHENIX GitHub at line 25 of file TrapezoidVolumeBounds.cpp
References buildSurfaceBounds(), checkConsistency(), eAlpha, eBeta, eHalfLengthXnegY, eHalfLengthXposY, eHalfLengthY, eHalfLengthZ, M_PI, and m_values.
|
noexcept |
Constructor - the trapezoid boundaries (arbitrary trapezoid)
minhalex | is the half length in x at minimal y |
haley | is the half length in y |
halez | is the half length in z |
alpha | is the openeing angle at -x,-y |
beta | is the openeing angle at +x,-y |
Definition at line 42 of file TrapezoidVolumeBounds.cpp.
View newest version in sPHENIX GitHub at line 42 of file TrapezoidVolumeBounds.cpp
References alpha, buildSurfaceBounds(), checkConsistency(), eAlpha, eBeta, eHalfLengthXnegY, eHalfLengthXposY, eHalfLengthY, eHalfLengthZ, M_PI, and m_values.
|
inlinenoexcept |
Constructor - from a fixed size array
values | The bound values |
Definition at line 90 of file TrapezoidVolumeBounds.hpp.
View newest version in sPHENIX GitHub at line 90 of file TrapezoidVolumeBounds.hpp
References buildSurfaceBounds(), and checkConsistency().
|
default |
|
overridedefault |
|
finalvirtual |
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 |
Implements Acts::VolumeBounds.
Definition at line 189 of file TrapezoidVolumeBounds.cpp.
View newest version in sPHENIX GitHub at line 189 of file TrapezoidVolumeBounds.cpp
References Acts::Test::transform.
|
private |
Helper method to create the surface bounds.
Definition at line 154 of file TrapezoidVolumeBounds.cpp.
View newest version in sPHENIX GitHub at line 154 of file TrapezoidVolumeBounds.cpp
References M_PI.
Referenced by TrapezoidVolumeBounds().
|
inlineprivatenoexcept |
Check the input values for consistency, will throw a logic_exception if consistency is not given
Definition at line 191 of file TrapezoidVolumeBounds.hpp.
View newest version in sPHENIX GitHub at line 191 of file TrapezoidVolumeBounds.hpp
References eHalfLengthXnegY, eHalfLengthXposY, eHalfLengthY, and eHalfLengthZ.
Referenced by TrapezoidVolumeBounds().
|
overridevirtual |
Method to decompose the Bounds into Surfaces
transformPtr | is the transform to position the surfaces in 3D space |
Implements Acts::VolumeBounds.
Definition at line 60 of file TrapezoidVolumeBounds.cpp.
View newest version in sPHENIX GitHub at line 60 of file TrapezoidVolumeBounds.cpp
References A(), B(), M_PI, Acts::s_idRotation, and Acts::Test::transform.
Templated dump methos.
Definition at line 174 of file TrapezoidVolumeBounds.hpp.
View newest version in sPHENIX GitHub at line 174 of file TrapezoidVolumeBounds.hpp
References eAlpha, eBeta, eHalfLengthXnegY, eHalfLengthXposY, eHalfLengthY, and eHalfLengthZ.
|
inline |
Access to the bound values
bValue | the class nested enum for the array access |
Definition at line 144 of file TrapezoidVolumeBounds.hpp.
View newest version in sPHENIX GitHub at line 144 of file TrapezoidVolumeBounds.hpp
References m_values.
|
overridevirtual |
This method checks if position in the 3D volume frame is inside the cylinder
pos | is the global position to be checked |
tol | is the tolerance applied |
Implements Acts::VolumeBounds.
Definition at line 171 of file TrapezoidVolumeBounds.cpp.
View newest version in sPHENIX GitHub at line 171 of file TrapezoidVolumeBounds.cpp
References kdfinder::abs().
|
default |
|
overridevirtual |
Output Method for std::ostream.
Implements Acts::VolumeBounds.
Definition at line 185 of file TrapezoidVolumeBounds.cpp.
View newest version in sPHENIX GitHub at line 185 of file TrapezoidVolumeBounds.cpp
|
inlinefinalvirtual |
Return the bounds type - for persistency optimization
Implements Acts::VolumeBounds.
Definition at line 103 of file TrapezoidVolumeBounds.hpp.
View newest version in sPHENIX GitHub at line 103 of file TrapezoidVolumeBounds.hpp
References Acts::VolumeBounds::eTrapezoid.
|
inlinefinalvirtual |
Return the bound values as dynamically sized vector
Implements Acts::VolumeBounds.
Definition at line 185 of file TrapezoidVolumeBounds.hpp.
View newest version in sPHENIX GitHub at line 185 of file TrapezoidVolumeBounds.hpp
References m_values.
|
private |
Thhe face PlaneSurface attached to alpha (negative local x)
Definition at line 152 of file TrapezoidVolumeBounds.hpp.
View newest version in sPHENIX GitHub at line 152 of file TrapezoidVolumeBounds.hpp
|
private |
The face PlaneSurface attached to beta (positive local x)
Definition at line 154 of file TrapezoidVolumeBounds.hpp.
View newest version in sPHENIX GitHub at line 154 of file TrapezoidVolumeBounds.hpp
|
private |
The face PlaneSurface parallel to local xy plane.
Definition at line 150 of file TrapezoidVolumeBounds.hpp.
View newest version in sPHENIX GitHub at line 150 of file TrapezoidVolumeBounds.hpp
|
private |
The face PlaneSurface parallel to local zx plane, negative local y.
Definition at line 156 of file TrapezoidVolumeBounds.hpp.
View newest version in sPHENIX GitHub at line 156 of file TrapezoidVolumeBounds.hpp
|
private |
The face PlaneSurface parallel to local zx plane, positive local y.
Definition at line 159 of file TrapezoidVolumeBounds.hpp.
View newest version in sPHENIX GitHub at line 159 of file TrapezoidVolumeBounds.hpp
|
private |
The internal version of the bounds can be float/double.
Definition at line 148 of file TrapezoidVolumeBounds.hpp.
View newest version in sPHENIX GitHub at line 148 of file TrapezoidVolumeBounds.hpp
Referenced by get(), TrapezoidVolumeBounds(), and values().