Struct Intersection

Struct Documentation

struct Acts::Intersection

Intersection struct used for position.

Public Types

enum Status

Nested Status enum.

Values:

enumerator missed = 0
enumerator unreachable = 0
enumerator reachable = 1
enumerator onSurface = 2

Public Functions

Intersection(const Vector3D &sinter, double slength, Status sstatus)

Constructor with arguments.

Parameters
  • sinter: is the position of the intersection

  • slength: is the path length to the intersection

  • svalid: is a boolean indicating if intersection is valid

Intersection() = default

Default constructor.

operator bool() const

Bool() operator for validity checking.

bool operator<(const Intersection &si) const

Smaller operator for sorting,.

  • it respects the validity of the intersection

    Parameters
    • si: is the intersection for testing

bool operator>(const Intersection &si) const

Greater operator for sorting,.

  • it respects the validity of the intersection

    Parameters
    • si: is the intersection for testing

Public Members

double pathLength = {std::numeric_limits<double>::infinity()}

Signed path length to the intersection (if valid)

Vector3D position = {0., 0., 0.}

Position of the intersection.

Status status = {Status::unreachable}

The Status of the intersection.