EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Acts::SurfaceBoundsStub Class Reference

Class to implement pure virtual method of SurfaceBounds for testing only. More...

+ Inheritance diagram for Acts::SurfaceBoundsStub:
+ Collaboration diagram for Acts::SurfaceBoundsStub:

Public Member Functions

 SurfaceBoundsStub (size_t nValues=0)
 Implement ctor and pure virtual methods of SurfaceBounds.
 
 ~SurfaceBoundsStub () override
 
BoundsType type () const final
 
std::vector< double > values () const override
 
bool inside (const Vector2D &, const BoundaryCheck &) const final
 
std::ostream & toStream (std::ostream &sl) const final
 
- Public Member Functions inherited from Acts::SurfaceBounds
virtual ~SurfaceBounds ()=default
 

Private Attributes

std::vector< double > m_values
 

Additional Inherited Members

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

Detailed Description

Class to implement pure virtual method of SurfaceBounds for testing only.

Definition at line 21 of file SurfaceBoundsTests.cpp.

View newest version in sPHENIX GitHub at line 21 of file SurfaceBoundsTests.cpp

Constructor & Destructor Documentation

Acts::SurfaceBoundsStub::SurfaceBoundsStub ( size_t  nValues = 0)
inlineexplicit

Implement ctor and pure virtual methods of SurfaceBounds.

Definition at line 24 of file SurfaceBoundsTests.cpp.

View newest version in sPHENIX GitHub at line 24 of file SurfaceBoundsTests.cpp

References m_values.

Acts::SurfaceBoundsStub::~SurfaceBoundsStub ( )
inlineoverride

Definition at line 28 of file SurfaceBoundsTests.cpp.

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

Member Function Documentation

bool Acts::SurfaceBoundsStub::inside ( const Vector2D lposition,
const BoundaryCheck bcheck 
) const
inlinefinalvirtual

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

Implements Acts::SurfaceBounds.

Definition at line 32 of file SurfaceBoundsTests.cpp.

View newest version in sPHENIX GitHub at line 32 of file SurfaceBoundsTests.cpp

std::ostream& Acts::SurfaceBoundsStub::toStream ( std::ostream &  os) const
inlinefinalvirtual

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

Parameters
slis the outstream in which the string dump is done

Implements Acts::SurfaceBounds.

Definition at line 37 of file SurfaceBoundsTests.cpp.

View newest version in sPHENIX GitHub at line 37 of file SurfaceBoundsTests.cpp

BoundsType Acts::SurfaceBoundsStub::type ( ) const
inlinefinalvirtual

Return the bounds type - for persistency optimization

Returns
is a BoundsType enum

Implements Acts::SurfaceBounds.

Definition at line 30 of file SurfaceBoundsTests.cpp.

View newest version in sPHENIX GitHub at line 30 of file SurfaceBoundsTests.cpp

References Acts::SurfaceBounds::eOther.

std::vector<double> Acts::SurfaceBoundsStub::values ( ) const
inlineoverridevirtual

Access method for bound values, this is a dynamically sized vector containing the parameters needed to describe these bounds

Returns
of the stored values for this SurfaceBounds object

Implements Acts::SurfaceBounds.

Definition at line 31 of file SurfaceBoundsTests.cpp.

View newest version in sPHENIX GitHub at line 31 of file SurfaceBoundsTests.cpp

References m_values.

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

+ Here is the caller graph for this function:

Member Data Documentation

std::vector<double> Acts::SurfaceBoundsStub::m_values
private

Definition at line 43 of file SurfaceBoundsTests.cpp.

View newest version in sPHENIX GitHub at line 43 of file SurfaceBoundsTests.cpp

Referenced by SurfaceBoundsStub(), and values().


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