Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Acts::Test::TestSourceLink Struct Referencefinal

#include <acts/blob/sPHENIX/Tests/CommonHelpers/Acts/Tests/CommonHelpers/TestSourceLink.hpp>

+ Collaboration diagram for Acts::Test::TestSourceLink:

Classes

struct  SurfaceAccessor
 

Public Member Functions

 TestSourceLink (BoundIndices idx, ActsScalar val, ActsScalar var, GeometryIdentifier gid=GeometryIdentifier(), size_t sid=0u)
 Construct a source link for a 1d measurement.
 
 parameters (val, 0)
 
 covariance (Acts::ActsVector< 2 >(var, 0).asDiagonal())
 
 TestSourceLink (BoundIndices idx0, BoundIndices idx1, const Acts::ActsVector< 2 > &params, const Acts::ActsSquareMatrix< 2 > &cov, GeometryIdentifier gid=GeometryIdentifier(), size_t sid=0u)
 Construct a source link for a 2d measurement.
 
 parameters (params)
 
 covariance (cov)
 
 TestSourceLink ()=default
 Default-construct an invalid source link to satisfy SourceLinkConcept.
 
 TestSourceLink (const TestSourceLink &)=default
 
 TestSourceLink (TestSourceLink &&)=default
 
TestSourceLinkoperator= (const TestSourceLink &)=default
 
TestSourceLinkoperator= (TestSourceLink &&)=default
 
constexpr size_t index () const
 

Public Attributes

GeometryIdentifier m_geometryId {}
 
size_t sourceId = 0u
 
std::array< BoundIndices, 2 > indices = {eBoundSize, eBoundSize}
 
Acts::ActsVector< 2 > parameters
 
Acts::ActsSquareMatrix< 2 > covariance
 

Detailed Description

A minimal source link implementation for testing.

Instead of storing a reference to a measurement or raw data, the measurement data is stored inline directly in the source link. Only 1d or 2d measurements are supported to limit the overhead. Additionally, a source identifier is stored that can be used to store additional information. How this is interpreted depends on the specific tests.

Definition at line 38 of file TestSourceLink.hpp.

View newest version in sPHENIX GitHub at line 38 of file TestSourceLink.hpp

Constructor & Destructor Documentation

Acts::Test::TestSourceLink::TestSourceLink ( BoundIndices  idx,
ActsScalar  val,
ActsScalar  var,
GeometryIdentifier  gid = GeometryIdentifier(),
size_t  sid = 0u 
)
inline

Construct a source link for a 1d measurement.

Definition at line 47 of file TestSourceLink.hpp.

View newest version in sPHENIX GitHub at line 47 of file TestSourceLink.hpp

References Acts::eBoundSize, and ambiguity_solver_full_chain::idx.

Acts::Test::TestSourceLink::TestSourceLink ( BoundIndices  idx0,
BoundIndices  idx1,
const Acts::ActsVector< 2 > &  params,
const Acts::ActsSquareMatrix< 2 > &  cov,
GeometryIdentifier  gid = GeometryIdentifier(),
size_t  sid = 0u 
)
inline

Construct a source link for a 2d measurement.

Definition at line 55 of file TestSourceLink.hpp.

View newest version in sPHENIX GitHub at line 55 of file TestSourceLink.hpp

Acts::Test::TestSourceLink::TestSourceLink ( )
default

Default-construct an invalid source link to satisfy SourceLinkConcept.

Acts::Test::TestSourceLink::TestSourceLink ( const TestSourceLink )
default
Acts::Test::TestSourceLink::TestSourceLink ( TestSourceLink &&  )
default

Member Function Documentation

Acts::Test::TestSourceLink::covariance ( Acts::ActsVector< 2 >  var, 0).asDiagonal()
inline

Definition at line 53 of file TestSourceLink.hpp.

View newest version in sPHENIX GitHub at line 53 of file TestSourceLink.hpp

Acts::Test::TestSourceLink::covariance ( cov  )
inline

Definition at line 63 of file TestSourceLink.hpp.

View newest version in sPHENIX GitHub at line 63 of file TestSourceLink.hpp

constexpr size_t Acts::Test::TestSourceLink::index ( ) const
inline

Definition at line 71 of file TestSourceLink.hpp.

View newest version in sPHENIX GitHub at line 71 of file TestSourceLink.hpp

References sourceId.

TestSourceLink& Acts::Test::TestSourceLink::operator= ( const TestSourceLink )
default
TestSourceLink& Acts::Test::TestSourceLink::operator= ( TestSourceLink &&  )
default
Acts::Test::TestSourceLink::parameters ( val  ,
 
)
Acts::Test::TestSourceLink::parameters ( params  )

Member Data Documentation

Acts::ActsSquareMatrix<2> Acts::Test::TestSourceLink::covariance

Definition at line 44 of file TestSourceLink.hpp.

View newest version in sPHENIX GitHub at line 44 of file TestSourceLink.hpp

Referenced by Acts::Test::operator==(), and Acts::Test::testSourceLinkCalibratorReturn().

std::array<BoundIndices, 2> Acts::Test::TestSourceLink::indices = {eBoundSize, eBoundSize}

Definition at line 42 of file TestSourceLink.hpp.

View newest version in sPHENIX GitHub at line 42 of file TestSourceLink.hpp

Referenced by Acts::Test::operator<<(), Acts::Test::operator==(), and Acts::Test::testSourceLinkCalibratorReturn().

GeometryIdentifier Acts::Test::TestSourceLink::m_geometryId {}

Definition at line 39 of file TestSourceLink.hpp.

View newest version in sPHENIX GitHub at line 39 of file TestSourceLink.hpp

Referenced by Acts::Test::operator<<(), and Acts::Test::operator==().

Acts::ActsVector<2> Acts::Test::TestSourceLink::parameters
size_t Acts::Test::TestSourceLink::sourceId = 0u

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