Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Acts::ConvexPolygonBoundsBase Class Reference

base class for convex polygon bounds More...

#include <acts/blob/sPHENIX/Core/include/Acts/Surfaces/ConvexPolygonBounds.hpp>

+ Inheritance diagram for Acts::ConvexPolygonBoundsBase:
+ Collaboration diagram for Acts::ConvexPolygonBoundsBase:

Public Member Functions

std::ostream & toStream (std::ostream &sl) const final
 
std::vector< doublevalues () const final
 
- Public Member Functions inherited from Acts::PlanarBounds
virtual std::vector< Vector2vertices (unsigned int lseg=1) const =0
 
virtual const RectangleBoundsboundingBox () const =0
 
- Public Member Functions inherited from Acts::SurfaceBounds
virtual ~SurfaceBounds ()=default
 
virtual BoundsType type () const =0
 
virtual bool inside (const Vector2 &lposition, const BoundaryCheck &bcheck) const =0
 

Static Protected Member Functions

template<typename coll_t >
static RectangleBounds makeBoundingBox (const coll_t &vertices)
 
template<typename coll_t >
static void convex_impl (const coll_t &vertices) noexcept(false)
 

Additional Inherited Members

- Public Types inherited from Acts::SurfaceBounds
enum  BoundsType : int {
  eCone = 0, eCylinder = 1, eDiamond = 2, eDisc = 3,
  eEllipse = 4, eLine = 5, eRectangle = 6, eTrapezoid = 7,
  eTriangle = 8, eDiscTrapezoid = 9, eConvexPolygon = 10, eAnnulus = 11,
  eBoundless = 12, eOther = 13
}
 

Detailed Description

base class for convex polygon bounds

This class serves as a base class for the actual bounds class. The only deriving type is the templated ConvexPolygonBounds.

Definition at line 33 of file ConvexPolygonBounds.hpp.

View newest version in sPHENIX GitHub at line 33 of file ConvexPolygonBounds.hpp

Member Function Documentation

template<typename coll_t >
void Acts::ConvexPolygonBoundsBase::convex_impl ( const coll_t &  vertices)
staticprotectednoexcept

Calculates whether a set of vertices forms a convex polygon. This is generic over the number of vertices, so it's factored out of the concrete classes and into this base class.

Parameters
verticesA collection of vertices. throws a logic error if this is not the case

Definition at line 12 of file ConvexPolygonBounds.ipp.

View newest version in sPHENIX GitHub at line 12 of file ConvexPolygonBounds.ipp

References KFPMath::a, KFPMath::b, Acts::PhysicalConstants::c, i, j, k, N, check_smearing_config::ref, value, and ActsExamples::HepMC3Event::vertices().

+ Here is the call graph for this function:

template<typename coll_t >
Acts::RectangleBounds Acts::ConvexPolygonBoundsBase::makeBoundingBox ( const coll_t &  vertices)
staticprotected

Return a rectangle bounds instance that encloses a set of vertices.

Parameters
verticesA collection of vertices to enclose.
Returns
Enclosing rectangle.

Definition at line 52 of file ConvexPolygonBounds.ipp.

View newest version in sPHENIX GitHub at line 52 of file ConvexPolygonBounds.ipp

References i.

std::ostream & Acts::ConvexPolygonBoundsBase::toStream ( std::ostream &  sl) const
finalvirtual

Output Method for std::ostream

Parameters
slis the ostream to be written into

Implements Acts::SurfaceBounds.

Definition at line 14 of file ConvexPolygonBounds.cpp.

View newest version in sPHENIX GitHub at line 14 of file ConvexPolygonBounds.cpp

References i, and Acts::PlanarBounds::vertices().

+ Here is the call graph for this function:

std::vector< double > Acts::ConvexPolygonBoundsBase::values ( ) const
finalvirtual

Return the bound values as dynamically sized vector

Returns
this returns a copy of the internal values

Implements Acts::SurfaceBounds.

Definition at line 28 of file ConvexPolygonBounds.cpp.

View newest version in sPHENIX GitHub at line 28 of file ConvexPolygonBounds.cpp

References Acts::Test::values, and ActsExamples::HepMC3Event::vertices().

Referenced by Acts::Test::BOOST_AUTO_TEST_CASE().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:


The documentation for this class was generated from the following files: