FairShip
Loading...
Searching...
No Matches
SHiP::LineSegment Struct Reference

#include <StrawPatRec.hpp>

Public Member Functions

double x (double z) const
double y (double z) const

Public Attributes

double z0 {0.}
double x0 {0.}
double tx {0.}
double y0 {0.}
double ty {0.}
std::vector< int > hits
 positions in the hit list
std::vector< int > signs
 signed drift distance = sign * drift
double chi2 {0.}

Detailed Description

A straight line x = x0 + tx (z - z0), y = y0 + ty (z - z0) in the SHiP frame (cm), with the hits on it and the side of the wire each passed on.

Definition at line 26 of file StrawPatRec.hpp.

Member Function Documentation

◆ x()

double SHiP::LineSegment::x ( double z) const
inline

Definition at line 36 of file StrawPatRec.hpp.

◆ y()

double SHiP::LineSegment::y ( double z) const
inline

Definition at line 37 of file StrawPatRec.hpp.

37{ return y0 + ty * (z - z0); }

Member Data Documentation

◆ chi2

double SHiP::LineSegment::chi2 {0.}

Definition at line 34 of file StrawPatRec.hpp.

34{0.};

◆ hits

std::vector<int> SHiP::LineSegment::hits

positions in the hit list

Definition at line 32 of file StrawPatRec.hpp.

◆ signs

std::vector<int> SHiP::LineSegment::signs

signed drift distance = sign * drift

Definition at line 33 of file StrawPatRec.hpp.

◆ tx

double SHiP::LineSegment::tx {0.}

Definition at line 29 of file StrawPatRec.hpp.

29{0.};

◆ ty

double SHiP::LineSegment::ty {0.}

Definition at line 31 of file StrawPatRec.hpp.

31{0.};

◆ x0

double SHiP::LineSegment::x0 {0.}

Definition at line 28 of file StrawPatRec.hpp.

28{0.};

◆ y0

double SHiP::LineSegment::y0 {0.}

Definition at line 30 of file StrawPatRec.hpp.

30{0.};

◆ z0

double SHiP::LineSegment::z0 {0.}

Definition at line 27 of file StrawPatRec.hpp.

27{0.};

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