Analysis Software
Documentation for sPHENIX simulation software
|
A brief struct that allows to apply a surface bound mask. More...
#include <acts/blob/sPHENIX/Fatras/include/ActsFatras/Digitization/PlanarSurfaceMask.hpp>
Public Types | |
using | Segment2D = std::array< Acts::Vector2, 2 > |
Shorthand for a 2-d segment;. | |
Public Member Functions | |
Acts::Result< Segment2D > | apply (const Acts::Surface &surface, const Segment2D &segment) const |
Acts::Result< Segment2D > | polygonMask (const std::vector< Acts::Vector2 > &vertices, const Segment2D &segment, bool firstInside) const |
Acts::Result< Segment2D > | radialMask (const Acts::RadialBounds &rBounds, const Segment2D &segment, const Segment2D &polarSegment, bool firstInside) const |
Acts::Result< Segment2D > | annulusMask (const Acts::AnnulusBounds &aBounds, const Segment2D &segment, bool firstInside) const |
Public Attributes | |
Acts::detail::IntersectionHelper2D | intersector {} |
A brief struct that allows to apply a surface bound mask.
Definition at line 26 of file PlanarSurfaceMask.hpp.
View newest version in sPHENIX GitHub at line 26 of file PlanarSurfaceMask.hpp
using ActsFatras::PlanarSurfaceMask::Segment2D = std::array<Acts::Vector2, 2> |
Shorthand for a 2-d segment;.
Definition at line 28 of file PlanarSurfaceMask.hpp.
View newest version in sPHENIX GitHub at line 28 of file PlanarSurfaceMask.hpp
Acts::Result< ActsFatras::PlanarSurfaceMask::Segment2D > ActsFatras::PlanarSurfaceMask::annulusMask | ( | const Acts::AnnulusBounds & | aBounds, |
const Segment2D & | segment, | ||
bool | firstInside | ||
) | const |
Apply the mask of an annulus disk
aBounds | The annulus disc for the masking |
segment | The track segment (on surface) |
firstInside | The indicator if the first is inside |
Definition at line 250 of file PlanarSurfaceMask.cpp.
View newest version in sPHENIX GitHub at line 250 of file PlanarSurfaceMask.cpp
References Acts::detail::checkIntersection(), Acts::AnnulusBounds::get(), Acts::AnnulusBounds::moduleOrigin(), Acts::Intersection< DIM >::pathLength(), Acts::VectorHelpers::phi(), Acts::Intersection< DIM >::position(), Acts::Intersection< DIM >::status(), ActsExamples::HepMC3Event::vertices(), and Acts::AnnulusBounds::vertices().
Referenced by apply().
Acts::Result< ActsFatras::PlanarSurfaceMask::Segment2D > ActsFatras::PlanarSurfaceMask::apply | ( | const Acts::Surface & | surface, |
const Segment2D & | segment | ||
) | const |
Apply the mask on the segment
surface | The surface in question |
segment | The track segment (on surface) |
Definition at line 79 of file PlanarSurfaceMask.cpp.
View newest version in sPHENIX GitHub at line 79 of file PlanarSurfaceMask.cpp
References annulusMask(), Acts::Surface::bounds(), Acts::Surface::Disc, Acts::SurfaceBounds::eAnnulus, Acts::SurfaceBounds::eDisc, Acts::SurfaceBounds::eDiscTrapezoid, Acts::SurfaceBounds::eEllipse, Acts::SurfaceBounds::inside(), Acts::VectorHelpers::perp(), Acts::VectorHelpers::phi(), Acts::Surface::Plane, polygonMask(), radialMask(), rBounds, Acts::Test::segment(), Acts::SurfaceBounds::type(), Acts::Surface::type(), Acts::PlanarBounds::vertices(), ActsExamples::HepMC3Event::vertices(), and Acts::DiscTrapezoidBounds::vertices().
Referenced by ActsFatras::BOOST_DATA_TEST_CASE().
Acts::Result< ActsFatras::PlanarSurfaceMask::Segment2D > ActsFatras::PlanarSurfaceMask::polygonMask | ( | const std::vector< Acts::Vector2 > & | vertices, |
const Segment2D & | segment, | ||
bool | firstInside | ||
) | const |
Apply the mask of a polygon
vertices | The vertices of the polygon |
segment | The track segment (on surface) |
firstInside | The indicator if the first is inside |
Definition at line 156 of file PlanarSurfaceMask.cpp.
View newest version in sPHENIX GitHub at line 156 of file PlanarSurfaceMask.cpp
References Acts::detail::checkIntersection().
Referenced by apply().
Acts::Result< ActsFatras::PlanarSurfaceMask::Segment2D > ActsFatras::PlanarSurfaceMask::radialMask | ( | const Acts::RadialBounds & | rBounds, |
const Segment2D & | segment, | ||
const Segment2D & | polarSegment, | ||
bool | firstInside | ||
) | const |
Apply the mask of a Radial disk
rBounds | The radial disc for the masking |
segment | The track segment (on surface) |
polarSegment | The track segmetn (on surface, in polar) |
firstInside | The indicator if the first is inside |
Definition at line 176 of file PlanarSurfaceMask.cpp.
View newest version in sPHENIX GitHub at line 176 of file PlanarSurfaceMask.cpp
References Acts::detail::checkIntersection(), Acts::RadialBounds::eAveragePhi, Acts::eBoundLoc0, Acts::eBoundLoc1, Acts::RadialBounds::eHalfPhiSector, Acts::RadialBounds::eMaxR, Acts::RadialBounds::eMinR, ePhi, eR, Acts::RadialBounds::get(), ActsTests::PropagationDatasets::phi, physmon_track_finding_ttbar::r, and Acts::s_epsilon.
Referenced by apply().
Acts::detail::IntersectionHelper2D ActsFatras::PlanarSurfaceMask::intersector {} |
Definition at line 85 of file PlanarSurfaceMask.hpp.
View newest version in sPHENIX GitHub at line 85 of file PlanarSurfaceMask.hpp