5#ifndef ACTSTRACKING_STRAWPATREC_HPP_
6#define ACTSTRACKING_STRAWPATREC_HPP_
36 double x(
double z)
const {
return x0 +
tx * (z -
z0); }
37 double y(
double z)
const {
return y0 +
ty * (z -
z0); }
101 const std::vector<PatRecHit>& hits)
const;
106 const std::vector<PatRecHit>& hits)
const;
109 std::vector<LineSegment>
findSegments(
const std::vector<PatRecHit>& hits,
110 bool upstream,
int maxSegments)
const;
112 const std::vector<LineSegment>& upstream,
113 const std::vector<LineSegment>& downstream)
const;
std::vector< TrackCandidate > findTracks(const std::vector< PatRecHit > &hits) const
Find tracks among all hits of the event.
std::vector< LineSegment > findSegments(const std::vector< PatRecHit > &hits, bool upstream, int maxSegments) const
std::optional< TrackCandidate > fitCandidate(const std::vector< PatRecHit > &hits) const
std::vector< TrackCandidate > matchSegments(const std::vector< LineSegment > &upstream, const std::vector< LineSegment > &downstream) const
std::optional< TrackCandidate > match(const LineSegment &upstream, const LineSegment &downstream) const
StrawPatRec(const Config &config, double bendingZ, double fieldIntegral)
double signedWireDistance(const LineSegment &line, const StrawWire &wire)
std::vector< int > signs
signed drift distance = sign * drift
std::vector< int > hits
positions in the hit list
double maxLowMomentumMatchChi2
double maxSlope
Largest track slopes considered.
double matchSigmaTxPerP
rad GeV
double matchSigmaXPerP
cm GeV
int maxSharedHits
Segments sharing more hits than this are the same segment.
double matchSigmaYPerP
cm GeV
A straw wire in the SHiP frame (cm), for pattern recognition.