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

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

+ Inheritance diagram for Acts::SurfaceBounds:

Public Types

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
}
 

Public Member Functions

virtual ~SurfaceBounds ()=default
 
virtual BoundsType type () const =0
 
virtual std::vector< doublevalues () const =0
 
virtual bool inside (const Vector2 &lposition, const BoundaryCheck &bcheck) const =0
 
virtual std::ostream & toStream (std::ostream &os) const =0
 

Detailed Description

Interface for surface bounds.

Surface bounds provide:

  • inside() checks
  • distance to boundary calculations
  • the BoundsType and a set of parameters to simplify persistency

Definition at line 26 of file SurfaceBounds.hpp.

View newest version in sPHENIX GitHub at line 26 of file SurfaceBounds.hpp

Member Enumeration Documentation

This is nested to the SurfaceBounds, as also VolumeBounds will have Bounds Type.

Enumerator:
eCone 
eCylinder 
eDiamond 
eDisc 
eEllipse 
eLine 
eRectangle 
eTrapezoid 
eTriangle 
eDiscTrapezoid 
eConvexPolygon 
eAnnulus 
eBoundless 
eOther 

Definition at line 31 of file SurfaceBounds.hpp.

View newest version in sPHENIX GitHub at line 31 of file SurfaceBounds.hpp

Constructor & Destructor Documentation

virtual Acts::SurfaceBounds::~SurfaceBounds ( )
virtualdefault

Member Function Documentation

virtual bool Acts::SurfaceBounds::inside ( const Vector2 lposition,
const BoundaryCheck bcheck 
) const
pure virtual

Inside check for the bounds object driven by the boundary check directive Each Bounds has a method inside, which checks if a LocalPosition is inside the bounds Inside can be called without/with tolerances.

Parameters
lpositionLocal position (assumed to be in right surface frame)
bcheckboundary check directive
Returns
boolean indicator for the success of this operation

Implemented in Acts::ConvexPolygonBounds< PolygonDynamic >, Acts::TrapezoidBounds, Acts::ConvexPolygonBounds< N >, Acts::CylinderBounds, Acts::ConeBounds, Acts::AnnulusBounds, Acts::DiamondBounds, Acts::EllipseBounds, Acts::RectangleBounds, Acts::DiscTrapezoidBounds, Acts::RadialBounds, Acts::LineBounds, Acts::SurfaceBoundsStub, and Acts::InfiniteBounds.

Referenced by ActsFatras::PlanarSurfaceMask::apply().

+ Here is the caller graph for this function:

virtual std::ostream& Acts::SurfaceBounds::toStream ( std::ostream &  os) const
pure virtual

Output Method for std::ostream, to be overloaded by child classes

Parameters
osis the outstream in which the string dump is done

Implemented in Acts::TrapezoidBounds, Acts::CylinderBounds, Acts::DiamondBounds, Acts::EllipseBounds, Acts::RectangleBounds, Acts::ConeBounds, Acts::AnnulusBounds, Acts::DiscTrapezoidBounds, Acts::RadialBounds, Acts::LineBounds, Acts::SurfaceBoundsStub, Acts::InfiniteBounds, and Acts::ConvexPolygonBoundsBase.

Referenced by Acts::operator<<().

+ Here is the caller graph for this function:


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