Analysis Software
Documentation for sPHENIX simulation 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 (const SurfaceBoundsStub &other)=default
 
 ~SurfaceBoundsStub () override=default
 
BoundsType type () const final
 
std::vector< doublevalues () const override
 
bool inside (const Vector2 &, 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< doublem_values
 

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

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

Definition at line 25 of file SurfaceBoundsTests.cpp.

View newest version in sPHENIX GitHub at line 25 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 28 of file SurfaceBoundsTests.cpp.

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

References m_values.

Acts::SurfaceBoundsStub::SurfaceBoundsStub ( const SurfaceBoundsStub other)
default
Acts::SurfaceBoundsStub::~SurfaceBoundsStub ( )
overridedefault

Member Function Documentation

bool Acts::SurfaceBoundsStub::inside ( const Vector2 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 49 of file SurfaceBoundsTests.cpp.

View newest version in sPHENIX GitHub at line 49 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
osis the outstream in which the string dump is done

Implements Acts::SurfaceBounds.

Definition at line 54 of file SurfaceBoundsTests.cpp.

View newest version in sPHENIX GitHub at line 54 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 43 of file SurfaceBoundsTests.cpp.

View newest version in sPHENIX GitHub at line 43 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 46 of file SurfaceBoundsTests.cpp.

View newest version in sPHENIX GitHub at line 46 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 60 of file SurfaceBoundsTests.cpp.

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

Referenced by SurfaceBoundsStub(), and values().


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