Analysis Software
Documentation for sPHENIX simulation software
|
#include <acts/blob/sPHENIX/Core/include/Acts/Geometry/TrapezoidVolumeBounds.hpp>
Public Types | |
enum | BoundValues : unsigned int { eHalfLengthXnegY = 0, eHalfLengthXposY = 1, eHalfLengthY = 2, eHalfLengthZ = 3, eAlpha = 4, eBeta = 5, eSize } |
for access / 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 () override=default | |
TrapezoidVolumeBounds & | operator= (const TrapezoidVolumeBounds &trabo)=default |
VolumeBounds::BoundsType | type () const final |
std::vector< double > | values () const final |
bool | inside (const Vector3 &pos, double tol=0.) const override |
OrientedSurfaces | orientedSurfaces (const Transform3 &transform=Transform3::Identity()) const override |
Volume::BoundingBox | boundingBox (const Transform3 *trf=nullptr, const Vector3 &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 Vector3 | 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 stream_t > | |
stream_t & | dumpT (stream_t &dt) const |
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 {nullptr} |
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 orientedSurface(...) method creates a vector of 6 surfaces:
BoundarySurfaceFace [index]:
Definition at line 50 of file TrapezoidVolumeBounds.hpp.
View newest version in sPHENIX GitHub at line 50 of file TrapezoidVolumeBounds.hpp
enum Acts::TrapezoidVolumeBounds::BoundValues : unsigned int |
for access / streaming
Definition at line 53 of file TrapezoidVolumeBounds.hpp.
View newest version in sPHENIX GitHub at line 53 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 23 of file TrapezoidVolumeBounds.cpp.
View newest version in sPHENIX GitHub at line 23 of file TrapezoidVolumeBounds.cpp
References buildSurfaceBounds(), checkConsistency(), eAlpha, eBeta, eHalfLengthXnegY, eHalfLengthXposY, eHalfLengthY, eHalfLengthZ, 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 opening angle at -x,-y |
beta | is the opening angle at +x,-y |
Definition at line 37 of file TrapezoidVolumeBounds.cpp.
View newest version in sPHENIX GitHub at line 37 of file TrapezoidVolumeBounds.cpp
References alpha, buildSurfaceBounds(), checkConsistency(), eAlpha, eBeta, eHalfLengthXnegY, eHalfLengthXposY, eHalfLengthY, eHalfLengthZ, and m_values.
|
inlinenoexcept |
Constructor - from a fixed size array
values | The bound values |
Definition at line 87 of file TrapezoidVolumeBounds.hpp.
View newest version in sPHENIX GitHub at line 87 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 150 of file TrapezoidVolumeBounds.cpp.
View newest version in sPHENIX GitHub at line 150 of file TrapezoidVolumeBounds.cpp
References i, Acts::Test::transform, and ActsExamples::HepMC3Event::vertices().
|
private |
Helper method to create the surface bounds.
Definition at line 116 of file TrapezoidVolumeBounds.cpp.
View newest version in sPHENIX GitHub at line 116 of file TrapezoidVolumeBounds.cpp
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().
|
private |
Templated dump methods
stream_t | The type of the stream for dumping |
dt | The stream object |
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 143 of file TrapezoidVolumeBounds.hpp.
View newest version in sPHENIX GitHub at line 143 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 133 of file TrapezoidVolumeBounds.cpp.
View newest version in sPHENIX GitHub at line 133 of file TrapezoidVolumeBounds.cpp
Referenced by Acts::Test::BOOST_AUTO_TEST_CASE().
|
default |
|
overridevirtual |
Oriented surfaces, i.e. the decomposed boundary surfaces and the according navigation direction into the volume given the normal vector on the surface
transform | is the 3D transform to be applied to the boundary surfaces to position them in 3D space |
It will throw an exception if the orientation prescription is not adequate
Implements Acts::VolumeBounds.
Definition at line 54 of file TrapezoidVolumeBounds.cpp.
View newest version in sPHENIX GitHub at line 54 of file TrapezoidVolumeBounds.cpp
References testing::internal::move(), Acts::Direction::Negative, Acts::Direction::Positive, Acts::s_planeYZ, and Acts::s_planeZX.
Referenced by Acts::Test::BOOST_AUTO_TEST_CASE().
|
overridevirtual |
Output Method for std::ostream.
Implements Acts::VolumeBounds.
Definition at line 146 of file TrapezoidVolumeBounds.cpp.
View newest version in sPHENIX GitHub at line 146 of file TrapezoidVolumeBounds.cpp
|
inlinefinalvirtual |
Return the bounds type - for persistency optimization
Implements Acts::VolumeBounds.
Definition at line 98 of file TrapezoidVolumeBounds.hpp.
View newest version in sPHENIX GitHub at line 98 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 151 of file TrapezoidVolumeBounds.hpp.
View newest version in sPHENIX GitHub at line 151 of file TrapezoidVolumeBounds.hpp
|
private |
The face PlaneSurface attached to beta (positive local x)
Definition at line 153 of file TrapezoidVolumeBounds.hpp.
View newest version in sPHENIX GitHub at line 153 of file TrapezoidVolumeBounds.hpp
|
private |
The face PlaneSurface parallel to local xy plane.
Definition at line 149 of file TrapezoidVolumeBounds.hpp.
View newest version in sPHENIX GitHub at line 149 of file TrapezoidVolumeBounds.hpp
|
private |
The face PlaneSurface parallel to local zx plane, negative local y.
Definition at line 155 of file TrapezoidVolumeBounds.hpp.
View newest version in sPHENIX GitHub at line 155 of file TrapezoidVolumeBounds.hpp
|
private |
The face PlaneSurface parallel to local zx plane, positive local y.
Definition at line 157 of file TrapezoidVolumeBounds.hpp.
View newest version in sPHENIX GitHub at line 157 of file TrapezoidVolumeBounds.hpp
The internal version of the bounds can be float/double.
Definition at line 147 of file TrapezoidVolumeBounds.hpp.
View newest version in sPHENIX GitHub at line 147 of file TrapezoidVolumeBounds.hpp
Referenced by get(), TrapezoidVolumeBounds(), and values().