ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <acts/blob/master/Core/include/Acts/Geometry/CylinderVolumeBounds.hpp>
Public Types | |
enum | BoundValues { eMinR = 0, eMaxR = 1, eHalfLengthZ = 2, eHalfPhiSector = 3, eAveragePhi = 4, eSize = 5 } |
for streaming and access 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 | |
CylinderVolumeBounds ()=delete | |
CylinderVolumeBounds (double rmin, double rmax, double halfz, double halfphi=M_PI, double avgphi=0.) noexcept(false) | |
buildSurfaceBounds () | |
CylinderVolumeBounds (const std::array< double, eSize > &values) noexcept(false) | |
CylinderVolumeBounds (const CylinderBounds &cBounds, double thickness) noexcept(false) | |
CylinderVolumeBounds (const RadialBounds &rBounds, double thickness) noexcept(false) | |
CylinderVolumeBounds (const CylinderVolumeBounds &cylbo)=default | |
~CylinderVolumeBounds () override=default | |
CylinderVolumeBounds & | operator= (const CylinderVolumeBounds &cylbo)=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=nullptr) const override |
Volume::BoundingBox | boundingBox (const Transform3D *trf=nullptr, const Vector3D &envelope={0, 0, 0}, const Volume *entity=nullptr) const final |
Vector3D | binningOffset (BinningValue bValue) const override |
double | binningBorder (BinningValue bValue) const override |
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 |
Private Member Functions | |
void | checkConsistency () noexcept(false) |
void | buildSurfaceBounds () |
Helper method to create the surface bounds. | |
template<class T > | |
T & | dumpT (T &tstream) const |
templated dumpT method | |
Private Attributes | |
std::array< double, eSize > | m_values |
The internal version of the bounds can be float/double. | |
std::shared_ptr< const CylinderBounds > | m_innerCylinderBounds {nullptr} |
Bounds of the inner CylinderSurfaces. | |
std::shared_ptr< const CylinderBounds > | m_outerCylinderBounds {nullptr} |
Bounds of the inner CylinderSurfaces. | |
std::shared_ptr< const RadialBounds > | m_discBounds {nullptr} |
Bounds of the bottom/top DiscSurface. | |
std::shared_ptr< const PlanarBounds > | m_sectorPlaneBounds {nullptr} |
Bounds of the sector planes. | |
[0] and [1] at positive \form#27
Bounds for a cylindrical Volume, the decomposeToSurfaces method creates a vector of up to 6 surfaces:
case A) 3 Surfaces (full cylindrical tube): BoundarySurfaceFace [index]:
case B) 4 Surfaces (tube with inner and outer radius): BoundarySurfaceFace [index]:
case C) 6 Surfaces (sectoral tube with inner and outer radius): BoundarySurfaceFace [index]:
Definition at line 76 of file CylinderVolumeBounds.hpp.
View newest version in sPHENIX GitHub at line 76 of file CylinderVolumeBounds.hpp
for streaming and access
Definition at line 79 of file CylinderVolumeBounds.hpp.
View newest version in sPHENIX GitHub at line 79 of file CylinderVolumeBounds.hpp
|
delete |
|
inlinenoexcept |
Constructor
rmin | The inner radius of the cylinder |
rmax | The outer radius of the cylinder |
halfz | The half length in z |
halfphi | The half lopening angle |
avgphi | The average phi value |
Definition at line 97 of file CylinderVolumeBounds.hpp.
View newest version in sPHENIX GitHub at line 97 of file CylinderVolumeBounds.hpp
References rmax().
|
inlinenoexcept |
Constructor - from a fixed size array
values | The bound values |
Definition at line 108 of file CylinderVolumeBounds.hpp.
View newest version in sPHENIX GitHub at line 108 of file CylinderVolumeBounds.hpp
References buildSurfaceBounds(), and checkConsistency().
|
noexcept |
Constructor - extruded from cylinder bounds and thickness
cbounds | the cylinder bounds |
thickness | of the extrusion |
Definition at line 26 of file CylinderVolumeBounds.cpp.
View newest version in sPHENIX GitHub at line 26 of file CylinderVolumeBounds.cpp
References thickness.
|
noexcept |
Constructor - extruded from radial bounds and thickness
rbounds | the Radial bounds |
thickness |
Definition at line 42 of file CylinderVolumeBounds.cpp.
View newest version in sPHENIX GitHub at line 42 of file CylinderVolumeBounds.cpp
References thickness.
|
default |
Copy Constructor
cylbo | is the source cylinder volume bounds for the copy |
|
overridedefault |
|
inlineoverridevirtual |
Binning borders in double
bValue | is the type used for the binning |
Reimplemented from Acts::VolumeBounds.
Definition at line 231 of file CylinderVolumeBounds.hpp.
View newest version in sPHENIX GitHub at line 231 of file CylinderVolumeBounds.hpp
References Acts::VolumeBounds::binningBorder(), Acts::binR, Acts::binZ, eHalfLengthZ, eMaxR, and eMinR.
|
inlineoverridevirtual |
Binning offset - overloaded for some R-binning types
bValue | is the type used for the binning |
Reimplemented from Acts::VolumeBounds.
Definition at line 223 of file CylinderVolumeBounds.hpp.
View newest version in sPHENIX GitHub at line 223 of file CylinderVolumeBounds.hpp
References Acts::VolumeBounds::binningOffset(), Acts::binR, Acts::binRPhi, eMaxR, and eMinR.
|
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 133 of file CylinderVolumeBounds.cpp.
View newest version in sPHENIX GitHub at line 133 of file CylinderVolumeBounds.cpp
References M_PI, xmax, xmin, ymax, and ymin.
Referenced by Acts::Test::BOOST_AUTO_TEST_CASE().
void Acts::CylinderVolumeBounds::buildSurfaceBounds | ( | ) |
Definition at line 113 of file CylinderVolumeBounds.cpp.
View newest version in sPHENIX GitHub at line 113 of file CylinderVolumeBounds.cpp
References kdfinder::abs(), M_PI, and Acts::s_epsilon.
Referenced by CylinderVolumeBounds().
|
private |
Helper method to create the surface bounds.
|
inlineprivatenoexcept |
Check the input values for consistency, will throw a logic_exception if consistency is not given
Definition at line 258 of file CylinderVolumeBounds.hpp.
View newest version in sPHENIX GitHub at line 258 of file CylinderVolumeBounds.hpp
References eAveragePhi, eHalfLengthZ, eHalfPhiSector, eMaxR, eMinR, M_PI, and Acts::detail::radian_sym().
Referenced by CylinderVolumeBounds().
|
overridevirtual |
Method to decompose the Bounds into boundarySurfaces
transformPtr | is the transform where the boundary surfaces are situated |
Implements Acts::VolumeBounds.
Definition at line 58 of file CylinderVolumeBounds.cpp.
View newest version in sPHENIX GitHub at line 58 of file CylinderVolumeBounds.cpp
References eHalfLengthZ, eHalfPhiSector, eMaxR, eMinR, m_discBounds, m_innerCylinderBounds, m_outerCylinderBounds, M_PI, m_sectorPlaneBounds, and Acts::Test::transform.
Referenced by Acts::Test::BOOST_AUTO_TEST_CASE(), and Acts::Test::BOOST_DATA_TEST_CASE().
templated dumpT method
Definition at line 242 of file CylinderVolumeBounds.hpp.
View newest version in sPHENIX GitHub at line 242 of file CylinderVolumeBounds.hpp
References eAveragePhi, eHalfLengthZ, eHalfPhiSector, eMaxR, and eMinR.
|
inline |
Access to the bound values
bValue | the class nested enum for the array access |
Definition at line 183 of file CylinderVolumeBounds.hpp.
View newest version in sPHENIX GitHub at line 183 of file CylinderVolumeBounds.hpp
References m_values.
Referenced by Acts::adjustBinUtility(), Acts::CylinderVolumeBuilder::analyzeContent(), Acts::Test::BOOST_AUTO_TEST_CASE(), Acts::Test::BOOST_DATA_TEST_CASE(), Acts::CylinderVolumeHelper::createContainerTrackingVolume(), Acts::CylinderVolumeHelper::estimateAndCheckDimension(), Acts::CylinderVolumeHelper::glueTrackingVolumes(), and Acts::CylinderVolumeBuilder::trackingVolume().
|
inlineoverridevirtual |
This method checks if position in the 3D volume frame is inside the cylinder
pos | is a global position to be checked |
tol | is the tolerance for the check |
Implements Acts::VolumeBounds.
Definition at line 209 of file CylinderVolumeBounds.hpp.
View newest version in sPHENIX GitHub at line 209 of file CylinderVolumeBounds.hpp
References kdfinder::abs(), eHalfLengthZ, eHalfPhiSector, eMaxR, eMinR, Acts::VectorHelpers::perp(), Acts::VectorHelpers::phi(), and phi.
|
default |
|
overridevirtual |
Output Method for std::ostream.
Implements Acts::VolumeBounds.
Definition at line 129 of file CylinderVolumeBounds.cpp.
View newest version in sPHENIX GitHub at line 129 of file CylinderVolumeBounds.cpp
|
inlinefinalvirtual |
Return the bounds type - for persistency optimization
Implements Acts::VolumeBounds.
Definition at line 137 of file CylinderVolumeBounds.hpp.
View newest version in sPHENIX GitHub at line 137 of file CylinderVolumeBounds.hpp
References Acts::VolumeBounds::eCylinder.
|
inlinefinalvirtual |
Return the bound values as dynamically sized vector
Implements Acts::VolumeBounds.
Definition at line 252 of file CylinderVolumeBounds.hpp.
View newest version in sPHENIX GitHub at line 252 of file CylinderVolumeBounds.hpp
References m_values.
Referenced by Acts::Test::BOOST_AUTO_TEST_CASE().
|
private |
Bounds of the bottom/top DiscSurface.
Definition at line 193 of file CylinderVolumeBounds.hpp.
View newest version in sPHENIX GitHub at line 193 of file CylinderVolumeBounds.hpp
Referenced by decomposeToSurfaces().
|
private |
Bounds of the inner CylinderSurfaces.
Definition at line 189 of file CylinderVolumeBounds.hpp.
View newest version in sPHENIX GitHub at line 189 of file CylinderVolumeBounds.hpp
Referenced by decomposeToSurfaces().
|
private |
Bounds of the inner CylinderSurfaces.
Definition at line 191 of file CylinderVolumeBounds.hpp.
View newest version in sPHENIX GitHub at line 191 of file CylinderVolumeBounds.hpp
Referenced by decomposeToSurfaces().
|
private |
Bounds of the sector planes.
Definition at line 195 of file CylinderVolumeBounds.hpp.
View newest version in sPHENIX GitHub at line 195 of file CylinderVolumeBounds.hpp
Referenced by decomposeToSurfaces().
|
private |
The internal version of the bounds can be float/double.
Definition at line 187 of file CylinderVolumeBounds.hpp.
View newest version in sPHENIX GitHub at line 187 of file CylinderVolumeBounds.hpp